franz1386 Posted March 7, 2013 Share Posted March 7, 2013 (edited) Hi Everybody, i need to modify my theme and i don't know how to do it...i use a theme that is called 'EtBlack', when a product isn't available this theme put in the product page only the price without putting the 'add to chart' button and the other informations that appear when it is available....i want to see there the word 'SOLD' and not the price! I think that i have to change something in the file product.tpl....i've taken a look at it but i haven't understood how to do it....any idea? Thank you very much! Edited March 8, 2013 by franz1386 (see edit history) Link to comment Share on other sites More sharing options...
Carlsen Posted March 8, 2013 Share Posted March 8, 2013 Hi Franz, This will display SOLD if the quantity is 0: {if ($product->quantity <= 0)}<strong>SOLD</strong>{/if} 1 Link to comment Share on other sites More sharing options...
vekia Posted March 8, 2013 Share Posted March 8, 2013 franz1386 does Carlsen solution works for you? If so, please mark own topic as solved for other forum members Link to comment Share on other sites More sharing options...
franz1386 Posted March 8, 2013 Author Share Posted March 8, 2013 I've tried it now....it works!!! Thank you very much! Link to comment Share on other sites More sharing options...
vekia Posted March 8, 2013 Share Posted March 8, 2013 I've tried it now....it works!!! Thank you very much! thanks for sharing information with us, im so happy that you found solution here Your shop is online now? I'd like to see how it looks Link to comment Share on other sites More sharing options...
Girishbhai Posted September 5, 2013 Share Posted September 5, 2013 Hi Franz, This will display SOLD if the quantity is 0: {if ($product->quantity <= 0)}<strong>SOLD</strong>{/if} Hello carlsen, i am new to prestashop and would like to know how this line can be inserted in my website. can u explain in detail.. Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 hello in this case you have to open file: themes/YOUR_THEME/product.tpl file then insert code mentioned by Franz anywhere you want (in the product.tpl file) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now