How to get the discount amount code of voucher applied in prestashop
问题 I am attaching the below snapshots of prestashop shopping cart So how I will get the code of discount amount from the voucher redeemed. http://imgur.com/a/bvx7J http://imgur.com/a/XgT9p 回答1: You can use the getCartRules() function to fetch all the cart rules applied on any cart. This function is defined in the Cart.php class file. You can use the following code to fetch all the coupon details on current cart: $this->context->cart->getCartRules(); and you can use below code to know if the