Product page should keep selected variation after Add to cart

Created on 27 November 2024, 25 days ago

When a different variation is selected on the product page, the variation details and browser url will be changed using ajax. After clicking Add to cart however, the product page will return to the original variation and url. I guess this is because the form itself is not changed, and the form still refers to the original url.

I would expect the product page to stay on the selected product variation.

I hesitated categorizing this as a bug. It may be too much effort to fix this. Is this even possible using just ajax?

🐛 Bug report
Status

Active

Version

2.0

Component

Product

Created by

🇳🇱Netherlands gaele

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gaele
  • 🇮🇱Israel jsacksick

    I'd make this a feature request and not a bug... The solution I can think of would be to alter the form action to append the ?v query parameter.
    Also, feature requests should be opened against the 3.x core version.

Production build 0.71.5 2024