Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2006
    Posts
    9
    Plugin Contributions
    0

    help question where are the functions in a module called?

    Hello!

    I am changing a 3rd party module to fit my needs, and I am having some progress.

    However I still haven't figured out when and where zen cart calls the functions that I am working....

    I am under the impression that every module has to have an "install()" function, in order to be shown in the admin screen.

    However besides that I have no clue on how zen cart does its magic.

    Is this documented somewhere? I checked the tutorials and wiki, but couldnt find anything. I think this goes beyond the override mechanism. Do I really need to hunt through all the files to try to understand what is going on??

  2. #2
    Join Date
    Jan 2004
    Posts
    58,262
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: where are the functions in a module called?

    What kind of module are you working on ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Sep 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: where are the functions in a module called?

    a module under "Order Total".

    Actually I am adjusting the "Quantity Discount" module http://www.thatsoftwareguy.com/zenca...discounts.html
    to better suit my requirements.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,262
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: where are the functions in a module called?

    Okay -- what specific problems are you encountering ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Sep 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: where are the functions in a module called?

    So far not many problems after I started doing some logging for debug.

    The only thing is it is not clear to me at which moment is this module called.... is there an instruction on the "install()" function that specifies that?

    Basically I wanted to understand more about modules to avoid doing dirty hacks and maybe creating my own in the future. Do you know if there is documentation on that or are developers basically on their own to figure everything out?

    Thanks!

  6. #6
    Join Date
    Jan 2004
    Posts
    58,262
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: where are the functions in a module called?

    The install() function is only called when you click the "install" button in the admin area where your module is listed.

    Sorry, there is no documentation published for how to write a module.

    There are developer references in the wiki for a number of things, and some program-flow docs in the downloads section for reference.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  7. #7
    Join Date
    Sep 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: where are the functions in a module called?

    well, its a start......

    thanks!

 

 

Similar Threads

  1. Ceon Manual/Offline Card Payment Module v1.0.0!
    By conor in forum Addon Payment Modules
    Replies: 117
    Last Post: 27 Feb 2009, 10:04 PM
  2. CURL functions not found - required for Linkpoint API payment module
    By raino in forum Managing Customers and Orders
    Replies: 1
    Last Post: 2 Dec 2006, 04:19 PM
  3. Functions used in ot_gv.php??
    By zerocool in forum General Questions
    Replies: 0
    Last Post: 22 Nov 2006, 02:48 AM
  4. Trying To Add Credit Card Module!!
    By newyorkcustomgolf in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 17 Sep 2006, 12:21 AM

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
  •