Custom message when there is 0 items in stock [Supply theme]

Solved
Highlighted
New Member
1 0 0

I would like to show a message like "Currently out of stock, ETA is 2-3 Weeks" with active add to cart button. 
One product for example (stock is zero with active add to cart button):

 

Product URL 

I am using warehouse theme...

 

Thanks in advance

 

0 Likes
Highlighted
New Member
1 0 0
hi Ninthony.
your code did not work on my website.
there is this code in my theme.js.liquid files :
 
if (variant && variant.inventory_management === 'shopify') {
  showInventory = true;
  quantity = window.inventories[this.sectionId][variant.id];
 
  if (quantity <= 0 || quantity > 10) {
showInventory = false;
  }
}
 
it doesn't start like your code :
 
if (variant.inventory_management) {}
 
 
if the product is 0 in stock. then continue with pre-order. not with sold out.
and I don't know what file to change.
 
thanks.
0 Likes
Highlighted
New Member
1 0 0

Hi ,

 

I am also looking for this solution.

 

If the product quantity is 0 and ( Continue selling when out of stock ) is enabled, then I would like to show a message on the product page as 

2 - 3 weeks delivery.

 

If the product quantity is 0 and ( Continue selling when out of stock ) is disabled, then i would like to show a message on the product page as

Contact us for price and future availability.

 

If the product quantity is not 0 and ( Continue selling when out of stock ) is enabled or disabled, then I would like to show a message on the product page as 

Free Delivery - 2 working days.

 

Above requirement is for all the products on my website.

 

@Ninthony  can you please assist.

0 Likes
Highlighted
New Member
6 0 0

Hi Brian, i would also like to have a custom message that pops up when people are buying an item out of stock. I would like it to say "Available on backorder. Please allow 2-3 weeks for delivery" Is this possible?

0 Likes