Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  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.

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Table Rate Question

    You are asking about the Zone Rate zones shipping module but showing the Table Rate table shipping module ...

    If you just reversed that ... the code should be the same ...

    If you are getting a blank page, check if you have blank space(s) or blank line(s) after the closing php bracket ?> at the bottom of the page ...

    You can also get from the Free Software Downloads the Debug Tool to help identify the problem ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

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