# Product price displaying wrong price in one instance

**URL:** <https://forum.builder.io/t/product-price-displaying-wrong-price-in-one-instance/1667>\
**Category:** Visual Editor Help\
**Tags:** shopify\
**Created:** [February 2, 2022, 12:25am UTC](https://forum.builder.io/t/product-price-displaying-wrong-price-in-one-instance/1667 "2022-02-02T00:25:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashinn](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@ashinn](https://forum.builder.io/u/ashinn)\
**Post date:** [February 2, 2022, 12:25am UTC](https://forum.builder.io/t/product-price-displaying-wrong-price-in-one-instance/1667/1 "2022-02-02T00:25:42Z")

</div>

Hi folks,  
I have a subscription product page with three different durations, 3, 6, and 9 months. One of them is showing the wrong price now.

Each duration is a separate Shopify product.  
Each duration has a sale price and a ‘compare at’ price.  
Everything was working fine until I repriced this product today and this issue popped up.

Builder is only displaying the ‘compare at’ price for the 3 month product. It should be $155 / $99, similar to the other two.

See below:

 ![Screen Shot 2022-02-01 at 4.20.58 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/9/9a005fbb2ced2a060c752722cdfe07cacacf6a18.jpeg)

This is a big issue for me as it’s misrepresenting the price of the product.  
I’ve tried duplicating the Product Price layer from the other columns, but the issue persists. Any ideas as to how I can take care of this bug?

Thank you!

**Builder content link**

> **[Builder.io: Drag and drop page builder and CMS](https://builder.io/content/f62ed0cd62964d5787ef6bcb48c93147)**
>
> Build and optimize digital experiences for any tech stack, visually.

**Builder public api key**  
a85597503ff147029c3ef992cac7078b

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [February 2, 2022, 12:44am UTC](https://forum.builder.io/t/product-price-displaying-wrong-price-in-one-instance/1667/2 "2022-02-02T00:44:43Z")

</div>

@ashinn For some reason that product box was comparing the price as strings, as opposed to as numbers. Is it possible you input the prices differently for the different products? Maybe copy+pasting vs just manually inputting? Perhaps there are some extra empty spaces in the input that coerced it into a string and not a number? I am not exactly sure why only that one product would have that issue…

But I was able to wrap the values in parseInt in the data binding so that it could compare the prices correctly, and that caused the correct prices to show up. Check it out and let me know if that works for you!

 ![Screen Shot 2022-02-01 at 6.44.16 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/e3e86924de87144479a143e49e964e594e15635e.png)

---

<div class="post-metadata">

**Author:** ![ashinn](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@ashinn](https://forum.builder.io/u/ashinn)\
**Post date:** [February 2, 2022, 7:28pm UTC](https://forum.builder.io/t/product-price-displaying-wrong-price-in-one-instance/1667/3 "2022-02-02T19:28:46Z")

</div>

Awesome! Thank you so much for your help @TimG!
