I am attaching the below snapshots of prestashop shopping cart So how I will get the code of discount amount from the voucher redeemed.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- Carriage Return (ASCII chr 13) is missing from tex
- PHP Recursively File Folder Scan Sorted by Modific
- How to fix IE ClearType + jQuery opacity problem i
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:
and you can use below code to know if the customer is using the voucher for the first time.