Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Multiple flat shipping rates

Multiple flat shipping rates

Locked

Views: 9,241

Results 1 to 20 of 33
This thread is locked. New replies are disabled.
21 Mar 2007, 1:21 PM
#1
nebbuchadnezzar avatar

nebbuchadnezzar

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Multiple flat shipping rates

Hi, Ive done some searching on how to setup 'Multiple Flat Shipping Rates' but can't find anything that I understand or can figure out. Can anyone help out at all? What I want to do is the following:

Shipping Method: Standard Express
Area 1 $6.00 $11.00
Area 2 $5.00 $12.00
Area 3 $4.00 $16.00
Area 4 $7.00 $19.00

Any help would be appreciated.

N

21 Mar 2007, 7:08 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Multiple flat shipping rates

How do the two prices relate to Flat for each area?

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!

21 Mar 2007, 11:07 PM
#3
nebbuchadnezzar avatar

nebbuchadnezzar

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Re: Multiple flat shipping rates

Maybe I should re-phrase my question - I guess I'm not sure how to do the following:

I want to provide the following shipping options for my customers:

In the US:
Standard shipping for $6.99
Express shipping for $12.99

In Canada:
Standard shipping for $8.99
Express shipping for $19.99

In a particular province in Canada:
Standard shipping for $8.99
Express shipping for $19.99

In the UK:
Standard shipping for $8.99
Express shipping for $19.99

etc.....

OR.....can Zen intuitive determine (based on the ZIP or Postal Code) where that person is and thus provide just the 1 of the 'standard' or 'express' shipping options from above?

Thanks for any help here,
N

22 Mar 2007, 12:42 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Multiple flat shipping rates

Using Flat Rate shipping you could make 6 sets with different text and amounts ...

You will find to clone flat.php you are copying 2 files:
/includes/modules/shipping/flat.php
/includes/languages/english/modules/flat.php

To the clones:
/includes/modules/shipping/flat2.php
/includes/languages/english/modules/flat2.php
/includes/modules/shipping/flat3.php
/includes/languages/english/modules/flat3.php

Or you can give them more recognizable names such as:
/includes/modules/shipping/flatusstandard.php
/includes/languages/english/modules/flatusstandard.php
/includes/modules/shipping/flatusexpress.php
/includes/languages/english/modules/flatusexpress.php

Now you would change in the first set:
flat to flatusstandard
FLAT to FLATUSSTANDARD
flat to flatusexpress
FLAT to FLATUSEXPRESS

Then do the next set ... neat eh? :cool:

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 Mar 2007, 9:59 AM
#5
nebbuchadnezzar avatar

nebbuchadnezzar

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Re: Multiple flat shipping rates

Sorry for being such a newbie, I think I was able to follow your directions but am now getting the following error:

Fatal error: Cannot redeclare class flat in /home/kidcrat/public_html/includes/modules/shipping/flat.php on line 0

Thanks so much for assisting!
N

22 Mar 2007, 8:48 PM
#6
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Multiple flat shipping rates

Hi,

As well as duplicating the file several times, each with a unique name, the classes and defines within must be duplicated also.

That is,

class "flat" and MODULE_SHIPPING_FLAT_TEXT_TITLE are in flat.php.

so class "flat2" and MODULE_SHIPPING_FLAT2_TEXT_TITLE should be in flat2.php

It's easy to do this with the "search and replace" facility in many good text editors.

Alternatively, I only found this post because I was trying to see if more people are interested in a new shipping module for Zen Cart. It too though would have to be duplicated to provide both standard and express delivery. I suppose one good thing is that you'd only have to duplicate one file instead of creating 7 new ones but it's much of a muchness! :)

Info about proposed new shipping module

All the best...

Conor

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

22 Mar 2007, 11:12 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Multiple flat shipping rates

NOTE: if you leave a backup copy or a copu of flatrus.php and have not customized the code for flat to flatrus and FLAT to FLATRUS then you will get an error as these are self loading directories ...

Only load files that are working and complete on the cloning process ...

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 Mar 2007, 1:24 AM
#8
nebbuchadnezzar avatar

nebbuchadnezzar

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Re: Multiple flat shipping rates

Having problems again - the extra rates are working in the admin and they show up during the checkout process however, when I select one of them and go to the final checkout I'm getting the following error message:

Warning: Cannot modify header information - headers already sent by (output started at /home/kidcrat/public_html/includes/languages/english/modules/shipping/NFEXPRESS.php:53) in /home/kidcrat/public_html/includes/functions/functions_general.php on line **41

Any help would be appreciated - thanks,

N
**

23 Mar 2007, 1:32 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Multiple flat shipping rates

Fix the language file ... you have space(s) or blank line(s) after the closing php ?> ... remove them then reload the file ...

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 Mar 2007, 10:00 AM
#10
nebbuchadnezzar avatar

nebbuchadnezzar

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Re: Multiple flat shipping rates

That did it!! Thanks sooooo much - your help was greatly appreciated!

:)

17 Apr 2007, 8:49 PM
#11
fideaux64 avatar

fideaux64

New Zenner

Join Date:
Jan 2007
Posts:
5
Plugin Contributions:
0

Re: Multiple flat shipping rates

Just wanted to say that this thread helpd me a bunch. Thanks Linda and Conor.

18 Apr 2007, 5:30 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Multiple flat shipping rates

You are most welcome ... glad that this could help you out ... :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!

19 Apr 2007, 5:39 PM
#13
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Multiple flat shipping rates

Hi,

Just to let you know that the advice in this thread has kind of been rendered redundant by our new shipping module...

Region Tables

It allows you to define as many shipping methods per region as you like! :clap:

Check out the link above for more info.

All the best...

Conor

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 May 2007, 2:58 AM
#14
zingslings avatar

zingslings

New Zenner

Join Date:
May 2007
Posts:
70
Plugin Contributions:
0

Re: Multiple flat shipping rates

This is a great mod, i went in and made all the changes, it's working, however I still have these errors:

Warning: main(/home/zingslin/public_html/shop/includes/languages/english/modules/shipping/flatcamx.php) [function.main]: failed to open stream: No such file or directory in /home/zingslin/public_html/shop/admin/modules.php on line 174

Warning: main() [function.include]: Failed opening '/home/zingslin/public_html/shop/includes/languages/english/modules/shipping/flatcamx.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zingslin/public_html/shop/admin/modules.php on line 174

Warning: main(/home/zingslin/public_html/shop/includes/languages/english/modules/shipping/flatint.php) [function.main]: failed to open stream: No such file or directory in /home/zingslin/public_html/shop/admin/modules.php on line 174

Warning: main() [function.include]: Failed opening '/home/zingslin/public_html/shop/includes/languages/english/modules/shipping/flatint.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zingslin/public_html/shop/admin/modules.php on line 174

Warning: main(/home/zingslin/public_html/shop/includes/languages/english/modules/shipping/flatus.php) [function.main]: failed to open stream: No such file or directory in /home/zingslin/public_html/shop/admin/modules.php on line 174

Warning: main() [function.include]: Failed opening '/home/zingslin/public_html/shop/includes/languages/english/modules/shipping/flatus.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zingslin/public_html/shop/admin/modules.php on line **174

**I've checked each file to make sure there were no spaces at the end too. Would greatly appreciate any help.

21 May 2007, 5:31 PM
#15
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Multiple flat shipping rates

conor:

Hi,

As well as duplicating the file several times, each with a unique name, the classes and defines within must be duplicated also.

That is,

class "flat" and MODULE_SHIPPING_FLAT_TEXT_TITLE are in flat.php.

so class "flat2" and MODULE_SHIPPING_FLAT2_TEXT_TITLE should be in flat2.php

It's easy to do this with the "search and replace" facility in many good text editors.
Hi,
Just doing the same thing with cloning flat.
In my clone php files (shipping and english)....Am I supposed to change every instance that says "FLAT or flat" in the php, with "FLATCOURIER"? (my option)
Or is it just a couple of particular lines?
Thanks!

21 May 2007, 11:50 PM
#16
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Multiple flat shipping rates

Hi,

mcpisik:

Hi,
Just doing the same thing with cloning flat.
In my clone php files (shipping and english)....Am I supposed to change every instance that says "FLAT or flat" in the php, with "FLATCOURIER"? (my option)
Or is it just a couple of particular lines?
Thanks!

I recommend using the Region Tables module rather than bothering with this method any longer!

But if you want to go that way, you must change every instance of the defines and class names.

All the best...

Conor

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

22 May 2007, 5:03 PM
#17
vandydavid avatar

vandydavid

New Zenner

Join Date:
May 2007
Posts:
24
Plugin Contributions:
0

Re: Multiple flat shipping rates

I have done everything correct and this mod (I think). It shows up in admin side, but I install it and it will not activate. It says it is active, but I still have a red circle and it is not showing up in the actual shopping cart. Please help.

24 May 2007, 10:06 AM
#18
thetankgirl avatar

thetankgirl

New Zenner

Join Date:
Jul 2005
Posts:
33
Plugin Contributions:
0

Re: Multiple flat shipping rates

vandydavid:

I have done everything correct and this mod (I think). It shows up in admin side, but I install it and it will not activate. It says it is active, but I still have a red circle and it is not showing up in the actual shopping cart. Please help.

I have the same problem, only my admin says it's active and the circle is green. Still it won't show up during the checkout.

24 May 2007, 12:38 PM
#19
thetankgirl avatar

thetankgirl

New Zenner

Join Date:
Jul 2005
Posts:
33
Plugin Contributions:
0

Re: Multiple flat shipping rates

thetankgirl:

I have the same problem, only my admin says it's active and the circle is green. Still it won't show up during the checkout.

it works now! I used search & replace, but I accidently replaced FLAT with flat2 instead of FLAT2 (replace uppercase letters with uppercase and lowercase with lowercase).

14 Jun 2007, 7:09 PM
#20
borne avatar

borne

New Zenner

Join Date:
Apr 2007
Posts:
22
Plugin Contributions:
0

Re: Multiple flat shipping rates

Using Flat Rate shipping you could make 6 sets with different text and amounts ...

You will find to clone flat.php you are copying 2 files:
/includes/modules/shipping/flat.php
/includes/languages/english/modules/flat.php

To the clones:
/includes/modules/shipping/flat2.php
/includes/languages/english/modules/flat2.php
/includes/modules/shipping/flat3.php
/includes/languages/english/modules/flat3.php

Or you can give them more recognizable names such as:
/includes/modules/shipping/flatusstandard.php
/includes/languages/english/modules/flatusstandard.php
/includes/modules/shipping/flatusexpress.php
/includes/languages/english/modules/flatusexpress.php

Can you do this with table shipping set up too? (table.php)