Thank you for this tutorial. I have implemented the solution for Sectioned themes. I have 3 product variants, S, M and L. I tested this out by indicate S and L at 0 inventory and M at 1 inventory, but when I select M on the front end, the button still says Pre-order. Do you have any inkling where I may have gone wrong in my implementation?
Hi TyW,
Thank you for your easy-to-follow instructions. Do you happen to have an updated or applicable to "brooklyn" theme version by chance? Your codes don't work fo my store. Store url is www.ootdnewyork10.com and the theme, again, is brooklyn.
This is in response to samueldthomas "missing code" comment:
Thank you this worked for me. One thing to note, when I copied and replaced this line of code verbatim it broke my nested menu. When I added the "," to the end of the line of code it worked perfectly.
TyW,
I am following your instructions to the Tee. Maybe I am missing something the line code for the style for the boost template does not have the following below for me to replace.
addToCart: {{ 'products.product.add_to_cart' | t | json }}, to addToCart: {{ 'Pre-order' | json }},
instead I have the following code.
<script type="application/json" class="ProductJson-{{ product.id }}">
{{ product | json }}
</script>
Do you have any updated instructions?
Good Day I have followed instructions and everything works great! I have one question though, how can products that are in stock show an "in stock" or "add to cart" to show that they are in stock and not on preorder, and then switch to pre-order if the inventory stock hits 0? Would one have to change the Template suffix or is there a script that can be included?
User | Count |
---|---|
567 | |
210 | |
129 | |
82 | |
45 |