Jump to content

Changing "in stock" to a link


Recommended Posts

in what file is the html for add to card button box on the detail product page?
this should be easy if i could just find the html and add link tag to it.

a lot of parts we don't stock and they are in a warehouse in the states so i would like to change the text that displayed when an item is out of stock to contain a link to a CMS page explaining that a lot of special parts are none stock items and since there are imported from the stats there will be a two weeks delivery time.

Link to comment
Share on other sites

you have to edit "product.tpl" under "root/themes/prestashop". codes located between line 269-274.

    <!-- number of item in stock -->

quantity == 0} style="display:none;"{/if}>
{$product->quantity|intval}
quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'}
quantity == 1} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...