Uploaded image for project: 'Prestashop 1.5'
  1. Prestashop 1.5
  2. PSCFV-7553

Vouchers in 1.5.3.1 are not displayed in checkout the way they were in 1.4

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Security Level: All-users
    • Labels:
      None

      Description

      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));

        Attachments

          Activity

            People

            • Assignee:
              dmetzger dmetzger
              Reporter:
              rhapsody Bill Kneller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: