Hi,
I would like to change the "add to cart button" in category page to "more details". i changed the text in language file from
"add to cart " to "more details" but the change reflects in all pages. i want only the category page button name to be changed.
Please help
Regards
Gowtham K
Solved Myself
upload\catalog\view\theme\default\template\product\ category.tpl
find <?php echo $button_cart; ?> replace with required text. ex: "more Details"
upload\catalog\view\theme\default\template\product\ category.tpl
find <?php echo $button_cart; ?> replace with required text. ex: "more Details"
You would be better off changing that from the language file and not the .tpl. I only say this because it is good to get used to using the Language File that this platform has. That way the code in upload\catalog\view\theme\default\template\product\ category.tpl stays in tact. Next time just locate this file: catalog/language/english/english.phpgowtham_glx wrote:Solved Myself
upload\catalog\view\theme\default\template\product\ category.tpl
find <?php echo $button_cart; ?> replace with required text. ex: "more Details"
Alter this line to what you want the text to say :
Code: Select all
$_['button_cart'] = 'Add to Cart';
Who is online
Users browsing this forum: No registered users and 150 guests