www.uburst.com www.uburst.com

"Auto-Shipping Method Based On Weight"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Auto-Shipping Method Based On Weight"
Posted by Alexander Thomson on May-06-03 at 02:16 AM (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?

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Auto-Shipping Method Based On W..., Bill Weiner, May-07-03, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Auto-Shipping Method Based On Weight"
Posted by Bill Weiner on May-07-03 at 07:15 AM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.