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
Auto-Shipping Method Based On Weight

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Dec-16-17 08:11 AM EST
Original Message
Auto-Shipping Method Based On Weight
Author Alexander Thomson on 05-06-2003 at 02:16 (EST)
I would like to make the "shipping_method" form option automatically selected based on the total weight.

The reason I need to do this is that I need a weight table for orders under 100 lbs and a weight formula for orders over 100 lbs. The problem is people don't bother selecting "Over 100 lbs" on the shipping method themselves.

I know I can make a custom shipping method, but it really would be easier for me if I could do this in javascript.

So I was wondering, does the uShopJSI have any method that returns the total weight in the shopping cart?
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Auto-Shipping Method Based On Weight Bill Weiner, 2003-05-07 07:15:42 (1)

Messages In This Discussion
         1. RE: Auto-Shipping Method Based On Weight
        Author Bill Weiner on 05-07-2003 at 07:15 (EST)
That is good thinking.... and actually, I believe the uShopJSI applet does have a method to get the total weight of the items in the shopping cart. Try:

document.uShopJSI.getTotalWeight()

... and it will return a floating point value corresponding to the total weight of the items in the shopping cart.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.