Add to Cart Not Working After Selecting Variant on Entire Website

Topic summary

Issue: “Add to Cart” stops working after selecting a product variant (e.g., size/color) across the entire Shopify site.

Context:

  • Not caused by out‑of‑stock items or app conflicts, per OP.
  • Site code was previously modified to add custom swatches (visual option selectors) and to make the Add to Cart button redirect directly to Checkout.
  • Problem appears only after a variant is chosen, suggesting a theme/JS conflict with variant selection logic.

Evidence:

  • Screenshots attached; no code snippet provided. Images indicate the behavior but aren’t sufficient to diagnose without site access.

Requests/Questions:

  • A responder asked for the website URL to inspect.
  • They also asked whether rolling back the recent code changes has been tried.

Suggested next steps (from discussion):

  • Share the store URL.
  • Roll back or disable the custom swatch and direct‑to‑checkout modifications to test if functionality returns.

Status:

  • Unresolved/ongoing. Root cause not yet identified; action items are to provide the URL and attempt a rollback to isolate the issue.
Summarized with AI on December 14. AI used: gpt-5.

Hi @HnP_Solutions , can you share your website URL? Have you tried rolling back your code changes?