Zen Cart Logo
Forums / General Questions / Flat rate module help

Flat rate module help

Locked

Views: 1,517

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Nov 2007, 8:09 PM
#1
circlegtractors avatar

circlegtractors

New Zenner

Join Date:
Aug 2007
Posts:
33
Plugin Contributions:
0

Flat rate module help

Does anyone have a shipping module that is basically a copy of flat rate, that I can add to my site and rename it? Or anyone have any advice on how to copy a shipping module and make it work?

6 Nov 2007, 10:06 PM
#2
circlegtractors avatar

circlegtractors

New Zenner

Join Date:
Aug 2007
Posts:
33
Plugin Contributions:
0

Re: Flat rate module help

I found the thread on cloning shipping modules and I did so. When I go to modules/shipping under admin and try to install the new cloned module, I get this error

Warning: reset(): Passed variable is not an array or object in /home/content/c/i/r/circlegt/html/shop/admin/modules.php on line 279

Warning: Variable passed to each() is not an array or object in /home/content/c/i/r/circlegt/html/shop/admin/modules.php on line 280

I went to this file and went to line 279 and 280 and they look like this

reset($mInfo->keys);
while (list($key, $value) = each($mInfo->keys)) {

Is there anybody out there that is familiar with cloning that can help?

7 Nov 2007, 1:26 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Flat rate module help

flat.php ===> flatsomething.php
flat ===> flatsomething
FLAT ===> FLATSOMETHING

Two files to clone:
/includes/modules/shipping/flat.php ===>
/includes/modules/shipping/flatsomething.php

/includes/languages/english/modules/shipping/flat.php ===>
/includes/languages/english/modules/shipping/flatsomething.php

That's about all there is to it ... :smile:

Sounds like you have errors somewhere, missing or mixed up files, typos, etc. etc. etc.

7 Nov 2007, 4:15 PM
#4
circlegtractors avatar

circlegtractors

New Zenner

Join Date:
Aug 2007
Posts:
33
Plugin Contributions:
0

Re: Flat rate module help

I will give it a try thanks

6 Sep 2008, 5:38 PM
#5
baddco avatar

baddco

New Zenner

Join Date:
Jul 2008
Posts:
19
Plugin Contributions:
0

Re: Flat rate module help

I am having a flat rate shipping error.

I have it configured to charge 8.50 per unit, It seems to be working properly, but there is the orange/yellow indicator that tells me it isnt.

I have it set-up as follows:

Flat Rate

Enable Flat Shipping
True

Shipping Cost
8.50

Tax Class
Taxable Goods

Tax Basis
Billing

Shipping Zone
New York ( New York )

Sort Order
1

I'm thinking it has to do with the Shipping Zone or sort order. I never have been able to figure exactly what the sort order is.

7 Sep 2008, 2:32 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Flat rate module help

The Zone is triggering the orange dot to let you know that there is a "filter" or condition on the shipping module ...

The Sort Order is for the display order of the Shipping Modules when you have more than one ...

NOTE: Always be sure to set a Sort Order on ALL of the Modules, if you intend to set one of them ... otherwise, leaving the Sort Order at 0 will be okay on Shipping or Payment Modules ...

NOTE: Order Total Modules always need to have Sort Orders and usually the default Sort Orders are correct ...