This is a discussion on EMS Shipping covering all weights within the Zone Rates forums, part of the Shipping Modules category; Hi, I know there have been numerous threads about shipping and weights (particularly in oscommerce) but trying to find a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I know there have been numerous threads about shipping and weights (particularly in oscommerce) but trying to find a specific answer has been elusive. Time is of the essence for me, so getting something resolved quickly will be extremely useful. EMS (Japan) has a vast range of weights/prices in their shipping rates, which are all required from 300g, all the way to 30Kg. From what I've been able to find out so far, oscommerce (and derivatives) are unable to handle weights of less than 1 unit, for example 0.3, 0.5 etc. Weights under 1 are rounded up to a value of 1. However working in grams (from 300g to 30,000g) makes the definition of the zones table too large (probably an excess of characters), filling the field. My questions is: What is the preferred/recommended option to overcome this? Should I just modify the zones database table to accommodate a larger field? Thanks upfront for any insight. EJ
__________________ Server OS: Linux 2.6.24-19-generic Database: MySQL 5.0.51a-3ubuntu5.1 HTTP Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.2 with Suhosin-Patch PHP Version: 5.2.4-2ubuntu5.2 (Zend: 2.2.0) |
|
#2
| ||||
| ||||
| Yes, that sounds like it would be the simplest method to resolve your issue. Check to see what the current field size is and then increase it accordingly.
__________________ Michael Sasek osCMax Developer
|
| The Following User Says Thank You to michael_s For This Useful Post: | ||
ridexbuilder (07-17-2008) | ||
|
#3
| |||
| |||
| Sorry, silly question (again): What table in the database are the weight values held in? There isn't one called shipping (too obvious, I guess). Have looked in zones, geo_zones and zones_to_geozones with no luck. The expression "Can't see the wood for the trees" springs to mind. EJ
__________________ Server OS: Linux 2.6.24-19-generic Database: MySQL 5.0.51a-3ubuntu5.1 HTTP Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.2 with Suhosin-Patch PHP Version: 5.2.4-2ubuntu5.2 (Zend: 2.2.0) |
|
#4
| |||
| |||
| Fortunately, with a lot of head scratching, I can now answer my own question. The shipping table values are stored at the far end of the configuration table (along with stacks of other stuff) and is currently set as varchar(255). After consulting an online SQL definition of varchar, it's possible to raise this field to a max. value well in excess of what is required EJ
__________________ Server OS: Linux 2.6.24-19-generic Database: MySQL 5.0.51a-3ubuntu5.1 HTTP Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.2 with Suhosin-Patch PHP Version: 5.2.4-2ubuntu5.2 (Zend: 2.2.0) |
|
#5
| |||
| |||
| It seems as though varchar is restricted to 255 in MySQL (unlike others) Switching the field to TEXT has resolved the field size issue and shipping weights are matched correctly to prices
__________________ Server OS: Linux 2.6.24-19-generic Database: MySQL 5.0.51a-3ubuntu5.1 HTTP Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.2 with Suhosin-Patch PHP Version: 5.2.4-2ubuntu5.2 (Zend: 2.2.0) |
|
#6
| |||
| |||
| OK I had it with this train of thought - the modification of yet more fields smacks of using a sledgehammer to crack a nut! This should be resolved MUCH easier by just removing the stupid rounding up of the weights. Trying to find a straight answer on this issue is however nigh on impossible. The zones table even suggests removing rounding in shipping.php, where there is no apparent code relating to rounding. 2 hours worth of web searching and still no further forward I can see why people become frustrated....
__________________ Server OS: Linux 2.6.24-19-generic Database: MySQL 5.0.51a-3ubuntu5.1 HTTP Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.2 with Suhosin-Patch PHP Version: 5.2.4-2ubuntu5.2 (Zend: 2.2.0) |
| Tags |
| ems shipping weights |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confused and really need help with weights | chrisbarbers | Zone Rates | 0 | 09-10-2007 03:44 AM |
| CttExpresso Internacional (EMS) | michael_s | New osCommerce Contributions | 0 | 09-05-2007 10:13 AM |
| Common Carrier Shipping - Multiple Zones and Weights | winerack | osCMax v2 Features Discussion | 2 | 06-29-2007 03:47 AM |
| Shipping weights | KindsvaterFlat | osCMax v1.7 Discussion | 0 | 02-08-2005 05:09 PM |
| USPS shipping weights | pahalik | osCMax v1.7 General Mods Discussion | 4 | 01-07-2005 01:39 PM |