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