If this is your first visit, check our documentation. To post, register or login.

How to create a shipping module

Locked

Started by skylarker on 7 Jun 2006, 7:00 PM · Views: 4,305

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
7 Jun 2006, 7:00 PM
#1
skylarker avatar

skylarker

New Zenner

Join Date:
Aug 2005
Posts:
45
Plugin Contributions:
0

Post #1 by skylarker

A client wants me to quote on creating a shipping module, and although I've had a fair amount of experience customizing ZC (both look/feel and functionality), I'm not sure where to start. Basically it's an option to ship with a trucking company that bases rates on a combination of weight and zip code, shouldn't be too hairy. But how do you create a contrib? The documentation I've found is pretty sketchy/nonexistent. Anyone able to give me some starting advice? Any thoughts on how long this development would take? Thanks loads!

8 Jun 2006, 8:35 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Post #2 by absolute

The best thing to do is to take a look at the existing modules, and then adapt them to your own needs. There a few shipping mods in the downloads section. I would suggest you download one of these packages, nd then you can see for yourself what is involved.

In terms of timescale, I normally allow about 4 hours for shipping and payment module creation. If this is your first, then if you are a fast learner I'd guess a day, if you need to go away and do a bit of class research for php, then possibly a little longer.

Good luck

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

12 Jun 2006, 10:58 PM
#3
skylarker avatar

skylarker

New Zenner

Join Date:
Aug 2005
Posts:
45
Plugin Contributions:
0

Post #3 by skylarker

Absolute:

The best thing to do is to take a look at the existing modules, and then adapt them to your own needs. There a few shipping mods in the downloads section. I would suggest you download one of these packages, nd then you can see for yourself what is involved.

In terms of timescale, I normally allow about 4 hours for shipping and payment module creation. If this is your first, then if you are a fast learner I'd guess a day, if you need to go away and do a bit of class research for php, then possibly a little longer.

Good luck

Absolute

Thanks for the info, that doesn't sound too bad. Do most shipping modules use a similar API or something?

13 Jun 2006, 5:54 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

The documentation isn't completed at the present time; however, the general layout is similar between each of them.
http://www.zen-cart.com/wiki/index.php/Developers_-_Modules

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Jun 2006, 2:50 PM
#5
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Post #5 by absolute

All of the shipping modules are classes. Each of these classes is similar, as they all have the same basic functions for returning the price, quotes etc. Obviously you are free to add your own functions, variables etc.

If you examine the way the current shipping modules work, and the expected return from each function, you can then write your own to follow the same pattern.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store