Jump to content

(SOLVED) Add to cart button text


Recommended Posts

Change this code in product-list.tpl:

{if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
{l s='Add to cart'}
{else}
{l s='Add to cart'}
{/if}


to this: (note the difference is the exclusive_big class)

{if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
{l s='Add to cart'}
{else}
{l s='Add to cart'}
{/if}


and in global.css. ADD this selector:

input.exclusive_big, input.exclusive_big_disabled, a.exclusive_big, span.exclusive_big { 
 background-image: url('../img/button-large_exclusive.gif') 
 width: 180px;
}



What this will do is create a new selector that uses the large button for your add to cart button where it normally uses the medium button. The large button is 180px wide. I hope that is enough.

Link to comment
Share on other sites

MrBaseball34, Just a question, were in the global.css. page should I put the selector, its new code or replace an existing one?
I opened the global.css. page in Dreamweaver and is huge! this is the first time I do something like this!

Thanks

Luis

Link to comment
Share on other sites

  • 11 months later...

Hi I am actually wanting to edit the text in the button that says view when you click on a category page then it shows the list of products.

 

I've tried editing the tpl file but nothing changes.

 

i want to change the word view to Choose Product Size because I am basing my prices on atrributes. Any help would be greatfully appreciated

Link to comment
Share on other sites

Hi I am actually wanting to edit the text in the button that says view when you click on a category page then it shows the list of products.

 

Search for this text in your tpl files:

title="{l s='View'}"

Then you'll find it. I can see 3 in my template. product-list.tpl, product.tpl and producs-comparison.tpl

Link to comment
Share on other sites

×
×
  • Create New...