Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11
  1. #11
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Re: Hide table rate shipping under a certain weight

    Quote Originally Posted by swguy View Post
    This is how these modules work. If your configuration is (say)

    3.7:10

    Then it will charge $10 for up to 3.7 pounds, and then 0 after that.
    I didn't say it wasn't working as it's supposed to, I said that it shouldn't. Not because I can't ship on that table more that certain weight, should mean that over that limit will be free shipping, because that should be controlled by the free shipping options module. That's why you see other people coming to this code to edit the functionality.

    If you want it to not be valid after that, you have to add logic, like what Ajeh suggested.

    // final check for display of Table Options
    if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() > 3.7) {
    $this->enabled = false;
    } else {
    $this->enabled = true;
    }
    Yes, and I tried it again with your code after the mentioned line and nothing. (check screenshots)
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	screenshot-sacoleira.net-2020.07.20-11_26_57.png 
Views:	27 
Size:	6.6 KB 
ID:	19098   Click image for larger version. 

Name:	screenshot-sacoleira.net-2020.07.20-11_44.png 
Views:	23 
Size:	34.5 KB 
ID:	19100   Click image for larger version. 

Name:	screenshot-sacoleira.net-2020.07.20-11_39.png 
Views:	19 
Size:	28.5 KB 
ID:	19099  

    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. 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
  2. v151 Offering Free Shipping over a certain amount and under a certain weight
    By jimmie in forum Addon Shipping Modules
    Replies: 0
    Last Post: 17 Aug 2013, 10:58 PM
  3. Table Rate - weight certain items no ship method
    By kellan4459 in forum Built-in Shipping and Payment Modules
    Replies: 21
    Last Post: 31 Jul 2009, 06:26 AM
  4. How to Offer Free SHipping over a Certain $$ AND Under Certain Weight
    By Jeff_Mash in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 31 Aug 2007, 06:00 PM
  5. Hide shipping method if order is over a certain weight?
    By Danielle in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Jul 2007, 06:24 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR