Debut Theme: "Compare at price" not working properly on multiple variants

Solved
Martas
Tourist
4 0 1

Hi, I have a problem where when I select a different variant, the "compare at price" gets stuck on the first selected variant, and the price doesn't change when I click on another variant with a different price, I've tried searching the forums for an answer but I couldn't get it fixed with any of the solutions I tried. You can see the problem in the video that I attached, the "compare at price" should change when clicking on another option, but it doesn't as seen in the video: https://youtu.be/nm8E5g3gRi8 

ece96fb79713886bcbba3ce4cd981cab.png

 <-- should be 75, but it doesn't change, only when I restart the page

 

0 Likes
Leysam
Shopify Partner
24 1 14

The solution needs to be coded in your theme, altho there's some app that does this for you, I would prefer to use a native solution and add a code that will fix this.

Can you tell us what theme are you using?

 

Thanks,

Leysam

 

Leysam | The Shopify Guy  

 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Email me at edwardwindtalker@gmail.com or add me on Skype: samypogs
Martas
Tourist
4 0 1
  • Hi, Leysam, thanks for reaching out. The theme I'm using is called "Debut"
0 Likes
zarax
Tourist
3 1 3

Hey, did you get this fixed? If yes then could you tell me how please?

0 Likes
Martas
Tourist
4 0 1

I've never got an answer back from anyone, so no, I still haven't fixed it:/

0 Likes
zarax
Tourist
3 1 3

This is an accepted solution.

I fixed it by

1. Making a new debut theme to get the original code.

2. opend my own debut code and the new one I just made

3. I went to the new debut code  "theme.js" and copyed everying from inside

4. and pasted it to my own debut "theme.js" file. 

That fixed it for me and i dont really see any other errors.

Martas
Tourist
4 0 1

Wow, that worked, thank you!

decorsmarketcom
Tourist
6 0 0

Can you share the whole theme.js file? I have the same problem, but since if the solution is changing the JS, I think people will just need that file.

0 Likes
zarax
Tourist
3 1 3

Hey, You can just make a new debut theme yourself and get the "theme.js" code from there  

Ernis
New Member
1 0 0

I have the same problem. The theme.js code replacement trick didn't work for me in Debut theme. Incredible, how could it work, if the codes are completely the same.

Has anybody idea, how to fix the problem in other way?

I treat it like some kind of missunderstanding from Shopify developers if they leave it like default problem. If product has multiple variants, (for example - engine oil in different capacities) so that is the probability the variants are the same Original Price?

0 Likes