osCmax v2.5 User Manual
Results 1 to 7 of 7

EMS Shipping covering all weights

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 ...

      
  1. #1
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default EMS Shipping covering all weights

    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
    Hosting plans with installation, configuration, contributions, support and maintenance.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: EMS Shipping covering all weights

    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: EMS Shipping covering all weights

    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
    Hosting plans with installation, configuration, contributions, support and maintenance.

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: EMS Shipping covering all weights

    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 A semi-educated guess suggests that 640 characters should be sufficient to hold the EMS table but I'll update this post if more is needed (for the benefit of others).

    EJ
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: EMS Shipping covering all weights

    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 However, now the product weight maxes out at 999.99 - great! It's a shame the shipping zone doesn't see those two decimal places, and so, the saga continues...
    Hosting plans with installation, configuration, contributions, support and maintenance.

  6. #6
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: EMS Shipping covering all weights

    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....
    Hosting plans with installation, configuration, contributions, support and maintenance.

  7. #7
    New Member
    Join Date
    Jun 2005
    Posts
    9
    Rep Power
    0


    Default Re: EMS Shipping covering all weights

    Hi - Just had the same problem - we sell a range of items from 10gms to 100kgs. The weight is in gms on the site, so 100kgs = 100000gms, BUT oscmax changes this to 999.99. Only found this when a customer order a heavy item we had just put on and instead of £39.99 shipping it was £2.99! I have solved this by going into the SQL database, looking in products table and changing products_weight form decimal(5,2) to decimal(7,0). Hope this helps - and please back up the database first just incase!

Similar Threads

  1. Confused and really need help with weights
    By chrisbarbers in forum Zone Rates
    Replies: 0
    Last Post: 09-10-2007, 03:44 AM
  2. CttExpresso Internacional (EMS)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-05-2007, 10:13 AM
  3. Common Carrier Shipping - Multiple Zones and Weights
    By winerack in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 06-29-2007, 03:47 AM
  4. Shipping weights
    By KindsvaterFlat in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-08-2005, 04:09 PM
  5. USPS shipping weights
    By pahalik in forum osCMax v1.7 General Mods Discussion
    Replies: 4
    Last Post: 01-07-2005, 12:39 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •