Knowledgebase: Site Design

How do I use the "outofstock_block" feature?

 

The "outofstock_block" feature is intended to allow merchants to automatically display a robust and HTML-rich message to their shoppers when the item's stock level reaches 0. 

Note:
This new feature is not to be confused with the custom "Stock Message" function described in this KB article, which only allows for a simple custom line for your product's individual availability. Instead, this new feature will allow you to display actual HTML elements to the product listing page dynamically when the product's inventory reaches zero.

Also, please bear in mind that this new function is intended for base product inventory and will not work for advanced options inventory.

To use this new outofstock_block feature, you will simply need to add the following code to your specific HTML listing template(s).

<!--START: outofstock_block->
  [YOUR OUT OF STOCK HTML CODING]
<!--END: outofstock_block->

The placement of the code block will depend on your own specific needs, but the overall effect will allow you to add whole sections of HTML coding and/or scripting (i.e. javascript, jquery, images, or plain text) to the listing page which will dynamically insert only when the item's stock reaches zero.

As an example, we've added the following code to one of our listing pages:

<!--START: outofstock_block->
<tr>
<td align="center">
<div style="align: center; background-color: yellow; color: red;">
<strong>We're Sorry.<p>This item is currently out of stock, but we ARE STILL accepting back orders for it.<p>Thank you for your patronage!</strong>
</div>
</td>
</tr>
<!--END: outofstock_block->

The overall effect is that - when the item's stock reaches zero - not only will the custom availability message apply to the product but also a larger section of HTML will render telling shoppers of the product's availability. (see image)

Note
As always, please be sure to make backups of your HTML templates before attempting to make any types of edits. Technical Support will not be able to help troubleshoot or consult on design aspects being as HTML design is outside of our scope of support.


Help Desk Software by Kayako fusion