Re: Add meta field product card

Solved

Add meta field product card

xeliporit12
Excursionist
12 0 2

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.

NebulaKing742_0-1723908707659.png

 

Accepted Solutions (2)

BSSCommerce-B2B
Shopify Partner
1952 560 561

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>

BSSCommerceB2B_0-1723909477617.png

And add this code before the </div> close tag

 

<div class="rrp"> Retail price: {{ card_product.metafields.custom.rrp }} </div>

 

BSSCommerceB2B_1-1723909486485.png

Result:

BSSCommerceB2B_2-1723909516066.png

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

View solution in original post

BSSCommerce-B2B
Shopify Partner
1952 560 561

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

View solution in original post

Replies 4 (4)

BSSCommerce-B2B
Shopify Partner
1952 560 561

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>

BSSCommerceB2B_0-1723909477617.png

And add this code before the </div> close tag

 

<div class="rrp"> Retail price: {{ card_product.metafields.custom.rrp }} </div>

 

BSSCommerceB2B_1-1723909486485.png

Result:

BSSCommerceB2B_2-1723909516066.png

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

xeliporit12
Excursionist
12 0 2

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

NebulaKing742_0-1723911024772.png

BSSCommerce-B2B
Shopify Partner
1952 560 561

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

xeliporit12
Excursionist
12 0 2

You're amazing! Thank you so much