How can I modify my product page to auto refresh only when a variant is changed?

New Member
6 0 0
i need someone to help me for my page product  do auto refresh when i click & change in a variant but not in any 5sec do automaticlly refresh.
please this is the code for auto refresh in 5sec, you can upgrate it
i put this is code in product.liquid




      <script type = "text/JavaScript">


            function AutoRefresh( t ) {

               setTimeout("location.reload(true);", t);







   <body onload = "Javascript&colon;AutoRefresh(5000);">

      <p>This page will refresh every 5 seconds.</p>




Replies 0 (0)