Results 1 to 10 of 12

Threaded View

  1. #11
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: Table Rate Question

    Quote Originally Posted by Ajeh View Post
    You would need to customize both the UPS and Table Rate shipping modules to check the weight and enable or disable them based on weight ...

    For example, the Table Rate table shipping module:
    /includes/modules/shipping/table.php

    Code:
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
        }
    
    // do NOT show if weight is > 5.00
          if (!IS_ADMIN_FLAG) {
            global $cart;
            if ($_SESSION['cart']->show_weight() > 5.00) {
              $this->enabled = false;
            }
          }
    
        if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE_ZONE > 0) ) {
    Then reverse the logic for the UPS shipping module:
    /includes/modules/shipping/ups.php
    Hi. Do you know how I would do this for the zones module? I tried putting the code in red under "
    Code:
       if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
        }
    " in the file and it's giving a blank page.
    Last edited by timdwyer42; 3 Dec 2009 at 08:37 PM.

 

 

Similar Threads

  1. Table rate question
    By sabrina_IT in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 26 Jul 2010, 03:43 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