Zen Cart Logo

Quickie on Flat Rate

Locked

Views: 1,160

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
23 Dec 2007, 1:05 AM
#1
jotafl avatar

jotafl

New Zenner

Join Date:
Dec 2007
Posts:
16
Plugin Contributions:
0

Quickie on Flat Rate

Am I able to set different zones to the "flat rate" shipping on zencart?

Example. my products will be the same weight and the only thing I want to do is charge a different flat rate to countries other than USA. Ex.

USA/CA (Including AK, HI, PR) $10.00
European Community $18.00

Anyway I can do that?

I got the e-book which has helped me a lot but that explanation is not there, any help would be greatly appreciated.

Thanks.

MV

23 Dec 2007, 1:12 AM
#2
jotafl avatar

jotafl

New Zenner

Join Date:
Dec 2007
Posts:
16
Plugin Contributions:
0

Re: Quickie on Flat Rate

Disregard guys, I think I found the answer. :oops:

23 Dec 2007, 2:06 AM
#3
jotafl avatar

jotafl

New Zenner

Join Date:
Dec 2007
Posts:
16
Plugin Contributions:
0

Re: Quickie on Flat Rate

One more time. LOL, okay I thought I found the answer, the way for me was to d/l the new zoneflat zone module. I did install it and now some errors appears and the thing is, this module is what I really need.

Before any further, I went to the following posts to search for the problem and can't figure it out so any help out there would be great.

Topics I went already to see if I was able to fix the problem:

http://www.zen-cart.com/forum/showthread.php?t=75105
https://www.zen-cart.com/tutorials/index.php?article=87

The problem is similar to the post on id 75105 where as the text is bigger. Now I have not modified any HTML coding, just strictly the output of the ZenCart.

The error message I am getting is the following:

Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_ZONEFLAT_ZONE_3 in F:\xampp\htdocs\store\includes\modules\shipping\zoneflat.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at F:\xampp\htdocs\store\includes\modules\shipping\zoneflat.php:49) in F:\xampp\htdocs\store\includes\functions\functions_general.php on line 44

When I go to line 49 of the file this is what I see:

Line 49 if ((int)constant('MODULE_SHIPPING_ZONEFLAT_ZONE_' . $i) > 0) {

Line 50 $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . constant('MODULE_SHIPPING_ZONEFLAT_ZONE_' . $i) . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

Line 51 while (!$check->EOF) {

Note: I do not have the extra space before the <?php nor at the end of either files. Can anyone help on this? Thanks.

MV

23 Dec 2007, 2:50 AM
#4
jotafl avatar

jotafl

New Zenner

Join Date:
Dec 2007
Posts:
16
Plugin Contributions:
0

Re: Quickie on Flat Rate

I was able to clone the flat.php and made a second one as flateurope.php and that seems to work, but would like to see if anyone can show me how to fix the above problem. I am having a ball with this program and everything I can do to learn will be appreciated.

Thanks.

MV

28 Dec 2007, 2:02 AM
#5
stevecollins avatar

stevecollins

New Zenner

Join Date:
Aug 2005
Location:
Southampton
Posts:
80
Plugin Contributions:
0

Re: Quickie on Flat Rate

Hi. I too am having problems cloning the flat rate module. I have manually changed all of the FLAT/flat to my chosen name prefixed by Flat/flat with no spaces. i.e flatportsmouth ... flatsouthampton ... flatwinchester etc. The problem is that as soon as I change the file to the cloned version it does not appear in either the admin or shop side of the site and actually seems to stop other shipping modules from showing aswell.

Unless I am completely getting the idea wrong, I do not see how I can get these to work successfully. I have tried about thirty times now to get it to work and am getting frustrated each time with the same error.

Please can anyone help as this is stopping me from effectively pricing local delivery areas which is where my main custom comes from. Many thanks in advance for any input.

11 Jan 2008, 5:04 PM
#6
jotafl avatar

jotafl

New Zenner

Join Date:
Dec 2007
Posts:
16
Plugin Contributions:
0

Re: Quickie on Flat Rate

Steve, I just finished cloning different flat rates, was having some problems, the thing is (it worked for me) make sure the file permission are set to be writeable (then change it back) and make sure you upload the file on the correct directories. I know it is complicated but once you do one or two, the rest will be a slide of cake <G>.

28 Mar 2008, 11:21 AM
#7
this_side_up avatar

this_side_up

New Zenner

Join Date:
Nov 2006
Posts:
57
Plugin Contributions:
0

Re: Quickie on Flat Rate

I have the same issue with this module. Mine however begins bombing out on zone 9. Has anyone been able to resolve this? I Have cloned this module with success but they all (including the original) have the same problem. Its a lovely add on, and i would love to be able to get to the bottom of this issue. Does anyone have any suggetion? Thanks