Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42
  1. #11
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    What is the weight of the order?

    What is the Ship To?

    What are your settings in the Configuration ... Shipping/Packaging ...
    Order Weight:
    1.16lb

    Non-US Ship To:
    234 Wellington Street
    Ottawa, K1A 0G9
    ON, Canada

    US Ship To:
    2129 Ellis Ave
    Los Angeles, CA 90001

    Shipping/Packaging settings:
    Country of Origin United States
    Postal Code 94965
    Enter the Maximum Package Weight you will ship 35
    Package Tare Small to Medium - added percentage:weight 10:.5
    Larger packages - added packaging percentage:weight 10:5
    Display Number of Boxes and Weight Status 3
    Order Free Shipping 0 Weight Status 0
    Shipping Estimator Display Settings for Shopping Cart 2
    Display Order Comments on Admin Invoice 1
    Display Order Comments on Admin Packing Slip 1
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: PHP error with the zone shipping module

    NOTE with this setting:
    Enter the Maximum Package Weight you will ship

    you will never get beyond 35lbs per box and it will be broken into multiple packages ...

    NOTE: you use USPS so do not set that higher than 70 ...

    Good new: I can repeat this issue now ...

    Bad news: I do not yet have a solution ...

    Let me see what I can do ...
    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. #13
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    NOTE with this setting:
    Enter the Maximum Package Weight you will ship

    you will never get beyond 35lbs per box and it will be broken into multiple packages ...

    NOTE: you use USPS so do not set that higher than 70 ...
    Got it..

    Quote Originally Posted by Ajeh View Post
    Good new: I can repeat this issue now ...

    Bad news: I do not yet have a solution ...

    Let me see what I can do ...
    Linda you are the best!!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: PHP error with the zone shipping module

    What is on your file:
    /includes/modules/pages/header_php.php

    lines 230 to 250 in the file, on the server, as your line numbers do not match mine ...
    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. #15
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    What is on your file:
    /includes/modules/pages/header_php.php

    lines 230 to 250 in the file, on the server, as your line numbers do not match mine ...
    There are other mods from the Gift wrapping, COWOA, and SBA mod so the lines numbers won't line up with the default.. I think this is the code you are looking for..

    PHP Code:
    // get all available shipping quotes
      
    $quotes $shipping_modules->quote();

      
    // check that the currently selected shipping method is still valid (in case a zone restriction has disabled it, etc)
      
    if (isset($_SESSION['shipping']) && $_SESSION['shipping'] != FALSE && $_SESSION['shipping'] != '') {
        
    $checklist = array();
        foreach (
    $quotes as $key=>$val) {
          foreach(
    $val['methods'] as $key2=>$method) {
            
    $checklist[] = $val['id'] . '_' $method['id'];
          }
        }
        
    $checkval = (is_array($_SESSION['shipping']) ? $_SESSION['shipping']['id'] : $_SESSION['shipping']);
        if (!
    in_array($checkval$checklist)) {
          
    $messageStack->add('checkout_shipping'ERROR_PLEASE_RESELECT_SHIPPING_METHOD'error');
        }
      }

    // if no shipping method has been selected, automatically select the cheapest method.
    // if the modules status was changed when none were available, to save on implementing
    // a javascript force-selection method, also automatically select the cheapest shipping
    // method if more than one module is now enabled
      
    if ( !$_SESSION['shipping'] || ( $_SESSION['shipping'] && ($_SESSION['shipping'] == false) && (zen_count_shipping_modules() > 1) ) ) $_SESSION['shipping'] = $shipping_modules->cheapest(); 
    Last edited by DivaVocals; 15 Sep 2012 at 07:59 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #16
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: PHP error with the zone shipping module

    Hi, sorry to bring the dead out of the grave but I'm experiencing this exact problem.
    Have you ever find out what is Itand how to fix it?

    Thanks

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

    Default Re: PHP error with the zone shipping module

    Could you be more specific on what the problem is that you are having?

    What are your settings in Configuration ... Shipping ...

    What are your settings on the Shipping ... Zone Rates zones ...
    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. #18
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: PHP error with the zone shipping module

    Sorry Linda,
    I didn't wrote it because the problem as the settings are identical to Diva's. I configured it exactly as described to reproduce the error.
    Anyway here the data:

    Zencart 1.51
    MySQL 5.5.24
    PHP/5.4.3
    I configured Shipping/Packaging settings as Diva whit the only difference tha the country is Italy.
    The Zone shipping setting match Diva (for testing) and it turned out tha the error is generated in the same way i.e. if You put ANY ISO code in the field Skip Countries it would generate an error of :
    Invalid argument supplied for foreach() in /.../.../includes/modules/pages/checkout_shipping/header_php.php on line 213

    The code called is:
    PHP Code:
    // check that the currently selected shipping method is still valid (in case a zone restriction has disabled it, etc)
      
    if (isset($_SESSION['shipping']) && $_SESSION['shipping'] != FALSE && $_SESSION['shipping'] != '') {
        
    $checklist = array();
        foreach (
    $quotes as $key=>$val) {
          foreach(
    $val['methods'] as $key2=>$method) {
            
    $checklist[] = $val['id'] . '_' $method['id'];
          }
        } 
    If You leave the field empty no error is generated (but the module will show in the checkout even if it's not selectable).

    Now i'm trying to find out if possibly is a problem related to the php version.
    Last edited by izar74; 9 Nov 2013 at 04:04 PM.

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

    Default Re: PHP error with the zone shipping module

    Humor me ...

    Go to Modules ... Shipping ... and click on Zone Rate zones and copy and paste what you see in the right column in your next Post ...

    What version of Zen Cart are you in?

    Did you make any changes to the code regarding this issue?
    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. #20
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    Humor me ...
    The Past, Present and future walk into a bar.
    It was Tense.

    :)

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. FREE SHIPPING! Module with no shipping zone
    By ebaobao in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 24 May 2013, 03:57 PM
  2. v150 Problems with Zone Rates shipping module
    By Skull88 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Apr 2012, 11:37 PM
  3. Cloning the Zone Based Rates Shipping Module?
    By pe7er in forum Addon Shipping Modules
    Replies: 15
    Last Post: 11 Mar 2010, 01:23 PM
  4. Error installing cloned zone shipping module
    By shocker in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 16 Aug 2007, 04:15 AM
  5. Problem with World Zone Shipping Module?
    By SysFix in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 28 Feb 2007, 06:36 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