unik Posted August 10, 2012 Share Posted August 10, 2012 (edited) Hi everyone, I'm using presta 1.4.1.0 and I don't use stock control. When I have a product without stock I unselect "Available" and "Show price". I would like that when unselect "Available" or "Show price" the F.O. show a message "Out of stock" or "Not available". Does anyone know how to do? I think this could be fine for everyone that don't use stock control. Thanks in advance. Manel. Edited August 10, 2012 by unik (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted August 10, 2012 Share Posted August 10, 2012 you can use something like this code in product page {if $product->available_for_order == 0} {l s='Out of stock'} {/if} Link to comment Share on other sites More sharing options...
unik Posted August 10, 2012 Author Share Posted August 10, 2012 (edited) Hi Shacker, your solution is perfect. I put it in product.tpl and fantastic. Now I'm trying to do the same but in product-list.tpl but with no luck yet. Thank you very much. Manel. Edited August 10, 2012 by unik (see edit history) Link to comment Share on other sites More sharing options...
unik Posted August 10, 2012 Author Share Posted August 10, 2012 Done, in product-list.tpl I used: {if $product.available_for_order == 0} {l s='Out of stock'} {/if} Thank Shacker. Regards, Manel. Link to comment Share on other sites More sharing options...
shacker Posted August 11, 2012 Share Posted August 11, 2012 your welcome. regards Link to comment Share on other sites More sharing options...
b.designer Posted December 11, 2012 Share Posted December 11, 2012 Hi. I am trying to do this (see attachment). I thought that maybe there was some kind of module that would activate that. Do you guys know? It there is none, then, where exactly would I insert this code: {if $product->available_for_order == 0} {l s='Out of stock'} {/if} Tks. Link to comment Share on other sites More sharing options...
shacker Posted December 13, 2012 Share Posted December 13, 2012 you force compile in oreferences, performance?= Link to comment Share on other sites More sharing options...
Alister91 Posted December 13, 2012 Share Posted December 13, 2012 I'm using presta 1.4.1.0 and I don't use stock control. When I have a product without stock I unselect "Available" and "Show price". I would like that when unselect "Available" or "Show price" the F.O. show a message "Out of stock" or "Not available". Does anyone know how to do? Link to comment Share on other sites More sharing options...
b.designer Posted December 13, 2012 Share Posted December 13, 2012 (edited) I'm using presta 1.4.1.0 and I don't use stock control. When I have a product without stock I unselect "Available" and "Show price". I would like that when unselect "Available" or "Show price" the F.O. show a message "Out of stock" or "Not available". Does anyone know how to do? I just want the same. Does anyone know how to do it? Though i am on 1.5... tks. Edited December 13, 2012 by b.designer (see edit history) Link to comment Share on other sites More sharing options...
b.designer Posted December 17, 2012 Share Posted December 17, 2012 anyone? Link to comment Share on other sites More sharing options...
PhpMadman Posted February 28, 2013 Share Posted February 28, 2013 I want to do something similar to this. We don't use Prestashop for stock control. We use another system for that. Prestashop functions as a normal store, where you can buy products even if they are out of stock. Wich they all are, beacuse we havent entred any, since stockmanger is disabled. But we want to be able to add a msg to the product page, that the product is out of stock. I was thinking the could be achieved somehow with a simple Yes/No select. Do anyone know if it is possible to do it? Link to comment Share on other sites More sharing options...
Recommended Posts