Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I want to display an alert that shows up when a product is out of stock, which will show general timeframes of when the product will be next shipping. I have added a meta field to the locations in the backend, but I can't seem to find the code that I can drop into the template to generate this data - I would expect I could do this depending on the location that the product is shipped from, which are all set up at:
https://admin.shopify.com/store/ACCOUNT/settings/locations/
I would have expected that this would just be a dynamic code snippet that Shopify provides, such as “{{ settings.color_scheme }}” or “{% render ‘meta-tags’ %}”.
In the way of displaying the message, I have developers that can take this tag, and then work out how to generate the right info, but the timeframe itself needs to be updatable on the locations themselves. Note; products will be set to continue selling once out of stock, as there's always fresh stock arriving, hence the note.
Any help here would be so very much appreciated.