- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 01:45 AM
I need to clear all the catalog item variable values once the user clicked on addtocart. so that the item would be added to cart. next time if the user clicks addtocart button by mistake. mandatory field check error will get displayed since we are clearing the values.
Please let me know any feasibility on this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 05:56 AM
function onLoad() {
document.getElementById('add_to_cart_button').addEventListener("click", function(){
reloadWindow(window);
});
}
this code is working fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2020 12:03 AM
Hello - this might be a silly question, but where exactly did you put this script, please? I need the same solution, but I don't know where to put the script.
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2021 03:06 PM
Hi Jonny27,
Did you ever get the answer to your question about where to put this script? I have tried in a client script but it's not working unless I'm not doing it correctly.
Thanks
Rachel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2021 06:14 PM
Morning Rachel.
I'm afraid not - I'm none the wiser! If you find out, could you let me know, please?
Many thanks