Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Calling admin defined functions from catalog files?

    I have some functions in admin/functions/extra_functions that I'd like to call from catalog files instead of re-defining them again. Should I just "include" the files or ZC has some kind of support for that?

    Thank you,
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Calling admin defined functions from catalog files?

    Just copy the file to your catalog extra_functions folder.
    Or write a file to do the include yourself.
    It's not really wise to attempt to include admin files ... but rather the other way around.
    What happens if you rename your admin folder? Suddenly your store goes offline because it can't load the files that you forgot about.
    .

    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
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Calling admin defined functions from catalog files?

    So lets say I do it the other way around, I'll have to manually include the file from catalog extra_functions right?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Calling admin defined functions from catalog files?

    Yes .
    .

    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.

 

 

Similar Threads

  1. Calling the Link functions?
    By philip937 in forum General Questions
    Replies: 6
    Last Post: 21 Jan 2013, 02:37 PM
  2. /admin/includes/functions/general.php not in my files
    By suzijohn in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 9 Jan 2011, 11:32 PM
  3. calling a defined page via centerbox
    By Hemma in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Nov 2007, 05:29 AM
  4. Calling Functions - cart total in header
    By Chriz in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Jan 2007, 05:40 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