Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Clone/Create new Shipping by Weight module problem

Clone/Create new Shipping by Weight module problem

Locked

Views: 1,095

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
24 Sep 2008, 4:01 PM
#1
segnosaur avatar

segnosaur

New Zenner

Join Date:
Oct 2007
Posts:
19
Plugin Contributions:
0

Clone/Create new Shipping by Weight module problem

Hope this question isn't too, ahem, simplistic here...

I'm trying to create a new shipping module where shipping costs are determined by weight. (Basically, we want to have 2 'by weight' tables... one for airmail and one for surface mail).

After doing a search through the FAQs and the forum, the closest I found to telling me how to clone an existing module was here: http://www.zen-cart.com/forum/showthread.php?t=41751

So, I took an existing php shipping module (and the language files) and made copies. I also edited the names of the module. However, a couple of small problems have come up:

  • When I go to admin->modules->shipping, the new module shows up as blank
  • When I try to install the module I get the following error: Passed variable is not an array or object in C:\Inetpub\wwwroot\zen\admin\modules.php on line 279

Is there something I've missed? Or better yet, is there any other documentation about how to create/clone shipping modules that I've overlooked? Or does anyone have a better way to go about things?

Thanks in advance.