uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
3.15 - Credit Card Minimum Orders

Knowledge Base Lobby : uShop Support Conference : General Questions
Oct-19-17 01:39 AM EST
Original Message
3.15 - Credit Card Minimum Orders
Author Lawrence Kellie on 10-12-2000 at 21:04 (EST)
Can a minimum credit card order be set up?

Because of the charges for credit card orders, we "require" a $10 minimum. Can this be "programmed" in?

Thanks

Lawrence Kellie
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: 3.15 - Credit Card Minimum Orders Bill Weiner, 2000-10-13 05:40:24 (1)
            Minumum order ronharter, 2000-10-14 14:35:18 (2)

Messages In This Discussion
         1. RE: 3.15 - Credit Card Minimum Orders
        Author Bill Weiner on 10-13-2000 at 05:40 (EST)
No, there's not a simple way to configure a minimum order at this time, but check out my response to these posts:

http://www.uburst.com/dcforum/ushop_future/56.html
http://www.uburst.com/dcforum/ushop_tax/24.html
http://www.uburst.com/dcforum/ushop_prog_tips/45.html

... they may give you some ideas.

Or, as a forth option, you can actually write your own JavaScript function that will perform the check for you. To do that, on your "Place Order" page, try:

STEP 1: Add the "uShopJSI" applet somewhere your "Place Order" page. Usually this is done at the very bottom. See the "JavaScript Examples" in the uShop Applet Reference and/or the uShop Programmer's Guide for more information about putting hte "uShopJSI" applet on your page.

STEP 2: Upon putting the "uShopJSI" applet somewhere on your "Place Order" page, you can use the uShopJSI method "getSubtotal" to access the current subtotal. Do this using the syntax:

var subtotal = document.uShopJSI.getSubtotal();

STEP 3: Put that call to the "getSubtotal()" method in a JavaScript function such as:

function checkSubtotal()
{
if (document.uShopJSI != null)
{
var subtotal = document.uShopJSI.getSubtotal();
if (subtotal < 10.0)
{
alert("Minimum order is $10.00");
return;
}
}
}

STEP 4: Call that "getSubtotal()" function from somewhere on your "Place Order" page... perhaps via the "onLoad" in the BODY line of the page:

BODY BGCOLOR="#FFFFFF" onLoad="DisplayCartHTML();"

TABLE OF CONTENTS
                 2. Minumum order
                Author ronharter on 10-14-2000 at 14:35 (EST)
I used this on our site http://www.excess-solutions.com as we have a $25.00 minimum order.

I put it on the template_cart.html page so the Alert pops up before they go further in the checkout process.

the onLoad="DisplayCartHTML();" should be:
onLoad="checkSubtotal();"

It works well and hopefully I won't get anymore $4.00 orders.

Ron Harter
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.