d
Topic
Posts:
2
7 days ago

Individual text field under every price

Dear Community,

In Germany we have the law that you need to add liter prices to the bottle prices in online shops.

That's why I need to add an indivual text field underneath all my prices, on all pages. 

How can I do that? 

My profile theme is Icon.

Thanks :-)

 

i
Replies
Posts:
1139
6 days ago

Hi Julian,

You can do some basic math for this. In Shopify there is a Math filter: https://help.shopify.com/themes/liquid/filters/math-filters

I do not know how your store it is set up. For a product you know the price. You will need to also have the product centiliters value. This is something that could be added as a variant option.

The math is simple: product centiliters times product price divided_by 100

 

Got an interesting project or just want to say hi? mircea@typefolly.com
Posts:
2
6 days ago

Hi Mircea,

Thanks for the reply!

How can I add the result of the math underneath the price? I need an additional text box for the liter price.

And for other products that are no liquids I need to be able to leave that info away.

Log in or sign up for an account to reply.

f
Your Reply