All things Shopify and commerce
Hello!
I have a problem with my refresh theme (version 15.0.1).
When i switch variant for my product, page scrolls up automatically. This is very annoying, especially when using ''sticky add to cart'' button. Can someone help me with this?
Hi! The issue you're experiencing is likely due to a JavaScript conflict in the theme. You can fix this by updating the theme's JavaScript to prevent the page from scrolling when switching variants. If you're comfortable with code, you can look into the theme's theme.js file and check the variant change function.
Where is this folder located and what should i change there? Thanks in advance!
Go to Shopify Admin:
Locate the File:
Fix the Issue:
Save and Test
Thank you for also solving my problem.
I think the frontend code like javascript may be causing the issue. You need to remove extra javascript code or do some alterations in the theme. İf there is a theme update please update it.
best way is to use inspect element and then post the problem to gpt which might also give a proper answer.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025