Custom Div Based on a Specific Price?

New Member
1 0 0

I am using ReCharge 2.0. I'd like to add a custom div only to my subscription variant product on my cart page.

I have one product and it has a subscription variant. The one-time order option and the subscription variant have two different prices. The best way I thought to do this would be to target the price for the subscription product which is $27.95.

How would I do this?

I tried:

{% if line_item.price == '29.95' %}

but it did not work. What is the code to target the price properly?