Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Zone Rates: maximum shipping weight exceeded

    Thanks Ajeh

    Quote Originally Posted by Ajeh View Post
    Do you have a Zone setup for the:
    Registered Air Mail for international orders only
    Yes, this method is skipped for domestic orders (Skip Countries =AU)

    If so, you could test for the weight of the order and if over the 2, then turn off the module ...
    I am having a mental blank - sorry: Which file needs to be modified?

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

    Default Re: Zone Rates: maximum shipping weight exceeded

    Edit that file and add the code in RED:
    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
          }
    
          global $shipping_weight;
          if ($shipping_weight > 2) {
            $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!

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Zone Rates: maximum shipping weight exceeded

    Quote Originally Posted by Ajeh View Post
    Edit that file and add the code in RED:
    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
          }
    
          global $shipping_weight;
          if ($shipping_weight > 2) {
            $this->enabled = false;
          }
    
    Thanks - did that and the method is disabled on the shopping cart page.

    Also tested this in another browser with clean cache - same result.

    BUT ... it still still shows up on checkout_shipping page with radio button selected and rate =$0.00

    Tested this on live install with shipping address USA.
    Last edited by frank18; 7 Oct 2012 at 05:12 AM.

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

    Default Re: Zone Rates: maximum shipping weight exceeded

    You are using 3 clones of zones.php correct?
    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!

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Zone Rates: maximum shipping weight exceeded

    Quote Originally Posted by Ajeh View Post
    You are using 3 clones of zones.php correct?
    correct

    EDIT: nope, zones.php does the Registered Air Mail, zones2.php does domestic express Post and zones3.php does Express Courier International

    I edited the zones.php file ..
    Last edited by frank18; 7 Oct 2012 at 05:15 AM.

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Zone Rates: maximum shipping weight exceeded

    Quote Originally Posted by Ajeh View Post
    You are using 3 clones of zones.php correct?
    You can test this with a USA address on the second link in my sig and play with a heavy product Blackmores / Duo Celloids / C.P.M.P. 170 tabs -- 8 units is under 2kg and 9 units is just over 2kg

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

    Default Re: Zone Rates: maximum shipping weight exceeded

    My bad ...

    Use the code:
    Code:
          global $total_weight;
          if ($total_weight > 2) {
            $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!

  8. #8
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Zone Rates: maximum shipping weight exceeded

    Quote Originally Posted by Ajeh View Post
    My bad ...

    Use the code:
    Code:
          global $total_weight;
          if ($total_weight > 2) {
            $this->enabled = false;
          }
    Thanks - that worked a treat. Only thing is that the radio button for this method does not show as enabled, the customer needs to click it ....

  9. #9
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Zone Rates: maximum shipping weight exceeded

    Quote Originally Posted by frank18 View Post
    Thanks - that worked a treat. Only thing is that the radio button for this method does not show as enabled, the customer needs to click it ....
    Fixed the radio button issue. Simply configured zones2 (domestic Express Post) to skip all countries BUT Australia

    Enable for AU
    Skip Countries: 00

    Thanks again

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

    Default Re: Zone Rates: maximum shipping weight exceeded

    Thanks for the update that you have this working now ...
    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 1 of 2 12 LastLast

Similar Threads

  1. v150 Zone Rates - calculate shipping by total weight not per product
    By mattys in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 30 Jul 2012, 02:52 PM
  2. zone rates configuring by price and not weight
    By giftsandwhatnot in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 19 Aug 2011, 08:28 PM
  3. Multiple Shipping rates depending on zone and weight
    By buffy in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Dec 2009, 03:08 PM
  4. Mixing Per Weight Unit and Zone Table Rates
    By thomasharding in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 2 Sep 2009, 10:07 PM
  5. Zone Rates Problem with weight lbs to kgs
    By bookwise in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 11 Mar 2009, 04: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