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
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025