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.
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.
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
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
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.
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);
}
}
?>
Re: Addons / modules not visable in admin
does it matter if the content of the box name and the related product be in upper or lower case. Also, does the file in admin/functions/extrafunctions/init_productname.php be in upper or lower case? I guess what I'm really asking is do I need to match cases of the filename and product within the .php file with the .php file name?
Re: Addons / modules not visable in admin
Did everyone in this thread ignore/miss this????
Quote:
Originally Posted by
DrByte
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.
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. :frusty:
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
jfreeman
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. :frusty:
or INVEST some money into paid assistance to upgrade the modules you need..