-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Security Level: All-users
-
Labels:None
When a person had a voucher in version 1.4, the voucher code was displayed in the cart at checkout. The person only needed to click on the voucher and it was transferred to the voucher field where it could be applied.
In version 1.5.3.1 the voucher field is displayed, but there are no vouchers shown. A person can manually type in the voucher and it will work, but this approach is inconvenient. Thanks to @ lordcracker who answered my post on the forum, the following corrected the problem so it behaves like it was in version 1.4:
http://www.prestashop.com/forums/index.php?/topic/218019-solved-vouchers-not-dispalyed-in-cart-or-my-vouchers/page__view__findpost__p__1076214
edit the file /controllers/DiscountController.php
on line 46 change from:
$this->context->smarty->assign(array('nb_cart_rules' => (int)$nb_cart_rules, 'cart_rules' => $cart_rules));
to:
$this->context->smarty->assign(array('nb_cart_rules' => (int)$nb_cart_rules, 'cart_rules' => $cart_rules, 'discount' => $cart_rules, 'nbDiscounts' => (int)$nb_cart_rules));