msk69 Posted January 8, 2009 Share Posted January 8, 2009 I just discovered that if i make a custom stock message only in the ...when out of stock: field that it is not showing on the product info page. After i add a custom message in ....when in stock: then the out of stock message will show up.Is that a bug?Also i'd like to see in the custom message in the product listing, couse now if it is out of stock, and ordering the product is allowed on the product-listing it show: in stock, while there is no stock! Bug?Is there anyone who knows a code solution to show up the custom ...when out of stock: text in the product listing?Thanks in advanced.Marco Link to comment Share on other sites More sharing options...
peej Posted March 24, 2009 Share Posted March 24, 2009 Hi there, It seems to be more questions than answers on this topic. I have found several threads requesting this functionality and no answers. However it should not be that hard to find a solution. The nessesary code is already in the product details and it shouldn't be that much job to implement it into the product-list.tpl and homefeatured. I would really appreciate if someone could help me on this one. I'm not that into coding (yet)...//peej Link to comment Share on other sites More sharing options...
peej Posted March 26, 2009 Share Posted March 26, 2009 I just discovered that if i make a custom stock message only in the ...when out of stock: field that it is not showing on the product info page. After i add a custom message in ....when in stock: then the out of stock message will show up.Is that a bug?Also i'd like to see in the custom message in the product listing, couse now if it is out of stock, and ordering the product is allowed on the product-listing it show: in stock, while there is no stock! Bug?Is there anyone who knows a code solution to show up the custom ...when out of stock: text in the product listing?Thanks in advanced.Marco Hi Marco,I think I managed to fix it. You will have to change the following code in product-list.tpl: {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} into: {if $product.quantity > 0}{$product.available_now|escape:'quotes':'UTF-8'}{else}{if $product.allow_oosp}{$product.available_later|escape:'quotes':'UTF-8'}{else}{l s='Out of stock'}{/if}{/if} //peej Link to comment Share on other sites More sharing options...
msk69 Posted February 26, 2010 Author Share Posted February 26, 2010 Hi Peej,i'm sorry, i just read your reply.. :-(I did test it, and quite seems to work, except when ordering is disabled if out of stock, then it does not show the text when it is expected.Thanks!Marco Link to comment Share on other sites More sharing options...
doigro Posted August 7, 2010 Share Posted August 7, 2010 Great! It works just fine! Link to comment Share on other sites More sharing options...
CameraTek Posted August 21, 2010 Share Posted August 21, 2010 Hi all,This is how I've done it,{if ($product.allow_oosp==0 OR $product.quantity > 0)}{l s='Available' mod='filtersearch'}{else}{l s='Back Order' mod='filtersearch'}{/if}The code above shows "Available" when in stock and "Back Order" when there's 0 stock.If your not using the filter search mod u need to delete mod='filtersearch' from the code. What i would like to see is the available stock shown on the product list page, anyone know where the code is to pull the stock available.CheersAndy 1 Link to comment Share on other sites More sharing options...
xiawa Posted December 4, 2011 Share Posted December 4, 2011 works perfectly, thanks! 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