Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2020
    Location
    India
    Posts
    3
    Plugin Contributions
    0

    Default Custom shipping modules develop from woo-commerce plugin

    i am trying to create custom module for shipping from shiprocket
    i have woocommerce, magento plugin/module of shiprocket.
    this is my first zencart ecommerce i cant understand how to convert these plugin to zencart modules
    i need to know actual workflow of shipping modules so i can create custom modules
    need help to solve this problem

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Custom shipping modules develop from woo-commerce plugin

    There are basically two "actions" taken by a module: if it is to be enabled, then either to report the possible options available by the module and any conditions available at the time (logged in, shipping address, package origin, cart contents, etc...) or secondly, if a method has been selected in the checkout process, to return the details of that selection as based on the data available which likely would also be the same information from above, but it is a good idea to allow the software to confirm that the option remains valid.

    As to work flow, in a standard Zen Cart install, there are generally two areas where shipping options are initially presented. From the shopping cart page (if set to either display on that page or by a popup window) and the checkout_shipping page (see includes/modules/pages/checkout_shipping/header_php.php for initial conditions and how things flow by selection of options from that page). Take a look at the action of the form that captures the options selected for shipping to identify where next to review for next action.

    Then there is the examples of other shipping modules, although they each implement different aspects. Some provide a single option, some offer multiple (UPS, USPS and Fedex modules come to mind).

    Central "processing" is controlled by the shipping class found in includes/classes.

    Hopefully that offers some ideas on approach to your problem. To get more assistance, perhaps more specific questions can be asked and/or code shared.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: Custom shipping modules develop from woo-commerce plugin

    The Zen Cart devs are in the process of restoring the documentation that describes the inner-workings of shipping modules. You can follow the PR here: https://github.com/zencart/documenta...ment-595776506 and I'll report back when the documentation is available on https://docs.zen-cart.com.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: Custom shipping modules develop from woo-commerce plugin

    Quote Originally Posted by lat9 View Post
    The Zen Cart devs are in the process of restoring the documentation that describes the inner-workings of shipping modules. You can follow the PR here: https://github.com/zencart/documenta...ment-595776506 and I'll report back when the documentation is available on https://docs.zen-cart.com.
    ... and here's that link: https://docs.zen-cart.com/dev/code/m...pping_modules/

    Thanks, DrByte and swguy!

 

 

Similar Threads

  1. v139h Moving to Woo Commerce can't find redirects
    By keress in forum General Questions
    Replies: 1
    Last Post: 21 Sep 2016, 11:27 PM
  2. Error prevents shipping modules from working
    By zgambitx in forum General Questions
    Replies: 2
    Last Post: 13 Nov 2008, 03:17 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR