Welcome, Guest ( Customer Panel | Login )




 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-CART New User

Australia
66 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-CART 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-CART New User

Australia
66 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
0 Item(s)
$0.00