I have found that some people will go completely through an order process and pay shipping for an empty cart. This happens on occassions. Is there a way to block, not letting the customers go through to checkout if the cart is empty?
var itemCount = document.uShopJSI.getTotalQuantity();
if (itemCount == 0)
alert("Your shopping cart is empty.");
< /SCRIPT >
You can put that script pretty much anywhere on the page (it won't be visible).
For example, if your "BODY" line of your HTML page is:
< BODY BGCOLOR="#FFFFFF" >
Then change it to:
< BODY BGCOLOR="#FFFFFF" onLoad="checkQuantity;" >
< APPLET CODE="uShopJSI.class" CODEBASE="../classes/" NAME="uShopJSI" WIDTH="2" HEIGHT="2" >
< /APPLET >
Or the uShop Programmer's Guide:
Thanks, I edited the template, which seems to be the best file for this mod.
Works great, should be a standard.
Thanks again, great support,