Shopify Buy Button - Out of Stock wording


Hello,

I would like to change the wording of “Out of Stock” to “Coming Soon” or even to “Pre-order”.

I would like for the button to open up a link (our contact page on the website), if the items are out of stock.

I tried to modify the code but I couldn’t find where I should change it.

I’ve put an example of the code. I only see the lines for “add to cart” and “Subtotal”.

I had this same issue.

the button text section requires an extra value:

"text": {
      "button": "Add to cart",
      "outOfStock": 'Coming Soon'
    }
4 Likes

Wow, this really works. Can’t believe there is no doc for this. Or maybe there is, but I haven’t found it yet.

Jesus Rococo, thank you so much, it f#@§=ég works! :slightly_smiling_face:

1 Like

Thanks @RococoDigital I found it here (SEO works) then searched the Github page.
@thatgriffith i found docs on Github at https://github.com/Shopify/buy-button-js/blob/master/docs/customization/index.md#product-text-defaults

1 Like