Tutorial created by Antonino Stancampiano, Webmaster Freelance
Categories: eCart, Dreamweaver, Javascript
eCart does not put a delete button for every product in the cart by default. This tutorial explains how to create a delete button for every product on the cart.
Dreamweaver
eCart
This tutorial assumes that you have an e-commerce site build with Ecart
Insert a submit button from dreamweaver forms tab near delete checkbox on cart and name it delete
<input type="submit" name="delete" id="delete" value="delete"/>
Insert this javascript code onclick event :
"javascript:document.getElementsByName('your_cart_name_Quantity_<?php echo $your_cart_name->DisplayIndex; ?>')[0].value=0
Note :
if you want an add button: use this code :
"javascript:document.getElementsByName('your_cart_name_Quantity_<?php echo $your_cart_name->DisplayIndex; ?>')[0].value++
if you want a decrease button : use this code :
"javascript:document.getElementsByName('your_cart_name_Quantity_<?php echo $your_cart_name->DisplayIndex; ?>')[0].value--
Select Delete Button that you have created. Go to Server Behaviour Tab on Dreamweaver and select Ecart->Cart Display->Update Cart. You've done !!!
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.
jamie424562: 11 Years, 6 Months, 1 Week, 1 Day, 1 Hour, 42 Minutes ago
thats vague man, where does the onclick event go too????
Antonino Stancampiano: 11 Years, 1 Month, 1 Week, 2 Days, 23 Hours, 8 Minutes ago
Watch the video for step by step...
marovios@yahoo.com: 5 Years, 5 Months, 1 Week, 3 Days, 5 Hours, 1 Minute ago
Thanks for taking the time of doing a video and a written tutorial on this subject. It was exactly what I was looking for. For some reason, I still cannot make it work but I know it is something on my side. I will probably start from scratch and see what happens. Mercy!