shopify-foundation-theme
shopify-foundation-theme copied to clipboard
Page refreshes when you select a variant.
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
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.
Are there any plans to refactor this?