To comply with New Zealand Law our site needs to display "+GST" (goods and services tax) to NZ customers after the price of any product on a collection or product page.
We have a great script working well except that when on a product page you change an option (variant change) the script does not update as it only runs of page load.
Can anyone advise on how to alter the script to run when variants change?
Hope you are doing well!
I came across your post and can see that you have added the script on window.onload() function.
So, the script is running only on page load. You need to add it under the variant selection code.
Hope it helps! Please feel free to reach out for any issue.
Thank you Perennial Solution,
Where I struggle learning to code and to manage this webstore is finding where the responsible code is. I can see this script (which I did not write, only inherited) needs to be added under the variant selection code but I have no idea what code is responsible for variant selection.
Your assistance is much appreciated.