acateon Posted April 28, 2013 Share Posted April 28, 2013 When displaying available vouchers in cart, is it possible to show the amounted discount of every voucher without having to adding them to the cart? Something like {$voucher.amount} or {$voucher.value} ? Link to comment Share on other sites More sharing options...
vekia Posted April 28, 2013 Share Posted April 28, 2013 you can set up the "highlight" mode in module configuraiton, after that go to the shopping-cart.tpl and use variables like: {$voucher.value} etc. Link to comment Share on other sites More sharing options...
acateon Posted April 28, 2013 Author Share Posted April 28, 2013 All right! Do know where I could read up on activating "highlight"? Link to comment Share on other sites More sharing options...
vekia Posted April 29, 2013 Share Posted April 29, 2013 what prestashop version you use? Im asking, because this option is available only in prestashop 1.5.x in prestashop 1.4.x you've got: "Display the voucher in the cart summary:" Link to comment Share on other sites More sharing options...
acateon Posted April 29, 2013 Author Share Posted April 29, 2013 I'm using 1.4.3 and the "display voucher in cart" is active, but what I'm after is the ability to show the actual value of every discount. As of now its: {$voucher.value} Description: Bla bla {$voucher.code } Code: bla-bla But I also want to show the actual amount every voucher is worth with something like {$voucher.value/amount} Link to comment Share on other sites More sharing options...
bozor2 Posted July 31, 2013 Share Posted July 31, 2013 Hi, I've PS 1.4.6 version. when I've inserted the voucher code in the cart (voucher name random create by prestashop with the 10% on total amount, with correct data, all clients and etc.. ) and I clicked add, it shows "voucher code don't applicable" and didn't calculate nothing. in the cart i've added 3 items. The theme is the prestashop default. How I can solve this problem?How I can modify my file .php? This my DiscountController.php in the path public_html/controllers/DiscountController.php class DiscountControllerCore extends FrontController { public $auth = true; public $php_self = 'discount.php'; public $authRedirection = 'discount.php'; public $ssl = true; public function process() { parent::process(); $discounts = Discount::getCustomerDiscounts((int)(self::$cookie->id_lang), (int)(self::$cookie->id_customer), true, false); $nbDiscounts = 0; foreach ($discounts AS $discount) if ($discount['quantity_for_user']) $nbDiscounts++; self::$smarty->assign(array('nbDiscounts' => (int)($nbDiscounts), 'discount' => $discounts)); } public function displayContent() { parent::displayContent(); self::$smarty->display(_PS_THEME_DIR_.'discount.tpl'); } } If you need more information please post or contact me Link to comment Share on other sites More sharing options...
vekia Posted July 31, 2013 Share Posted July 31, 2013 please share some more information about voucher code that you created - screenshot of voucher settings will be really helpfull Link to comment Share on other sites More sharing options...
bozor2 Posted July 31, 2013 Share Posted July 31, 2013 Ive done one more test, but don't work I've uploaded my screenshots, _FrontController.php, DiscountController.php, shopping-cart.tpl files in a test platform because i can't post them ftp://testzencart.0zed.com/ username : u786317092 password : travel I hope this information are useful for you..if you can post my files without problem.. thanks Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 login and pass doesnt work Link to comment Share on other sites More sharing options...
bozor2 Posted August 2, 2013 Share Posted August 2, 2013 Sorry.. the password is problem Link to comment Share on other sites More sharing options...
bozor2 Posted August 2, 2013 Share Posted August 2, 2013 Do you can entry? Link to comment Share on other sites More sharing options...
bozor2 Posted August 8, 2013 Share Posted August 8, 2013 Do you have some problem to check files? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now