Variant picker won't update the price + won't let add to cart

Topic summary

A user encountered issues with variant pickers on their Dawn theme store where selecting certain color/size combinations (specifically “Kronos” with different sizes) failed to update prices and prevented adding items to cart. The problem appeared to affect whichever variant was selected first upon page load.

Key troubleshooting steps attempted:

  • Checking variant configuration settings
  • Deleting and recreating problematic variants
  • Updating the Dawn theme

Resolution:
The issue was resolved by clearing browser cookies after the theme update. The user had forgotten this step, which prevented the update from taking effect properly.

Additional solutions shared:

  • One commenter suggested modifying the playActiveMedia(activeItem) function code
  • Another user reported success by setting a base price in the product’s price field before adding variants, rather than entering prices directly into variant fields

The discussion includes a console error screenshot and demonstration video showing the malfunction on the live store.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hello :waving_hand: I’ve got a problem with a variant picker in my store. When I try to select one variant, for ex. Kronos (the first color variant) and A, B, or C size (price is different for every size), the price won’t update, but it works fine with other colors, for ex. Monolith + B size.
If we reload the page with the color Monolith selected, then size variants won’t work with Monolith (price won’t change).

Any ideas on how to fix it? :disappointed_face:

Dawn theme

In the console I see an error:

Video with demonstration: https://www.dropbox.com/scl/fi/d1csf41kipi8291e2svv4/unknown_2024.03.15-11.49.mp4?rlkey=y0eben2n3dcy8fbpyc2t2d4x0&dl=0

Store website: www.bildabaldai.lt (I recommend to check the error here https://bildabaldai.lt/products/minksta-lova-dove/ )

Hey @NorbertasStre ,

Somehow it’s only the “Kronos” Variant that’s having this problem. When you select others, “Monolith”, etc.. It seems to work fine. Can you check if there’s anything you misconfigured in the Kronos Variant?

Hi!

It seems that everything is okay with the variant settings..

Seems weird. Can you delete that variant and add again from scratch?

I can only ask you to try these things because I don’t have access to your store

I’ve tried doing it before, but I’ve done it rn, and nothing has changed..

The problem is that if You enter the product page for the first time, it will not let you add to the cart (also, the price will not change) the first variant. If you select another variant and reload the page, then it won’t be available for purchase etc., so I think that there is a problem with the code :disappointed_face:

I don’t know of anyone else who has this problem in the dawn theme. Unless you changed the code, this shouldn’t be a code issue because everyone using Dawn would have this problem.

Can you update the Theme?

I have tried to do it, but nothing has changed :disappointed_face:

But it’s working now for me

I’ve forgot to delete the cookies after update. Thank you! I feel so bad rn.. :joy:

Hi. Find

"
playActiveMedia(activeItem)
"

and paste here full version:

"
playActiveMedia(activeItem) {
window.pauseAllMedia();
const deferredMedia = activeItem.querySelector(‘.deferred-media’);
if (deferredMedia) deferredMedia.loadContent(false);
}
"

For future people seeing this! I went into the products that were the issue. Deleted the variants. Put a price in the price box and THEN added the variants. I thought I was saving time by putting the variants prices straight in but for some reason it wants me to put a price before add variants.