Shopping Cart Woes

by Sandy Fields <sandy(at)sannicron.com>

 Date:  Sat, 25 Nov 2000 16:19:14 -0500
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
Hello there!  I've been subscribed to hwg-basics for a long time, but only 
subscribed to hwg-languages today.

I have a shopping cart problem. When clicking on the "empty shopping cart" 
button from the actual shopping cart page, it works perfectly in IE, but 
not in Netscape.  Hopefully you can help me.

The alert box comes up and tells the customer that the shopping cart is 
empty, and then it takes the browser to the "ordering.htm" page.  But if 
the customer then continues shopping and clicks on any page to view the 
shopping cart again, the old items are still in the cart.  It hasn't really 
emptied.

function FrmShopCart_Empty(){
if (confirm("Are you sure ? \nTHIS WILL REMOVE ALL ITEMS FROM THE CART!!!")){
ShCart.desc=null;
ShCart.amount=null;
ShCart.qty=null;
ShCart.remove();
alert("Shopping cart is empty");
location.replace('ordering.htm');
}
}
//End function FrmShopCart_Empty()

~~~~~~~~~~~~~~~~~
Thanks!

Sandy
Sannicron Web Design
http://www.sannicron.com
sandy(at)sannicron.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA