Jump to content

Discount Input field only on discounted products and not all products in cat


Recommended Posts

Is it possible to let the "voucher/discount code input field" opportunity appear in the cart, if the user has selected a product with a discountcode attached to it and not appear as default on all carts, where it might obstruct due to it's non-relevance?

Any solution to this?

Link to comment
Share on other sites

Hi

 

If you use default theme, you can change the condition

{if $voucherAllowed}

by

{if $voucherAllowed && count($displayVouchers)}

on lines 128, 160 and 193 of themes/default-bootstrap/shopping-cart.tlp (1.6.0.14)

 

Then the input box is not displayed in case there is no available highlighted voucher for that cart/customer.

The problem is that is neither displayed when there are available "invisible" vouchers that the customer may know another way (e.g. email).

This can be solved by changing ParentOrderController.php (add smarty variable indicating there are such vouchers).

 

Regards

Link to comment
Share on other sites

×
×
  • Create New...