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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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.

  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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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
    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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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.

  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. Changing the 'Titles' of what Things Are Called?
    By uruharacosplay in forum Customization from the Admin
    Replies: 3
    Last Post: 27 Oct 2011, 03:08 PM
  2. Where are the product-specific reviews called?
    By lat9 in forum General Questions
    Replies: 0
    Last Post: 30 Sep 2009, 09:55 PM
  3. what file are the images called from for center
    By stevenlee in forum General Questions
    Replies: 2
    Last Post: 15 May 2009, 09:17 AM
  4. What are the template pieces called?
    By MamaT in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Nov 2008, 02:37 AM
  5. Where are reporting functions?
    By mlm2005 in forum General Questions
    Replies: 1
    Last Post: 17 Aug 2006, 01:06 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR