Sliding PayPal Shopping Cart Support Product Page
Answered
Is there a way to clear the cart in 1 click?
Asked 14 May 2013 01:28:21
1
has this question
14 May 2013 01:28:21 Alex Crousset posted:
In PHP or JS and i mean all items cleared in 1 shot.I tried by clearing the session and cookie with no luck.
I don't see any cookie file in the directory i did set in Sliding PayPal Shopping Cart. (/paypal)
Replies
Replied 14 May 2013 08:33:42
14 May 2013 08:33:42 Vulcho Vulev replied:
Hello Alex.
Please write the following script within your <head></head> tags:
After that create the following HTML markup for your clear button:
Regards:Vulcho.
Please write the following script within your <head></head> tags:
<script type="text/javascript"> $(function(){ $("#button").click( function() { $.dmxSlidingCart().reset() } ); }); </script>
After that create the following HTML markup for your clear button:
<div id="button"> <input name="clear" type="button" value="clear" /> </div>
Regards:Vulcho.
Replied 14 May 2013 13:56:26
14 May 2013 13:56:26 Alex Crousset replied:
THX Vulcho,
Works like a charm!
I did it in a window.onload and by hiding in CSS the erase item button i can do a database on the side that tracks accurately all items added using Ajax.
dev.millettephotosdeplantes.com
Works like a charm!
I did it in a window.onload and by hiding in CSS the erase item button i can do a database on the side that tracks accurately all items added using Ajax.
dev.millettephotosdeplantes.com
Replied 23 Oct 2015 08:02:14
23 Oct 2015 08:02:14 David Woolley replied:
This did not work for me - any suggestions?