Addition of two variables

sachinr1013
New Member
2 0 0

I am new to shopify and liquid language. I want to substract two variable and show the result. I have {{ product.compare_at_price }} and {{ product.price }} variables. what will be the expression. I tried {{  product.compare_at_price | minus: product.price }}  but not worked 

0 Likes
Jivan_Suhagiya
Shopify Partner
486 64 102

Hi,
that is the correct syntax, but make sure that 'product' object is accessible.
can you please clarify where you're using? in which file? 

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
0 Likes