Adding per unit prices to Collection page / Product grid

New Member
4 0 0

Hi guys,

 

due to a law on prices in germany, I have to display the product prices also on a per unit (kg, liter, etc) basis. I have solved this problem on each product page by using metafields. Now I also have to show the per unit prices on the collection page / product grid. I have tried to create metafields in the collection.liquid, but it doesn't work. 

 

How can I make it work?

 

Thank you very much for your help in advance!!!

0 Likes
Shopify Partner
1517 267 323

Send me your store url so i can check

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
0 Likes
Highlighted
New Member
4 0 0

www.wholeshop.de

 

PW: chaugg

0 Likes
Shopify Partner
1517 267 323

If you have already coded for product page then you can also get and show product metafield on collection page by collection object. 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
0 Likes
New Member
4 0 0

Yes but on collection.liquid the metafield doesn't show up.

 

 

Putting for example 

 

{%if product.metafields.global.price %}

{{ product.metafields.global.price }}

{% endif %}

 

under the code for the normal price, doesn't let the second price show up

0 Likes
New Member
17 0 0

Hey Alex!

I have the same problem as i am from Germany. Can you please tell me how you solved the problem? I've just checked your website and saw you could solve the problem. I need help for my product prices and also collection sites. Thank you very much!

0 Likes
New Member
1 0 0

Hi there! We are facing the exact same problem. Did you help Alex with his issue and is there a way you can help us, too?

With kind rgerds, 

Nana

0 Likes