Forums / Built-in Shipping and Payment Modules / Simple "Free US Shipping and Flat Rate International"

Simple "Free US Shipping and Flat Rate International"

Views: 1,654

Results 1 to 19 of 19
9 Feb 2015, 6:48 PM
#1
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Simple "Free US Shipping and Flat Rate International"

I have read so many threads that it is more confusing than ever.

I need to offer free shipping in the US and a flat rate international shipping on items over $50.

We do not ship items under $50 internationally...

What is the easiest way to do this?

9 Feb 2015, 6:57 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

When you say Flat Rate International of orders of $50.00 or more, does this mean regardless of whether the Order is $50.00 or $500.00 it is the same amount for shipping?

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!

9 Feb 2015, 7:09 PM
#3
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

Yes, we ship leather jackets and will not ship any items less than $50 in value. If the international customer orders 3 jackets, we will take care of any additional shipping so they will only pay $50 for one jacket or ten jackets.

9 Feb 2015, 7:21 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

Clone the shipping module:
/includes/modules/shipping/freeoptions.php
/includes/languages/english/modules/shipping/freeoptions.php

to new files such as:
/includes/modules/shipping/freeoptions2.php
/includes/languages/english/modules/shipping/freeoptions2.php

and on the new files, do case sensative global replaces for:
freeoptions to be freeoptions2
FREEOPTIONS to be FREEOPTIONS2

Make a Zone Definition for the US and install on the Free Shipping Options freeoptions and set the Total >= 0.00 and the amount for the shipping cost to 0.00 ...

Make a Zone Definition for the Rest of the World (except the US) and set it on the clone for Free Shipping Options freeoptions2 and set the Total >= 50.00 and the amount for Shipping Cost to what you want to charge ...

There are several quick methods for building these Zone Definitions in the FAQs that a search for:
Zones

would show you:
http://www.zen-cart.com/content.php?308-prepared-zone-definitions

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!

9 Feb 2015, 8:02 PM
#5
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

I don't know what happened, but all I have for shipping options now is Flat Rate and Free Shipping Options. Other options like USPS, zone rates, stores pickup, per unit, per item, etc are all gone. The only files I changed are the ones I just cloned. Even with the two options I have left, they cannot be edited as the section on the right side for editing is completely missing. What did I do?!?

9 Feb 2015, 10:37 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

That means you most likely have a typo or error with one or more of your shipping files ...

Check your debug logs in /logs for issues ...

Also look that you do not have duplicate files or copies of files in the directory:
/includes/modules/shipping

as the directory is auto loading and will try to load all files that it finds ...

Also ensure that the files in:
/includes/modules/shipping

are code files and that the files in:
/includes/languages/english/modules/shipping

are language files with the defines in 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!

9 Feb 2015, 10:44 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

I also led you a tad astray on the changes as I was trying to avoid problems but you will get more ... :blink:

Replace, case sensative:
freeoptions to freeoptions2
FREEOPTIONS to FREEOPTIONS2

and skip the underscores on them ... see if that works better for you ...

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 Feb 2015, 12:52 AM
#8
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

Ajeh:

I also led you a tad astray on the changes as I was trying to avoid problems but you will get more ... :blink:

Replace, case sensative:
freeoptions to freeoptions2
FREEOPTIONS to FREEOPTIONS2

and skip the underscores on them ... see if that works better for you ...

Haha, that did it. With only those two file changes, everything is back and I now have freeoptions2 as a module. Thanks! I will set up the configuration tomorrow.

10 Feb 2015, 1:15 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

Thanks for the update that all is right in the world once more ... :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!

10 Feb 2015, 11:32 AM
#10
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

Ajeh:

Thanks for the update that all is right in the world once more ... :smile:

...until I got my hands on it again. LOL.

I defined two zones using the Install SQL Patches in the link provided. I named them United States & International. I believe I have set everything as you indicated. Neither of them show as 'green' and do not show on the site when a product is chosen. Instead I get the "Sorry, we are not shipping to your region at this time" message in red...

I feel like I am almost there though...?

10 Feb 2015, 1:46 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

Look at the Zone Definitions in the DETAILS ... what do you have set in these?

Be aware, that with a US Zone on the Free Shipping Options freeoptions and then the Rest of the World on the Zone for the Free Shipping Options freeoptions2 with the Total set to >= 50.00 you will not see a shipping method for the Rest of the World, unless the total is >= 50.00 ...

When making the Zones, which ones did you use from the FAQs for the Zones for each one?

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 Feb 2015, 2:22 PM
#12
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

For Zone definitions, I used the link you gave and chose:

"To create a Zone for the US 50 States & DC"
"To create a Zone Definition for the Rest of the World, excluding the United States."

This is freeoptions```
Enable Free Options Shipping
True

Shipping Cost
0.00

Handling Fee
0

Total >=
0.00

Total <=

Weight >=

Weight <=

Item Count >=

Item Count <=

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
United States

Sort Order
3


This is freeoptions2

Enable Free Options Shipping
True

Shipping Cost
50.00

Handling Fee
0

Total >=
50.00

Total <=

Weight >=

Weight <=

Item Count >=

Item Count <=

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
International

Sort Order
4


I chose a trial order of $399 so it would show up.
10 Feb 2015, 3:06 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

So far, mine is working ...

If I try to ship to Canada with only $25.00 in the cart I see on the checkout_shipping:

Not Available At This Time

Sorry, we are not shipping to your region at this time.

Please contact us for alternate arrangements.

But if $50.00 or more I have:

Free Shipping Options2 $50.00
Free Shipping2

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 Feb 2015, 5:43 PM
#14
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

I think that I have poltergeists at work here. I also believe it is working now, but I did not do anything different. I find it confusing that it offers "Free Shipping Options2" and *free *shipping costs $50.00, but it is working : )

This actually answered another question. When I first rebuilt the site recently I had an error about the flatone module not found or something. I added the flatone.php modules from my old installation and the error message was gone. Then I realize that I must have cloned the flat rate module years ago for this exact reason - to give me two shipping options for US and international.

That seems easier for some reason although it is less customizable than the way you did it. But you are a genius and I thank you very much for all of your help!

10 Feb 2015, 5:46 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

Keep in mind that the language files for the shipping allow you to change the language for whatever it is you want them to be as to how they read ...

You might change the define from:
Free Shipping Options2

to something like:
Fred Was Here

or perhaps something more useful ... :lookaroun

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 Feb 2015, 8:32 PM
#16
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

I think "Fred Was Here" will do the trick. :) It is more appropriate than you think, because on my site, our store mannequin is referred to as Fred and we joke about it. But I went with "Flat Rate" instead. Thank you again, you are the best!

10 Feb 2015, 8:36 PM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

Actually, Fred is an elf from long, long ago ... maybe they were friends ... :cool:

Thanks for the update that you were able to get this straightened out ...

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!

24 Feb 2015, 7:08 PM
#18
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Simple "Free US Shipping and Flat Rate International"

Rick5150:

Yes, we ship leather jackets and will not ship any items less than $50 in value. If the international customer orders 3 jackets, we will take care of any additional shipping so they will only pay $50 for one jacket or ten jackets.

I forgot that we have a patch set for $21 on the site. I will offer this free to US, but need to charge $5 for international shipping. How do I do this correctly?

So it will be free shipping the the US for everything;
International shipping is $30 for items over $50, otherwise $5 shipping applies...

26 Feb 2015, 3:12 PM
#19
ajeh avatar

ajeh

Oba-san

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

Re: Simple "Free US Shipping and Flat Rate International"

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!