Zen Cart Logo
Forums / Bug Reports / [Done v1.3.8] Shipping Module Setup

[Done v1.3.8] Shipping Module Setup

Locked

Views: 5,324

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
15 Apr 2007, 12:34 AM
#1
rking avatar

rking

New Zenner

Join Date:
Mar 2006
Posts:
1
Plugin Contributions:
0

[Done v1.3.8] Shipping Module Setup

Currently I'm only offering a flat rate shipping option, which is not cost effective, on my ecommerce site. I use UPS for the flat rate shipping but would like to let my customers pick their own shipping options including international.

I'm learning that it's more complicated than simply installing the module. When I did activate the module without changing any of the options I get:

"United Parcel Service
We are unable to obtain a rate quote for UPS shipping.
Please contact the store if no other alternative is shown."

When I changed the zone to Florida, which was the only option available, the UPS shipping option disappeared from my site and in Zen the green circular graphic changed to yellow.

I'm not a programmer. What is the easiest way to intall the UPS mod? What "store" do I contact? Zen? UPS? Is this a matter of adding/changing zones? How do I do this? I have Zone 1: DC, MD, VA; Zone 2: East Coast; Zone 3: Midwest; Zone 4: West Coast; Zone 5: Western Europe and Zone 6: Eastern Europe.

THANKS in advance!
Richard

15 Apr 2007, 1:51 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] Shipping Module Setup

For UPS don't set any zone ... let UPS determin the costs based on the shipping address ... this is done automatically ...

You just need to enter your 5 digit US zipcode in the Shipping/Packaging ... then the customer can choose what shipping method ...

24 Aug 2007, 11:56 PM
#3
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

QUESTION 1

I'm using the free options, (I have free shipping of - red light). I have it set for a Total >=100.00, the rest of the fields is blank. I have setup 3 shipping/tax definitions zones: 48US w/ o%tax (for Continental US), NON-48 w/0% tax (for evrything else) and Arizona w/ 8.1% tax. The 48US & Arizona zones both have priority 1, the NON-48 has priority 2

The shipping module I work with is UPS.

All shipping/tax zones have green indicator.

My shipping module Free Options is supposed to show free ground shippin option for all orders equal to 100.00 or more within Continental US (so I specified the US48 shipping zone) The indicator light changed to orange (it returns to green when I specify "none" for shipping zone)
But with no zone specified I cannot limit free shipping option for orders of $100.00 or moreto within Continental US only...

QUESTION 2

There is a mode available called Free Shipping Rules. Can this module co-exist with the Free Shipping Options? If yes how do I prioritize the two?

QUESTION 3

Which module (shipping rules or shipping options) would I use to offer free shipping if the total is >=100.00 OR weight =<0.5 lbs ? (ANY of the two conditions would meet free shipping criteria. What is exaxt difference between free shipping rules and free options?

Thanks in advance for your help.

25 Aug 2007, 4:00 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] Shipping Module Setup

The Free Shipping Options freeoptions should allow for the Total >= 100.00 OR Weight <= .50

Test this without the zone setting first to make sure it is triggering correctly ...

Then check the zone you defined for errors ...

25 Aug 2007, 7:58 AM
#5
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

Ajeh:

The Free Shipping Options freeoptions should allow for the Total >= 100.00 OR Weight <= .50

Test this without the zone setting first to make sure it is triggering correctly ...

Then check the zone you defined for errors ...

The condition work, the indicator is orange. How would I check the defined zone for errors?

25 Aug 2007, 5:15 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] Shipping Module Setup

How did you define the zones?

Providing that the zone is set and each definition is added then it should display only for those with a proper address ...

Check the Zone Definitions ... Details ...

25 Aug 2007, 8:12 PM
#7
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

Ajeh:

How did you define the zones?

Providing that the zone is set and each definition is added then it should display only for those with a proper address ...

Check the Zone Definitions ... Details ...

Here are my Zone Details:
Number of Zones: 49
Number of Tax Rates: 1
Date Added: 08/11/2007Last Modified: 08/18/2007
Description:
Continental US

I defined the US48 zone as follows: inserted one by one all Continental states (United States) plus Washington DC which gives me 49 zones under US48 definition.

All shipping modules display w/ green indicators but my US48 zone definition has the yellow indicator unless I set zones for it to "none"
Hovever if the zone is set to "none" it will not give free shipping for items=>100.00...

25 Aug 2007, 8:14 PM
#8
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

PS. Correction, the indicator next to the US48 Zone Definition is orange, not yellow

27 Aug 2007, 4:10 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] Shipping Module Setup

If you login ... does the Free Shipping Options freeoptions work properly for you?

27 Aug 2007, 9:54 PM
#10
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

Yes, its seems to work. I'm worrying about this orange indicator. I did try to uninstall and reinstall the free shipping options but the orange is still there...

27 Aug 2007, 10:52 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] 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 ... :cool:

28 Aug 2007, 5:46 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] 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:

    } 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:

    } 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 ... :lamo:

28 Aug 2007, 5:46 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] Shipping Module Setup

Moving to Bug Reports ...

28 Aug 2007, 10:59 PM
#14
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

Ajeh:

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 ... :cool:

Thanks, Ajeh!

30 Aug 2007, 1:05 AM
#15
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

Ajeh:

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 ... :lamo:

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.

30 Aug 2007, 1:07 AM
#16
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.8] Shipping Module Setup

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

all4coffee

Thanks

30 Aug 2007, 1:30 AM
#17
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

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

30 Aug 2007, 3:08 AM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...