Jump to content

Show only allowed vouchers for product on cart summary


chamanx

Recommended Posts

Hello and sorry if this has already been answered, but i haven't found anything so far...

 

I am using PS 1.5.3.1 and i want to associate gifts to some products, For example, if you buy a certain product, you get a free case, and only for that product.

 

I want that voucher to be visible on the cart so that the user can select the one he wants.

Then i create a voucher and associate it to a single product, and mark it as highlighted. The problem is that it's shown in every product, then if you try to use it in a non allowed product, it displays an error.

 

So i want that only allowed products show these highlighted vouchers, so i would need some variable or function to add some code at shopping-cart.tpl where vouchers are listed. I guess i have to use something from CartRule.php but no idea.

 

I don't know if the problem is clear but i need it urgently :(

 

Thanks in advance.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...