Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default When To Use zc_plugins Encapsulated Folder

    Do I put my catalog modifications in my cloned Bootstrap template, which is under htdocs>website>includes

    Or do I put my modified pages in htdocs>website>zc_plugins>catalog>includes...like the Zencart help files indicate?

    I have a working admin plugin that I added to zc_plugins under 1.5.7, so I have a good understanding of the admin part of encapsulated plugins.

    The zc_plugins encapsulated plugins help files are not as helpful for the catalog side versus the admin side (or I just have not found what I need after weeks of reading).

    I am leaning towards just modifying the cloned Bootstrap template but that seems counter intuitive after reading the help files.

    Should I have moved my cloned Bootstrap to the zc_plugins folder structure?

    Please, point me in the right direction.

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: When To Use zc_plugins Encapsulated Folder

    zc_plugins folder is for admin plugins only at this time.
    https://docs.zen-cart.com/dev/plugin...lated_plugins/

    If you're just making a change to a page for the storefront, put it under includes as before.
    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.

  3. #3
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: When To Use zc_plugins Encapsulated Folder

    Quote Originally Posted by swguy View Post
    zc_plugins folder is for admin plugins only at this time.
    https://docs.zen-cart.com/dev/plugin...lated_plugins/

    If you're just making a change to a page for the storefront, put it under includes as before.
    Thanks.

    So, zc_plugins>catalog>includes is not ready to use? Dead?

  4. #4
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: When To Use zc_plugins Encapsulated Folder

    The help files need to be fixed...note the bold in the quote from the help page.

    Encapsulated Plugins
    A new architecture for writing plugins
    The help files need to be fixed...note the bold in the quote.

    In Zen Cart v1.5.7, a Plugin Manager was added to begin allowing support for Admin-Only plugins using the new architecture.

    The plugin architecture allows plugins to be encapsulated into a hierarchical directory structure that mimics the Zen Cart directory structure.

    So plugin files no longer need to be placed within the disparate Zen Cart core directories, but rather exist in directories below a zc_plugins directory.

    A new plugin manager page allows for the plugin to be installed/un-installed and enabled/disabled.

    NOTE: At the moment plugins only work for admin side code. Plugins for catalog will be introduced in Zen Cart v1.5.8

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: When To Use zc_plugins Encapsulated Folder

    Yes, that's on my list of things to do. It obviously didn't make it into 1.5.8.
    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.

  6. #6
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: When To Use zc_plugins Encapsulated Folder

    Are the plug_in catalog folders for 1.5.8a working for the catalog now?

    I'm about half way into updating my catalog changes from 1.5.7d to 1.5.8a...then remembered that the new plug-in system was supposed to be introduced in 1.5.8.

    I read the help files but couldn't find anything.

    Also, in the help files, it says the file structure is zc_plugins/plug_in name/version/catalog/includes/...

    I'm betting that is incorrect and that the includes folder should be under the version folder along with admin.

    Please correct me if I'm wrong.

    Thanks.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: When To Use zc_plugins Encapsulated Folder

    > Also, in the help files, it says the file structure is zc_plugins/plug_in name/version/catalog/includes/...

    Would you please give me the URL you are looking at?

    There is no support for catalog side encapsulated functions in 1.5.8/1.5.8a/2.0.0.
    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.

  8. #8
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: When To Use zc_plugins Encapsulated Folder

    https://docs.zen-cart.com/dev/plugin...ory_structure/

    Maybe a note in the help files would be helpful to others...to indicate not to use the includes folder in the plug-ins until an announcement is made for using it.

    I'll let you know if I find any other references to using the includes folder in the help files.

    Thanks.

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: When To Use zc_plugins Encapsulated Folder

    Ah ok got it.

    There is a note at the bottom of the page saying

    NOTE: While these examples mention the catalog subdirectory, Zen Cart v1.5.7 only supports admin-side plugins at this time.

    (I'm going to remove the "1.5.7" because it's true for all versions at this point.)
    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.

  10. #10
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: When To Use zc_plugins Encapsulated Folder

    Thanks.

 

 

Similar Threads

  1. Encapsulated Plugins - Payment modules
    By niccol in forum Code Collaboration
    Replies: 2
    Last Post: 2 Feb 2022, 09:47 PM
  2. v157 zc_plugins and new SQL Table
    By brittainmark in forum Bug Reports
    Replies: 7
    Last Post: 8 Aug 2021, 04:59 PM
  3. v157 Encapsulated Plugins
    By niccol in forum Bug Reports
    Replies: 6
    Last Post: 22 Jul 2021, 05:53 PM
  4. v157 zc_plugins and observers
    By brittainmark in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Apr 2021, 04:24 PM
  5. v157 encapsulated plugins require question....
    By carlwhat in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 13 Oct 2020, 12:22 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