Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I want to add this meta field under product card with "Retail price". Like "Retail price: $120"
How can I do this?
I'm using Dawn theme.
Solved! Go to the solution
This is an accepted solution.
Hi @xeliporit12 ,
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file card-product.liquid.
Step 3. Find this code <div class=”card-information” >…</div>
And add this code before the </div> close tag
<div class="rrp"> Retail price: {{ card_product.metafields.custom.rrp }} </div>
Result:
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is an accepted solution.
@xeliporit12 , change the code like this
{% if card_product.metafields.custom.rrp %}
<div class="rrp"> Retail price: {{ card_product.metafields.custom.rrp }}</div>
{% endif %}
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @xeliporit12 ,
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file card-product.liquid.
Step 3. Find this code <div class=”card-information” >…</div>
And add this code before the </div> close tag
<div class="rrp"> Retail price: {{ card_product.metafields.custom.rrp }} </div>
Result:
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thanks it worked but I just want to show it if it has value, some product i don't add this metafield. Like the last product
This is an accepted solution.
@xeliporit12 , change the code like this
{% if card_product.metafields.custom.rrp %}
<div class="rrp"> Retail price: {{ card_product.metafields.custom.rrp }}</div>
{% endif %}
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
You're amazing! Thank you so much
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024