Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    3
    Plugin Contributions
    0

    Default Addons / modules not visable in admin

    Hi all,

    I have upgraded my site from Zen Cart version 1.3.9h to 1.5.0 but non of the addons are showing up in admin.
    But somehow they seems to be working. For example simple seo url works the urls are seo but it's showing up in admin while in version 1.3.9h it showed under Configuration.

    I have this problem with all my addons. Here is a list of addons I am using.
    - Simple SEO Url
    - Related Products
    - Export Shipping Information
    - Products Profitmargin calculator report (This one is showing the prices under the articles but the rapport is showing under rapports)

    So they are working but doesn't add the controls to admin/configuration.

    Does anyone have a solution for this problem?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Addons / modules not visable in admin

    The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
    There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
    So, merely adding menu options isn't sufficient for all addons.
    .

    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 2011
    Posts
    3
    Plugin Contributions
    0

    xhtml problem Re: Addons / modules not visable in admin

    For those who want an answer.

    Add in admin -> includes -> functions -> extra_functions a file named init_[addonname].php

    PHP Code:
    <?php
    if (!defined('IS_ADMIN_FLAG')) {
        die(
    'Illegal Access');


    if (
    function_exists('zen_register_admin_page')) {
        if (!
    zen_page_key_exists('Addonname')) {
             
    zen_register_admin_page('Addonname''BOX_ADDON',
                
    'FILENAME_ADDON','' 'configuration''Y'20);
        } 

        
    }

    ?>
    Get the right values for BOX_ADDON and FILENAME_ADDON out of admin -> includes -> boxes -> extra_boxes -> addon_dhtml.php

    Between the '' you can place page params if needed

    You can change configuration to any menu item you want your addon to appear under.

    The Y is to say it must be visable in the menu

    The 20 can be every number and is to define the position in the menu

  4. #4
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Addons / modules not visable in admin

    Hello, Im having the same issues with the 3rd parity addons in version 1.5. The addons I am trying to install are email address exporter, newletter subscribe 2.2.2 and simple google analytics. Can I have an example of code for a file named init_[addonname].php

  5. #5
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Addons / modules not visable in admin

    I think I'd be waiting for the module authors to update the code and for the approved versions to be added to downloads, rather than hacking it up.

  6. #6
    Join Date
    Oct 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Addons / modules not visable in admin

    Hi hottrendz for Related Products I used:

    PHP Code:
    <?php
    if (!defined('IS_ADMIN_FLAG')) {
        die(
    'Illegal Access');
    }

    if (
    function_exists('zen_register_admin_page')) {
        if (!
    zen_page_key_exists('Related Products')) {
            
    // Add the link to the Related Products Mapping Config Utility
            
    zen_register_admin_page('Related Products''BOX_CATALOG_RELATED_PRODUCTS',
                
    'FILENAME_RELATED_PRODUCTS_SELECT''''catalog''Y'20);
        }
    }
    ?>

  7. #7
    Join Date
    Apr 2013
    Location
    New York
    Posts
    7
    Plugin Contributions
    0

    Default Re: Addons / modules not visable in admin

    what if a mod has several menu items?
    I tried this, does work but needed 4 files, now I get little errors like

    Cannot send session cache limiter - headers already sent by some file
    or
    PHP Warning: Cannot modify header information - headers already sent by some file

    and of course a blank page now and then but the mod does work if you go back to look any changes you made are there



    Quote Originally Posted by purpleskybv View Post
    For those who want an answer.

    Add in admin -> includes -> functions -> extra_functions a file named init_[addonname].php

    PHP Code:
    <?php
    if (!defined('IS_ADMIN_FLAG')) {
        die(
    'Illegal Access');


    if (
    function_exists('zen_register_admin_page')) {
        if (!
    zen_page_key_exists('Addonname')) {
             
    zen_register_admin_page('Addonname''BOX_ADDON',
                
    'FILENAME_ADDON','' 'configuration''Y'20);
        } 

        
    }

    ?>
    Get the right values for BOX_ADDON and FILENAME_ADDON out of admin -> includes -> boxes -> extra_boxes -> addon_dhtml.php

    Between the '' you can place page params if needed

    You can change configuration to any menu item you want your addon to appear under.

    The Y is to say it must be visable in the menu

    The 20 can be every number and is to define the position in the menu

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Addons / modules not visable in admin

    Quote Originally Posted by AndyIII View Post
    now I get little errors like

    Cannot send session cache limiter - headers already sent by some file
    or
    PHP Warning: Cannot modify header information - headers already sent by some file

    and of course a blank page
    Those are caused by PHP errors, which are logged in the /logs/ folder as explained here: http://www.zen-cart.com/content.php?124-blank-page
    Read the logs, see the errors, look up the error messages and fix their causes. The FAQs area on this site are a good starting point. Sounds like you're outputting data prematurely, even if it's only blank spaces.
    .

    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.

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Addons / modules not visable in admin

    Did everyone in this thread ignore/miss this????

    Quote Originally Posted by DrByte View Post
    The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
    There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
    So, merely adding menu options isn't sufficient for all addons.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Apr 2010
    Location
    Sutton, MA
    Posts
    150
    Plugin Contributions
    0

    Idea or Suggestion Re: Addons / modules not visable in admin

    I guess the only thing left to say is - we're screwed until the needed add-on's are modified for 1.5. For those of us who aren't programmers are left stranded with functionality not working and our business information suffering. I suggest those affected roll back to the previous version until the needed add-on's are upgraded.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Addons, modules and overhauls?
    By Nick_Djinn in forum General Questions
    Replies: 1
    Last Post: 31 Jan 2011, 07:34 AM
  2. Most popular addons / modules
    By Quimbly in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 9 Apr 2010, 02:29 AM
  3. Question: any commercial bundle of modules and addons for zencart?
    By ky3bka in forum Addon Shipping Modules
    Replies: 1
    Last Post: 16 Oct 2008, 06:44 AM
  4. Navbar links are not fully visable
    By SteveCollins in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 May 2007, 06:01 AM

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