tayl1684 Posted February 3, 2004 Share Posted February 3, 2004 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 More sharing options...
Guest Posted February 3, 2004 Share Posted February 3, 2004 The calculation is done in /includes/classes/shipping.php and it's the line that uses the 'ceil' function to round up to the nearest integer. See http://uk.php.net/ceil Regards G Link to comment Share on other sites More sharing options...
tayl1684 Posted February 3, 2004 Author Share Posted February 3, 2004 Thanks Jag, Works a treat. Really appreciate your help mate. You've saved me many more hours of head scratching. Ian Link to comment Share on other sites More sharing options...
martyjoe Posted July 14, 2004 Share Posted July 14, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.