shopify-foundation-theme icon indicating copy to clipboard operation
shopify-foundation-theme copied to clipboard

Page refreshes when you select a variant.

Open ineptian opened this issue 2 years ago • 2 comments

Operating system

Windows 10

Node.js version

16.9.1

Shopify CLI version

2.1.0

Browsers

Chrome

Version

4 (Current)

Modifications

No response

Details

Got everything installed and working properly as far as I can tell. On a product page, when you select a variant, the entire page refreshes. Is there any way to prevent that? On mobile it's especially jarring because it reloads at the top of the page.

Notice

  • [X] I read the notice

ineptian avatar Dec 07 '21 21:12 ineptian

It's currently working as intended, this was a quick solution, but it needs a refactor. Ideally, you want to send an async request on variant change and replace the displayed values with the response from Shopify's Product API.

sergejcodes avatar Dec 12 '21 22:12 sergejcodes

Are there any plans to refactor this?

Maybach91 avatar Mar 16 '22 10:03 Maybach91