FROM CACHE - en_header

How do I add a message that when product out of stock

Irene_Koufalis
New Member
1 0 0

How do I add a message that when product out of stock:

that when product is zero quantity and hence out of stock there is a 3-4 week delivery time with shipping costs waived (free);

Shopify staff said the only way is to add html code because they could not find any apps;

 

 

Replies 12 (12)
Elle_old
Shopify Staff (Retired)
Shopify Staff (Retired)
272 1 32

Hey, Irene!

Stephanie here from Shopify.

We have a doc that includes a step by step guide to add a message when a product is out of stock! Here's the direct link - https://help.shopify.com/manual/products/inventory/product-availability?utm_medium=Forum&utm_campaig...

Hope this helps! 🙂

Cheers!

Stephanie | Shopify Support
WRCB
Tourist
6 0 5

This works for items with only one variant.  Is there a way to do this for multiple variants?  So when a variant is selected it either says "in stock" or "out of stock - Will ship in 1-2 weeks"  This topic has been posted so many times on this forum and there is no clear answer!!!

Kerry
Tourist
6 0 2

WRCB,

I'm having the same challenge. Were you able to figure this out? 

William_H
Shopify Partner
30 3 4

Having the same issues as well. All of the support threads just get closed without resolution. 

Kerry
Tourist
6 0 2

William,

We are using an older theme, Minimal, that is supported by Shopify. I contacted them and they added a badge "Sold Out" similar to the Sale badge. It automatically shows when inventory is out. You can see it at the bottom of our page shop.daskeyboard.com.

Hope this helps

David-Dlan
New Member
2 0 4

We also need this feature. I just had Chat conversation with Shopify team and they give standard reply: " this is not a feature we currently offer. I can certainly put in a request to have this feature added...  I will send this up to our development team. The more requests that are received for a feature like this, the more likely it is to be developed. It can take quite some time before a request is actioned. New features are usually updated on the Shopify Blog."

 

And now we wait 😉

David-Dlan
New Member
2 0 4

Hi Stephanie_R,

 

We need to add a message when a product is out of stock, not to remove it.

The message would be something like:

Item not in stock - Available in 5 days to shipping!

or

Item not in stock - Available after order in 15 days.

 

Any developments around this hot feature?

NickSJR
New Member
2 0 1

C'mon Shopify, wake up! We need solution for this problem now!

Jason
Shopify Expert
10921 193 2198

Some tweaks to the theme would be an option. Is that not a path you can take? The theme determines the UI that the customer sees.

  • For example a tag on a product defines the replenishment time.
  • Variant becomes out of stock and the code checks for the tag. If it know how long to show to the customer.
  • Some extra work need to make sure that product tag is removed from any filtering lists.

If all the products have the same replenishment time it's easier.

  • Variant selected is out of stock so the theme code shows the default message you set. It may not even need theme mods if your theme already has a language/translation setting for out of stock message. You'd change the "out of stock" text to read "back in 3 weeks".
★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
Surfman
New Member
2 0 0

Any news on this?

I managed to adjust my theme's liquid code with a check whether the variant is out of stock or not, showing "only x left in stock" when there's more than 0 left in stock and a custom text saying "Out of stock - will ship in 2 weeks" when out of stock. But for some reason, it only works as expected on products with only 1 variant or in some special cases when I have more than 1 variants. When looking at the generated HTML, it shows the code has been generated as wanted, but for some reason it is not being rendered accordingly by the browser.

Example: Product with 3 variants, max limit for showing stock = 1:

Variant 1: 10 items in stock
Variant 2: 1 item in stock
Variant 3: 0 items in stock / out of stock

Case 1:
1: When opening the product page, Variant 1 is selected by default, and no notice of stock is showing, just as expected. 
2: When selecting Variant 2, the notice "only 1 left in stock" is shown, also as expected.
3: When after this, selecting Variant 3, the notice "only 0 left in stock" is shown, and not the expected "Out of stock - will ship in 2 week". When after this opening the page's HTML, it says "Out of stock - will ship in 2 weeks" - but still the web page shows: "only 0 left in stock".

Case 2:

1: When opening the product page, Variant 1 is selected by default, and no notice of stock is showing, still as expected. 
2: When selecting Variant 3, the notice "Out of stock - will ship in 2 weeks" is shown, as expected.
3: When after this, selecting Variant 3, the notice "Out of stock - will ship in 2 weeks" is still showing, and not the expected "only 1 left in stock". When after this opening the page's HTML, it says "only 1 left in stock" - but still the web page shows: "Out of stock - will ship in 2 weeks".

Does this have something to do with the web browser's caching?

I am using the Venue theme, and added line 1 and 3 (the "if" and "elsif"-statements) in the product-template.liquid under "Sections".

{% if current_variant.inventory_quantity > 0 %} 
{{ 'products.product.qty_notice_html' | t: count: current_variant.inventory_quantity }}
{% elsif current_variant.inventory_quantity == 0 %}Out of stock - will shop in 2 weeks.{% endif %}

Does anyone have a suggestion to how to solve this?

Thanks!

worldwearygear
Tourist
5 0 2

This is what i know worked for me 

1. go into products and find the product thats out of stock 

2. click the product and click edit on one of the variants 

3. if you scroll down youll see the option to track the inventory , click that 

4. youll have to do it for every variant 

once you go back on your website it should show that its sold out without having to delete the product of your site 

Maltosk1
New Member
1 0 0

This app seems pertinent and I'm not affiliated 😉

https://apps.shopify.com/product-warnings