RafsF
February 3, 2022, 1:55am
1
Actually I have a store running on Dawn Theme and I’m trying to capture the product price variant.
I have a feature that shows the installment price correctly, but when I select a product variant which has a lower or higher price (e.g Color of product) the price keeps the same.
Here is the code i’m using for the Installements:
{{ product.price | divided_by: 12.00 | times: 1.2375 | money }}
I read in an article that the “product.price” variable just returns the lowest price of all the product’s variants. But I want to get the price depending on the variant.
Is it possible?
@RafsF
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
1 Like
RafsF
February 8, 2022, 12:27am
3
Hi Ketan,
Here’s the product link: https://www.imaginaemcasa.com.br/products/artificial-plants-bonsai-small-tree-pot-fake-plant-flowers-potted-ornaments-for-home-room-table-decoration-hotel-garden-decor
If you select any variable (such as color) you will see that the installment price won’t change.
Note: The installment is the highlighted line:
RafsF
February 8, 2022, 12:35am
4
A better product to represent the issue is this one: https://www.imaginaemcasa.com.br/products/50-70-90-110-130cm-cute-soft-long-cat-pillow-stuffed-plush-toys-office-nap-pillow-home-comfort-cushion-decor-gift-doll-child
It has a size variant that changes the price, but not the installment value.
It’s like the variant doesn’t populate/refresh the “product.price ” variable because it’s on the client’s side. Idk.
@RafsF
i have check your variant price change but your custom code doesn’t work
RafsF
February 18, 2022, 12:11am
7
Hi Ketan,
Could you gently help me finding a solution for my need?
@RafsF
It can be done by doing some code customization. Please take the help of a developer and hire Shopify Expert or me