Variant is not updated when customers select any other variant.

Topic summary

A newly developed Shopify theme has a critical variant selection bug where:

The Problem:

  • Customers cannot select different product variants
  • The “Add to Cart” function always defaults to the smallest/first variant regardless of customer selection
  • The system is not capturing the proper variant ID when customers change their selection

Root Cause Identified:

  • The variant ID is not being updated dynamically
  • The first variant ID is always being sent to the cart instead of the selected one

Proposed Solution:

  • Implement proper variant ID tracking using jQuery, Ajax, and Liquid coding
  • Ensure the specific variant ID is sent to the cart when customers change their selection

Status: The issue remains unresolved, with the original poster seeking specific implementation guidance on how to fix the variant ID tracking.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hi All,

In our newly developed theme, customers are not able to select the new variants and add to cart always takes the smallest variant. How do we resolve this?

This is the preview link:

https://m00gn6wqgydkq8y5-61101474016.shopifypreview.com

It’s not getting the proper variant id. it is always sending the first variant id in the cart. we have to send specific variant id when changing the variants.

We understand that but how do we resolve it?

We have to send the proper variant id in the cart using jQuery, Ajax, and liquid coding.