Shopify themes, liquid, logos, and UX
Hey! How can I edit the product page's ADD_TO_CART Button. I want it to simply display the price of the respective product (just like how it does on my home page) Thanks!
https://www.colomojofindz.com/products/warm-light-saturn-nebula-moon-bedside-nightlight-luminous-cry...
Solved! Go to the solution
This is an accepted solution.
You would want to do this via code:
1. Create e duplicate of your theme
2. In the duplicate, click the three dots -> Edit Code
3. In the code editor, search for the file (top left) "buy-buttons.liquid" (click it)
4. In the file, search for "products.product.add_to_cart" should be around line 92 (depending on theme version)
4. Replace the entire line with:
{{ 'products.product.add_to_cart' | t }} {{ product.selected_or_first_available_variant.price | money }}
It will look like this
Let me know if this was helpful.
This is an accepted solution.
You would want to do this via code:
1. Create e duplicate of your theme
2. In the duplicate, click the three dots -> Edit Code
3. In the code editor, search for the file (top left) "buy-buttons.liquid" (click it)
4. In the file, search for "products.product.add_to_cart" should be around line 92 (depending on theme version)
4. Replace the entire line with:
{{ 'products.product.add_to_cart' | t }} {{ product.selected_or_first_available_variant.price | money }}
It will look like this
Let me know if this was helpful.
thank you so much!
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024