Jump to content

Different "add to cart" buttons for different categories?


Recommended Posts

I'm trying to find a way to display a different text on the "add to cart" button in different categories. For legal reasons I need the button in category 1 to say 'buy now', and the button in category 2 needs to show 'try now'. Does anyone know if and how this can be done?

 

Any help is greatly apppreciated!

 

Thanks,

Tom

Link to comment
Share on other sites

Edit the tpl file (product and product-list.tpl) and add an if condition around the add to cart text, check $product.id_category_default (the default category id for the product) against the categories you need to change the text for, and display the appropriate message on the button

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...