Jump to content

Resolved - Show Out Of Stock Message


Nikki72

Recommended Posts

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?

Link to comment
Share on other sites

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}



Link to comment
Share on other sites

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>&nbsp;</p>

{else}

<p><strong>Awaiting Stock</strong></p>

{/if}

{/if}

Link to comment
Share on other sites

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>&nbsp;</p>

{/if}

{else}

<p><strong>Awaiting Stock</strong></p>

{/if}

Thank you, that worked perfectly :yeahhh:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...