To learn more about the Plugin Manager (a new 1.5.7 feature), and how to create plugins that work with it, please see
https://docs.zen-cart.com/dev/plugin...lated_plugins/
Remember, in v1.5.7 it only supports Admin plugins, not Catalog.
To learn more about the Plugin Manager (a new 1.5.7 feature), and how to create plugins that work with it, please see
https://docs.zen-cart.com/dev/plugin...lated_plugins/
Remember, in v1.5.7 it only supports Admin plugins, not Catalog.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
What's the best way to set a file path within the zc_plugins directory pathways!
This the old path,
New path works but is hard coded,Code:$blockmail = DIR_FS_CATALOG . $emailfile;
The more I look at it, I think soft coding the version folder is all I need to fix...Code:$blockmail = DIR_FS_CATALOG . '/zc_plugins/BlockEmailManager/v1.2.0/catalog/' . $emailfile;
Dave
Always forward thinking... Lost my mind!
What happens when you use the old path ?
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Dave
Always forward thinking... Lost my mind!
At this point the catalog-side functionality isn't fully implemented. But your use-case certainly raises an important feature. While rare, there is definitely a need to support files whose purpose is intended to be an actual endpoint for site visitors to hit. It doesn't do that yet. So in the meantime you can put the file there manually by hand or by some script.
If possible it may be beneficial to make it a .php file that acts as a handler (see other handlers in the webroot of zc core already, although I recommend much briefer, merely a proxy) to call the "actual" script located in the plugin's proper directory, which might be locatable using a global var/constant defined in the bootstrapping process (eg perhaps an extra_datafile for the plugin).
.
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.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks