Post by alexfwd » Wed May 30, 2012 12:18 am

Hey,

I'm using standard template, I want to change the 'Add to Cart' text on all pages to 'Add to Pad'

I've made this change to category.tpl and it doesn't seem to work, but the same change worked on the product.tpl, really confused. I've tried deleting cache etc. but still says add to cart!

<div class="cart">
<input type="button" value="Add to Pad" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" />
</div>

can anyone help?

gifts for her - for guys that are pants at romance http://suchabloke.com


New member

Posts

Joined
Wed May 30, 2012 12:15 am


Post by rph » Wed May 30, 2012 12:38 am

Revert back to default then open:

/catalog/language/english/english.php

And change:

Code: Select all

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

Code: Select all

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

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by alexfwd » Wed May 30, 2012 4:28 pm

fantastic, cheers Ryan, didn't know that page existed :)

gifts for her - for guys that are pants at romance http://suchabloke.com


New member

Posts

Joined
Wed May 30, 2012 12:15 am


Post by Manus » Tue May 06, 2014 5:46 pm

Hey guys, I know this is an old post, but is there a way to do this for only one item and then perhaps let it take you to a different URL? That would be quite useful. Reason: Products are fine the way they are, but want to add a product that instead of buying/adding to cart, takes you to a page where they can sign up for a subscription.

Any help or advice would be greatly appreciated. Thanks

Newbie

Posts

Joined
Tue May 06, 2014 5:20 pm

Post by speziasoft » Mon Dec 14, 2015 3:50 pm

One of the ways to make your store more unique and interesting is to change some of the text strings that are common for all online stores. This is why in this article we will show you how to change the “Add to Cart” text to something different.

How?
Changing the button name is actually quite easy. You just have to change the language string for that phrase and you are good to go. I will show you how to do this step by step. In the following example we will change the “Add to Cart” string for the English language, but this way is applicable for all languages on your store. Lets go!

Access your store’s files.
Navigate to catalog/language/english/default.php.
Find the following string:
1
$_['button_cart'] = 'Add to Cart';
Replace it with:
1
$_['button_cart'] = 'Order This';

That’s it! 8)
In the example above, we are changing the phrase with “Get it!”, but you can change it to whatever you want it to be. By doing this change, you will modify the string globally and it will not matter what template you are using, as long as the button text is not hardcoded in it.

Opencart Expert speziasoft

Newbie

Posts

Joined
Mon Dec 14, 2015 3:42 pm
Who is online

Users browsing this forum: No registered users and 7 guests