I am currently redesigning a website using the Dawn theme.
On the product page under the section ‘buy buttons’ there is a section saying, “usually ready in days”. I need to remove this before the page goes live as some of my products are made to order which this could make it misleading for customers. I have read another thread surrounding this, however that wasn’t seeming to work for my website.
Thanks in advanced.
-
In the code editor, locate the file that controls the product page. It is typically named product-template.liquid or similar.
-
Look for the code that generates the “usually ready in days” section. It might look similar to the following:
{{ 'products.product.ready_in_days' | t: days: product.metafields.your_namespace.your_key }}
- Remove the entire code block or comment it out to disable it. For example, you can modify it like this:
{% comment %}
{{ 'products.product.ready_in_days' | t: days: product.metafields.your_namespace.your_key }}
{% endcomment %}
I found the solution that fixed this on my website after a bit of playing around!
-
Go to Code Settings
-
Under ‘Sections’, select main-product.liquid
-
Scroll down until to you see {%- render ‘buy-buttons’, block: block, product: product, product_form_id: product_form_id, section_id: section.id, show_pickup_availability: true -%}
-
Delete ‘section.id, show_pickup_availability:’
-
Save and preview your site
1 Like
Tutorial is good but why delete when you can write: false?
-
Go to Code Settings
-
Under ‘Sections’, select main-product.liquid
-
Scroll down until to you see {%- render ‘buy-buttons’, block: block, product: product, product_form_id: product_form_id, section_id: section.id, show_pickup_availability: true -%}
-
Delete ‘show_pickup_availability: false’
-
Save and preview your site
1 Like
Yep! The “solution” here creates a bug for me in Dawn 15 where variants are shown as “Sold Out” until you refresh the page. Your solution does not create this bug it seems.