Tomcable Posted February 19, 2012 Share Posted February 19, 2012 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 More sharing options...
tomerg3 Posted February 20, 2012 Share Posted February 20, 2012 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 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