View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003123||OXID eShop (all versions)||1.02. Price calculations (discounts, coupons, additional costs etc.)||public||2011-08-10 11:31||2015-05-04 14:15|
|Product Version||4.5.1 revision 38045|
|Target Version||Fixed in Version||4.6.0_beta2|
|Summary||0003123: Used vouchers are not shown in e-mail|
|Description||If you use a voucher with an order, in the emails that are send after you complete the order, the used vouchers are not shown.|
In the emails are only the row with the titles shown and below them a % sign.
|Steps To Reproduce||Make an order and use a voucher.|
|Additional Information||In the email templates the voucher values are tried to get from $voucher->oxmodvouchers__... but since the table name is oxvouchers the template gets only empty values for the vouchers.|
To correct this the calls need to be changed to $voucher->oxvouchers__...
This is in both themes, in the html and plain emails for the customer and the owner:
|Tags||No tags attached.|
I just recognized another bug in the templates for the plain emails, which also prevents the vouchers from being displayed.
The foreach to output the vouchers uses the variable $vouchers, but this variable is never set.
Here the foreach should use $order->getVoucherList(), like it is done in the templates for the html emails.