Product Price Floor

Tourist
4 0 1

I have reward program and want to show value of loyalty points on product page. Reward program rounds points down to the nearest integer so that $15.95 purchase = 15 points. Customer can then buy coupons so that 1 point is $0.05.

 

product.price = 15.95 

 

Input:

 

{{ product.price | floor | divided_by: 20.0 | money}}

 

or 

 

{{ product.price | divided_by: 20.0 | money}}

 

Output:

 

0.80

 

Desired output:

 

0.75

 

Advice greatly received. Thanks in advance!

 

 

 

0 Likes