Results 1 to 10 of 42

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Disable table shipping after certain rate

    G'Day
    I'm using Zen v1.3.8a, using a customised template.. I have a few table rates set up with different options so overnight, 2-3 days and 5-7 days. But my only problem here is that the overnight option I only want to offer to orders 3.0kg or less so as soon as it hits 3.1kg is it possible for that option to magically dissapear ??? 0.501:8.184,3.0:11.91 is my current table set up i've googled for ages and had a look through the online FAQ's and manual and come up stumps... The other dirty alternative is whacking in some ridiculous price which i don't really want to do as I want to offer the best prices to my customers.

    Cheers


    Nick
    Last edited by Kim; 9 Sep 2009 at 04:22 PM.

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Disable table shipping after certain rate

    0.501:8.184,3.0:11.91 seems correct. If an order exceeds 3.0 in weight then your overnight shipping module should not be there as an option.

    What's happening when a cart reaches 3kg++ and yuo click checkout? Is it still displaying the overnight option even though you have 3.0:11.91 set as the last option in your tariff fields?

  3. #3
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Disable table shipping after certain rate

    Hey,
    Yeah unfortunately it still shows up but as $0.00 i'm basically looking for a calculation that says >3.10 = not available if that makes sense but at the moment is it is >3.10 = $0.00 which is crap............


    Cheers

  4. #4
    Join Date
    Jul 2006
    Posts
    112
    Plugin Contributions
    1

    Default Re: Disable table shipping after certain rate

    easy job to change table rates modules. You need to add a line of codes in "includes/modules/shipping/table.php"

    if($shipping_weight > 3.0) $this->status = false;

    You can transfer the code into the zencart one...I think that helps.

  5. #5
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Disable table shipping after certain rate

    Thanks for the response... Would I just insert it like this ?

    define('MODULE_SHIPPING_TABLE2_TEXT_TITLE', 'Next Day (No Insurance - View our policy on uninsured items)');
    if($shipping_weight > 3.0) $this->status = false;
    define('MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION', 'ExpressPost');
    define('MODULE_SHIPPING_TABLE2_TEXT_WAY', 'Express Post - Next Business Day Delivery after dispatch');
    define('MODULE_SHIPPING_TABLE2_TEXT_WEIGHT', 'Weight');
    define('MODULE_SHIPPING_TABLE2_TEXT_AMOUNT', 'Amount');

    Cheers

    Nick

  6. #6
    Join Date
    Jul 2006
    Posts
    112
    Plugin Contributions
    1

    Default Re: Disable table shipping after certain rate

    oh, dear, I don't know you are not familiar with zencart working routines. The code can't be inserted like that.

    Please find the codes below:

    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }
    after it, insert line below:

    if($shipping_weight > 3.0) $this->enabled = false;

 

 

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