Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    customer issue Unusual shipping scenario.

    I have a customer who will be
    shipping items by weight and if over 150lbs it will be shipped via freight rather then UPS. The problem is that the fright shipping is measured by total weight and not by weight of each box.

    I've gone into configuration -> shipping/packaging and changed the max box weight, but this effects both the table and ups rates.


    effectively I need a table rate solution that does not charge per box but on the total weight of the shipment. Will I need to hack the tablerate.php and create my own shipping module/class or is there a better way?

    With the way that the table rate says it will calculate is that it is based on total weight but seems to be based on max box weight * number of boxes. Is this how it's supposed to calculate?

  2. #2
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    Default Re: Unusual shipping scenario.

    I've been looking into this further, it seems that the configuration -> shipping/payment max box weight is overriding the weight of the order in such a way that the Estimate Shipping Costs says that the weight is only of the max box weight rather then the weight of the entire order. This prevents the shipping modules from getting the weight of the entire order to base it's calculation ( at least appears this way) I don't know if this should be classified as an issue with the shipping module(s) or with the shipping class.


    *looks around from Linda*

  3. #3
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    Default Re: Unusual shipping scenario.

    fixed it with this hack, ONLY recommended to get table rates to work on weight of TOTAL ORDER and not on weight of each box. There really needs to be setup to choose weight of total order vs weight of individual boxes.

    in /includes/modules/shipping/table.php
    line 90 change from
    Code:
    global $order, $shipping_weight, $shipping_num_boxes, $total_count;
    to
    Code:
    global $order, $shipping_weight, $shipping_num_boxes, $total_count, $total_weight;

    Line 99 change from
    Code:
    $order_total = $shipping_weight;
    to
    Code:
    $order_total = $total_weight;

    Line 116 change from
    Code:
    $shipping = $shipping * $shipping_num_boxes;
    to
    Code:
    $shipping = $shipping; //* $shipping_num_boxes;
    The rates that show under estimated and check out will still say how many boxes of the max box weight there will be but will base the rate on the weight of the total order rather then on individual boxes. This also still allows the other modules to base their rate on individual boxes

 

 

Similar Threads

  1. My unique Shipping and Handling scenario
    By biglazy in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 12 Jul 2008, 05:29 AM
  2. Akward shipping scenario
    By crazycucumber in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 11 Jul 2008, 10:48 AM
  3. Unusual scenario
    By Gurnemanz in forum General Questions
    Replies: 0
    Last Post: 17 Jul 2007, 02:14 AM
  4. Curious shipping scenario
    By NomadRip in forum Addon Shipping Modules
    Replies: 4
    Last Post: 8 Apr 2007, 03:54 AM
  5. How to do this shipping scenario
    By sportscarmarket in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Nov 2006, 01:09 AM

Posting Permissions

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