Shopify themes, liquid, logos, and UX
Hi there,
I am looking to remove the sold-out button on my Shopify store, using the narrative theme. My business is wholesale only meaning I do not want customers buying directly from my store. Alternatively, if the 'sold out' text could be changed to 'contact your local retailer' that would also work.
Please let me know if this is possible!
Regards,
Louis
Solved! Go to the solution
This is an accepted solution.
@FuxAqua, both are same. You can add the code in theme.scss.liquid. Make sure to add it at the end of the file.
Hello @FuxAqua,
Please share:
- your store URL;
- page URL with the issue you mention;
- storefront password (if your store has one).
If the store is not online yet, please follow this quick tutorial to learn how to safely and temporarily share an offline/unpublished theme URL.
Kind regards,
Diego
@FuxAqua to change the text of Sold out button, you need to navigate to Themes -> Edit code -> Locales -> en.default.json. You will see this message:
Click on theme language editor and it should take you to the Language page. In the Filter field, type 'sold'. You should see something like this:
In the Products/Product, change the text from Sold out to Contact your local retailer
@FuxAqua, to remove the Sold out button altogether, go to Themes -> Edit code -> Sections -> product-template.liquid. Find this piece of code (you can press CTRL+F) :
{% include 'product-form' %}
Add this conditional statement surrounding the above code like so:
{% if current_variant.available %}
{% include 'product-form' %}
{% endif %}
Thank you very much. Would you also be able to help me remove the 'shipping calculated at checkout' on the product page?
@FuxAqua no problem. To remove "Shipping calculated at checkout" on product page, navigate to Themes -> Edit code -> Assets -> theme.scss.css and add this code at the end of the file:
.product__policies {
display: none;
}
Hi,
While I have a theme.scss.liquid option available there is no theme.scss.css avaiable
This is an accepted solution.
@FuxAqua, both are same. You can add the code in theme.scss.liquid. Make sure to add it at the end of the file.
Perfect thank you!
User | RANK |
---|---|
73 | |
61 | |
60 | |
48 | |
44 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023