Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default A question about table rate module

    Hi, friends,

    There are a function in file includes/modules/shipping/table.php,

    Code:
      function quote($method = '') {
        global $order, $shipping_weight, $shipping_num_boxes, $total_count;
    
        // shipping adjustment
        switch (MODULE_SHIPPING_TABLE_MODE) {
          case ('price'):
            $order_total = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
            break;
          case ('weight'):
            $order_total = $shipping_weight;
            break;
          case ('item'):
            $order_total = $total_count - $_SESSION['cart']->free_shipping_items();
            break;
        }
    .............
    .............
    
      }
    I want to know which code will assign the value of$shipping_weight?

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: A question about table rate module

    What do you want the module to DO?

    Let us know why you want to make changes - what result you are trying to achieve. There may be an easier solution than editing code.

  3. #3
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: A question about table rate module

    Quote Originally Posted by fairestcape View Post
    What do you want the module to DO?

    Let us know why you want to make changes - what result you are trying to achieve. There may be an easier solution than editing code.
    I want to add a volumetric weight attribute for DHL shipping,
    my solution is add a variable named $shipping_weight2 in all the code where $shipping_weight was used.
    Can you tell me the location that the value of global variable $shipping_weight was set ?

 

 

Similar Threads

  1. Question about creating multiple copies of the Zone Rate Module
    By Lockerroom in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 3 Feb 2010, 07:41 PM
  2. Table rate question
    By verybyte in forum Addon Shipping Modules
    Replies: 3
    Last Post: 12 Dec 2006, 06:25 PM
  3. Table Rate question
    By covone in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 26 Sep 2006, 05:31 PM

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