Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    49
    Plugin Contributions
    0

    Default How to create a shipping module

    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!

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: How to create a contribution?

    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

  3. #3
    Join Date
    Aug 2005
    Posts
    49
    Plugin Contributions
    0

    Default Re: How to create a contribution?

    Quote Originally Posted 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
    Thanks for the info, that doesn't sound too bad. Do most shipping modules use a similar API or something?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to create a shipping module

    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.p...pers_-_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.

  5. #5
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: How to create a shipping module

    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

 

 

Similar Threads

  1. Create copy of store pickup shipping module?
    By valvoj in forum Addon Shipping Modules
    Replies: 2
    Last Post: 11 Sep 2010, 12:45 AM
  2. how to create my own module?
    By myparis in forum General Questions
    Replies: 3
    Last Post: 18 Aug 2009, 08:59 PM
  3. How to create a payment module?
    By josedanielestrada in forum Addon Payment Modules
    Replies: 4
    Last Post: 15 Aug 2006, 05:08 PM
  4. How to create a module, contribution
    By styledata in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Aug 2006, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg