Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 42
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable table shipping after certain rate

    $shipping_weight is not available everywhere in the module ...

    $_SESSION['cart']->show_weight() is a good choice, but before the line using it, you would need to use a:
    global $cart;

    For example, in Table Rate shipping module for table.php you could use:
    Code:
    // Check for Weight and display module if weight exceeds stated value 
    if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() > 3) { 
      $this->enabled = false; 
    }
    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!

  2. #22
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: Disable table shipping after certain rate

    Hi there,

    Is it possible to hide the table rate when the cart reaches a certain value, rather than a particular weight?

    IE, i want to allow a particular table rate option up to £30, but not over that as the insurance covers only up to £30.

    Any help would be much appreciated,
    Fergus

  3. #23
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable table shipping after certain rate

    You can disable the shipping modules based on any condition in the same manner ...
    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!

  4. #24
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: Disable table shipping after certain rate

    OK great. Would you mind writing the code to disable above a particular value and let me know where to insert it.

    Many thanks.

  5. #25
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable table shipping after certain rate

    For the Table Rate table shipping module, you will see the code:
    Code:
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
        }
    Change that to read:
    Code:
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
        }
    
    // Check for Weight and display module if weight exceeds stated value
    if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_total() > 30) {
      $this->enabled = false;
    }
    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!

  6. #26
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Disable table shipping after certain rate

    Quote Originally Posted by Ajeh View Post
    post above
    Thanks Ajeh! That worked. Your remarkable.

  7. #27
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable table shipping after certain rate

    You are most welcome ... glad that this worked for you ...
    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!

  8. #28
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: Disable table shipping after certain rate

    Superb! Thank you very much indeed.

  9. #29
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable table shipping after certain rate

    Thanks for the update that this was able to help you out as well ...
    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!

  10. #30
    Join Date
    Nov 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Disable table shipping after certain rate

    where do I go to input the html language?

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Hide table rate shipping under a certain weight
    By Kcin in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 20 Jul 2020, 04:45 PM
  2. v153 How to disable table rate shipping module after certain weight
    By samuxul in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 4 Mar 2015, 04:45 AM
  3. Table Rate enable after certain shopping cart price value?
    By jmwiley in forum Code Collaboration
    Replies: 3
    Last Post: 8 Apr 2013, 04:16 PM
  4. Table Rate shipping PLUS a handling fee for certain items
    By marvin in forum Built-in Shipping and Payment Modules
    Replies: 13
    Last Post: 19 Apr 2009, 05:20 PM
  5. Disable Flat rate after weight of cart is over a certain amoun
    By brettw in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 7 Mar 2009, 08:38 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