Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
<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
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>
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By