Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  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;

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

    Default Re: Disable table shipping after certain rate

    G'day,

    I found the first line that was already in there.... i've added like this

    $this->icon = '';
    $this->tax_class = MODULE_SHIPPING_TABLE2_TAX_CLASS;
    $this->tax_basis = MODULE_SHIPPING_TABLE2_TAX_BASIS;
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_TABLE2_STATUS == 'True') ? true : false);
    }
    if($shipping_weight > 3.0) $this->enabled = false;
    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE2_ZONE > 0) ) {
    $check_flag = false;
    $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_TABLE2_ZONE . "' and

    Uploaded but with 4kg in the basket it's still showing up as an option just with $0.00 as the cost... Have I inserted the code directly........ Thanks for your help so far....

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

    Default Re: Disable table shipping after certain rate

    I don't know why it's like that...are you using a standard Table Rate shipping file?

    If it's not customized, it should work now.

    Can you send me the file so I can have a look at it, my email is [email protected]

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

    Default Re: Disable table shipping after certain rate

    Sure thing i'll email now.

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

    Default Re: Disable table shipping after certain rate

    I actually have a similar problem, which I why I was looking at the OP. My problem is that when an international cart weighs over 2kg, my shipping module cannot find any option as my carrier does not ship over this weight as standard and I have not inserted 2kg+++ into the tariffs. So, since it cannot find an option for 2kg, it goes into a redirect loop and gives a browser error page.

    Apart from setting a cray price in the tariff pages, is there a way to sort out the redirect loop? Direct to a page that requests the customer contact us for a shipping quote?

 

 
Page 1 of 5 123 ... 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