From 1231420689:
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