Post by gowtham_glx » Fri Feb 24, 2012 1:55 am

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

New member

Posts

Joined
Fri Jul 08, 2011 6:24 pm

Post by gowtham_glx » Fri Feb 24, 2012 5:48 pm

Solved Myself :)

upload\catalog\view\theme\default\template\product\ category.tpl
find <?php echo $button_cart; ?> replace with required text. ex: "more Details"

New member

Posts

Joined
Fri Jul 08, 2011 6:24 pm

Post by Avvici » Fri Feb 24, 2012 5:54 pm

gowtham_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"
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.php
Alter this line to what you want the text to say :

Code: Select all

$_['button_cart']    = 'Add to Cart';

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: No registered users and 150 guests