Personalized checkout and custom promotions with Shopify Scripts
<html>
<head>
<script type = "text/JavaScript">
<!--
function AutoRefresh( t ) {
setTimeout("location.reload(true);", t);
}
//-->
</script>
</head>
<body onload = "Javascript:AutoRefresh(5000);">
<p>This page will refresh every 5 seconds.</p>
</body>
</html>
What's the purpose of doing an auto-reload of the page when another variant is selected?
Also, this forum is for questions related to Shopify Scripts (part of Shopify Plus). You might get better responses if you post it in Shopify Design.
my purpose for that, because Compare at price ( old price ) does not change when changing variant, it's change until i refresh the page
A theme should implement in-place updates of price, images, etc. when the variant changes, see the docs here: https://shopify.dev/themes/product-merchandising/variants#variant-selection
not solved my problem yet 😞
What theme are you using?
Yeah, thought as much. ThemeForest themes are often crap. If it's not implementing the methods to update product info on variant change there's probably more that's iffy about the theme. I would seriously recommend ditching it and going with one from the Theme Store or, if you're strapped for cash, go with Dawn or one of the legacy free themes like Debut, Brooklyn, etc.
thanks for your advice !
<html>
<head>
<script type = "text/JavaScript">
<!--
function AutoRefresh( t ) {
setTimeout("location.reload(true);", t);
}
//-->
</script>
</head>
<body onload = "Javascript:AutoRefresh(5000);">
<p>This page will refresh every 5 seconds.</p>
</body>
</html>
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024