Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping Module Setup

    Green is for installed and active

    Orange is for installed and either not active or customized or missing configuration settings ...

    Red is for Apple ... er ... not installed ...
    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!

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

    Default Re: Shipping Module Setup

    If the problem is only in the Shipping Estimator ...

    You would replace the code in the:
    /includes/modules/shipping_estimator.php

    around 102-120 that reads:
    Code:
        } elseif ($_SESSION['cart_country_id']){
          // session is available
          $_SESSION['country_info'] = zen_get_countries($_SESSION['cart_country_id'],true);
          $country_info = $_SESSION['country_info'];
          // fix here - check for error on $cart_country_id
          $order->delivery = array('postcode' => $_SESSION['cart_zip_code'],
                                   'country' => array('id' => $_SESSION['cart_country_id'], 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' =>  $country_info['countries_iso_code_3']),
                                   'country_id' => $_SESSION['cart_country_id'],
                                   'format_id' => zen_get_address_format_id($_SESSION['cart_country_id']));
        } else {
          // first timer
          $_SESSION['cart_country_id'] = STORE_COUNTRY;
          $_SESSION['country_info'] = zen_get_countries(STORE_COUNTRY,true);
          $country_info = $_SESSION['country_info'];
          $order->delivery = array(//'postcode' => '',
                                   'country' => array('id' => STORE_COUNTRY, 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' =>  $country_info['countries_iso_code_3']),
                                   'country_id' => STORE_COUNTRY,
                                   'format_id' => zen_get_address_format_id($_POST['zone_country_id']));
        }
    With the code:
    Code:
        } elseif ($_SESSION['cart_country_id']){
          // session is available
          $_SESSION['country_info'] = zen_get_countries($_SESSION['cart_country_id'],true);
          $country_info = $_SESSION['country_info'];
          // fix here - check for error on $cart_country_id
          $order->delivery = array('postcode' => $_SESSION['cart_zip_code'],
                                   'country' => array('id' => $_SESSION['cart_country_id'], 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' =>  $country_info['countries_iso_code_3']),
                                   'country_id' => $_SESSION['cart_country_id'],
                                   'zone_id' => $state_zone_id,
                                   'format_id' => zen_get_address_format_id($_SESSION['cart_country_id']));
        } else {
          // first timer
          $_SESSION['cart_country_id'] = STORE_COUNTRY;
          $_SESSION['country_info'] = zen_get_countries(STORE_COUNTRY,true);
          $country_info = $_SESSION['country_info'];
          $order->delivery = array(//'postcode' => '',
                                   'country' => array('id' => STORE_COUNTRY, 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' =>  $country_info['countries_iso_code_3']),
                                   'country_id' => STORE_COUNTRY,
                                   'zone_id' => $state_zone_id,
                                   'format_id' => zen_get_address_format_id($_POST['zone_country_id']));
        }
    Seems to be a little quirk in there on Zones and the Shipping Estimator ...
    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping Module Setup

    Moving to Bug Reports ...
    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!

  4. #14
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Shipping Module Setup

    Quote Originally Posted by Ajeh View Post
    Green is for installed and active

    Orange is for installed and either not active or customized or missing configuration settings ...

    Red is for Apple ... er ... not installed ...

    Thanks, Ajeh!

  5. #15
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Shipping Module Setup

    Quote Originally Posted by Ajeh View Post
    If the problem is only in the Shipping Estimator ...

    You would replace the code in the:
    /includes/modules/shipping_estimator.php

    around 102-120 that reads:


    Seems to be a little quirk in there on Zones and the Shipping Estimator ...
    Ajeh,

    I replaced the code in the sjipping_estimator.php as per your advice but it didn't make my orange indicator green. Further testing of the estimator revealed that there is no Standard Shipping to Canada available (showing up on the estimator's screen) regardless of the total order amount. I have 2 shipping modules: Free Shipping Options , sort order 1 offering free shipping within my 48US Continental US zone and the UPS module , sort order 2, with STD checked for Canada Standard, no shipping zones specified. All my zone definitions have green indicators.

  6. #16
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: [Done v1.3.8] Shipping Module Setup

    My test zencart is located at:
    http://www.time-co.com/zencart/

    all4coffee

    Thanks

  7. #17
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: [Done v1.3.8] Shipping Module Setup

    Ajeh,

    never mind Canada Standard shipping option not showing up, I had wrong zip code. Sorry.

    My only question now (the orange indicator still bothers me a bit thou) is if I should use the new code changes in the shipping_estimator.php or the keep it as it is. What do the changes do? I couldn't see the difference in operation... How do I test it to know if the new code makes a difference. ..

    Thanks

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

    Default Re: [Done v1.3.8] Shipping Module Setup

    The shipping estimator can get confused without that on the display ...

    Currently, hitting update fixes it ... but this makes it work consistantly on many of the shipping modules with zones set on them ...
    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 2 of 2 FirstFirst 12

Similar Threads

  1. Shipping module setup issues
    By hoovermatt in forum Addon Shipping Modules
    Replies: 0
    Last Post: 6 Jan 2011, 03:18 PM
  2. Replies: 10
    Last Post: 20 Jul 2009, 12:56 PM
  3. Replies: 2
    Last Post: 13 Aug 2006, 11:46 AM
  4. Can this type of attribute setup be done?
    By prodigious in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Jul 2006, 06:02 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