If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Set up International Shipping ONLY if below a certain dollar amount?

Set up International Shipping ONLY if below a certain dollar amount?

Started by dat311 on 22 May 2013, 12:27 AM · Views: 4,866

Results 1 to 8 of 8
22 May 2013, 12:27 AM
#1
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Set up International Shipping ONLY if below a certain dollar amount?

Hi! I am not sure if this is possible but how can I set up the shipping modules so that it only allows international orders if BELOW a certain dollar amount?

I only want international shipping allowed if the order price is below a certain amount, otherwise, over that amount only US customers can purchase.

I currently use the Shipping Table module so that below a certain amount it's $xx and above a certain amount it's $xx. It then applies the Shipping Zone to both price breaks...but I can't designate the Shipping Zone for the below and the above amounts separately.

Is there another module or way I can set it up so that all shipping zones can purchase if below a dollar amount?

I hope I explained this okay? :wacko:

Thank you!!!!

22 May 2013, 2:22 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Set up International Shipping ONLY if below a certain dollar amount?

Do both National and International have the same prices?

Is National ALL of the US or just US 48 plus DC?

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!

22 May 2013, 12:30 PM
#3
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: Set up International Shipping ONLY if below a certain dollar amount?

Hi Ajeh!

Yes, the national and international shipping cost will be the same flat rate. National is all 50 states.

Thanks!!!

22 May 2013, 2:56 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Set up International Shipping ONLY if below a certain dollar amount?

You could define a Zone for the US 50 States plus DC and add that to Table Rate table shipping module ...

Then, Use the Zone Rates zones shipping module and define the US for the:

Skip Countries, use a comma separated list of the two character ISO country codes

Next, set Zone 1 for 00 which is for everyone else not defined (as in the Rest of the World) ...

Now, you need to customize the code for:
/includes/modules/shipping/zones.php

and add the code in RED:

      // disable only when entire cart is free shipping
      if (zen_get_shipping_enabled($this->code)) {
        $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
      }

[B]// bof: turn off for orders > $50.00
            if (!IS_ADMIN_FLAG) {
            $chk_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices();
            if ($chk_total_amount > 50.00) {
                $this->enabled = false;
            }
            }
// eof: turn off for orders > $50.00
[/B]
      // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED

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!

22 May 2013, 4:46 PM
#5
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: Set up International Shipping ONLY if below a certain dollar amount?

Thank you, thank you, thank you so very much. I truly appreciate your time and help - you are genius!

I have set it all up as you have described above. Now I will have to wait for an international buyer to purchase to test that it works!! (unless you know of a way to test it otherwise?).

I will report back once I've confirmed it worked well so others will know.

Thank you again!!!! :hug:

22 May 2013, 4:50 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Set up International Shipping ONLY if below a certain dollar amount?

Best test is to always have a Test Customer account and try various addresses yourself to ensure things are working rather than wait for a live customer ... :smile:

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!

23 May 2013, 2:53 AM
#7
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: Set up International Shipping ONLY if below a certain dollar amount?

Oh yes, didnt think about just making up a test account. But I did get an international order and this worked perfectly! Thanks again, you made my day!

23 May 2013, 3:01 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Set up International Shipping ONLY if below a certain dollar amount?

You are most welcome ... thanks for the update that this is working for you ... :smile:

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!