Backorder button instead of add to cart button Theme:Refresh

I am trying to get my add to cart button to change to a back order button and get it to say will ship in 1-2 weeks. Please help.

Add this code

{% if product.available %}
  
{% else %}
  
{% endif %}

Where do I add this code?

In product.liquid file

Hey,

Shopify doesn’t natively change button text based on inventory without theme code customization. You’ll need to edit your Refresh theme’s product template to add conditional logic. In Online StoreThemesEdit code, locate your product form template (usually product-form.liquid or main-product.liquid).

Alternatively, an app like K1 PreOrder (I’m the founder) automates this—replacing the button with customizable “Backorder” text and displaying your shipping message when inventory hits zero. No code needed, works with Refresh. K1 PreOrder listing if relevant.
Happy to help with theme customization if needed.

Best regards,
Yauheni