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.
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).
As an example, we've added the following code to one of our listing pages:
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)