Nikki72 Posted November 10, 2012 Share Posted November 10, 2012 It seems at the moment if a product is out of stock you can either hide the buy button from that product which displays "Out of Stock" or allow out of stock purchases but then the product doesn't show any out of stock message. I would like to still allow out of stock purchases but still show that "Out of Stock" message so the customer is aware that the product is indeed awaiting stock. Do you know how i can do this please? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 10, 2012 Share Posted November 10, 2012 I suspect adding an if/then arrangement where the stock number is displayed to show a message that it is out of stock but can be back ordered would work. I did something similar in content.product.php to highlight that Quantity Discounts were available. <!-- Availability --> {if $PRODUCT.use_stock_level && $PRODUCT.stock_level != false} <li title="{$LANG.catalogue.stock_level}"> <!--<strong>{$LANG.catalogue.stock_level}</strong>--> <span class="availability"> {if $PRODUCT.stock_level > 0} <p><strong>{$LANG.catalogue.stock_level}</strong> {$PRODUCT.stock_level}</p> {if isset($PRODUCT.discounts)} <p>(Quantity Discount Available)</p> {/if} <!--{$LANG.catalogue.stock_available}--> {else} {$LANG.catalogue.out_of_stock_short} {/if} </span> </li> {/if} Quote Link to comment Share on other sites More sharing options...
Nikki72 Posted November 12, 2012 Author Share Posted November 12, 2012 I suspect adding an if/then arrangement where the stock number is displayed to show a message that it is out of stock but can be back ordered would work. I did something similar in content.product.php to highlight that Quantity Discounts were available. <!-- Availability --> {if $PRODUCT.use_stock_level && $PRODUCT.stock_level != false} <li title="{$LANG.catalogue.stock_level}"> <!--<strong>{$LANG.catalogue.stock_level}</strong>--> <span class="availability"> {if $PRODUCT.stock_level > 0} <p><strong>{$LANG.catalogue.stock_level}</strong> {$PRODUCT.stock_level}</p> {if isset($PRODUCT.discounts)} <p>(Quantity Discount Available)</p> {/if} <!--{$LANG.catalogue.stock_available}--> {else} {$LANG.catalogue.out_of_stock_short} {/if} </span> </li> {/if} Thank you very much for that but it's not working for me. Here's my code (I've removed references to Quantity Discounts and substituted "{$LANG.catalogue.out_of_stock_short}" with "Awaiting Stock": {if $PRODUCT.use_stock_level && $PRODUCT.stock_level != false} {if $PRODUCT.stock_level > 0} <p><strong><strong>{$LANG.catalogue.stock_level}:</strong></strong> {$PRODUCT.stock_level}</p> <p> </p> {else} <p><strong>Awaiting Stock</strong></p> {/if} {/if} Quote Link to comment Share on other sites More sharing options...
Toucan Web Design Posted November 12, 2012 Share Posted November 12, 2012 Try: {if $PRODUCT.use_stock_level == false || $PRODUCT.stock_level > 0} {if $PRODUCT.stock_level > 0} <p><strong><strong>{$LANG.catalogue.stock_level}:</strong></strong> {$PRODUCT.stock_level}</p> <p> </p> {/if} {else} <p><strong>Awaiting Stock</strong></p> {/if} Quote Link to comment Share on other sites More sharing options...
Nikki72 Posted November 12, 2012 Author Share Posted November 12, 2012 Try: {if $PRODUCT.use_stock_level == false || $PRODUCT.stock_level > 0} {if $PRODUCT.stock_level > 0} <p><strong><strong>{$LANG.catalogue.stock_level}:</strong></strong> {$PRODUCT.stock_level}</p> <p> </p> {/if} {else} <p><strong>Awaiting Stock</strong></p> {/if} Thank you, that worked perfectly :yeahhh: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.