VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Add-ons for VP-ASP
 Fedex weight rounding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gledav
VP-ASP New User

Australia
63 Posts

Posted - March 27 2008 :  17:19:26  Show Profile  Visit gledav's Homepage  Reply with Quote
I would like to round the total weight displayed in the cart to 2 decimal places. Can anyone help?

Kidd
VP-ASP Super User

Australia
373 Posts

Posted - March 27 2008 :  17:31:28  Show Profile  Reply with Quote
not sure where the code for weight is, but this is the function you can use to round up

http://www.w3schools.com/vbscript/func_round.asp
Go to Top of Page

gledav
VP-ASP New User

Australia
63 Posts

Posted - March 27 2008 :  18:09:44  Show Profile  Visit gledav's Homepage  Reply with Quote
Hi Kidd. Thanks for your reply.

I've tried this code in a few likely places to no avail. The problem may be sorted somewhere else I hope. If a customer selects 10 products each weighing 1.4 kgs the cart returns a total weight of 13.9999997615814 kgs. Obviously I would like it to return 14 kgs. Is there anyway of dealing with this in admin that you know about? I'm using the Fedex db lookup add-on.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000