Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to stop weight rounding up?


tayl1684

Recommended Posts

Hi all,

 

Hope you can help me with this problem I have trawled the forums and google to no avial. Am new to all this but was getting on ok until I hit this porblem.

 

I have installed the zone rates module, added appropriate zones etc and its all working fine. Except I need to be more accurate with the shipping table than a whole number (kg) (we ship Meccano which is very heavy) and also cant really use grams because it hits the 255 character limit before we have enough weight bands.

 

eg at the moment we have to use the system

1:1.50,2:2.50,5:5.50 etc

And would like to be able to use

0.25:0.50,0.5:1.00,1.5:2.00 etc

 

looking at /catalog/includes/modules/shipping/Zones.php it says

 

"It appears that the osC shipping system automatically rounds the

shipping weight up to the nearest whole unit. This makes it more

difficult to design precise shipping tables. If you want to, you

can hack the shipping.php file to get rid of the rounding."

 

Have looked at shipping.php and cant find / am to stupid to find any reference.

 

Any help would be very very appreciated cos this is starting to do my head in.

 

Thanks in advance.

 

Ian

Link to comment
Share on other sites

  • 5 months later...

What line is the ceil function?

 

how do i comment it out?

 

i can't seem to find that line on shipping.php in (top)/includes/classes/shipping.php

 

anyone? :huh:

marty hafner

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...