Zen Cart Logo
Forums / Upgrading to 1.5.x / Addons / modules not visable in admin

Addons / modules not visable in admin

Views: 6,329

Results 1 to 20 of 25
11 Jan 2012, 9:57 AM
#1
purpleskybv avatar

purpleskybv

New Zenner

Join Date:
Oct 2011
Posts:
3
Plugin Contributions:
0

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.

11 Jan 2012, 9:59 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

11 Jan 2012, 4:01 PM
#3
purpleskybv avatar

purpleskybv

New Zenner

Join Date:
Oct 2011
Posts:
3
Plugin Contributions:
0

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

11 Jan 2012, 4:30 PM
#4
hottrendz avatar

hottrendz

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

11 Jan 2012, 6:33 PM
#5
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

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.

12 Jan 2012, 7:26 AM
#6
purpleskybv avatar

purpleskybv

New Zenner

Join Date:
Oct 2011
Posts:
3
Plugin Contributions:
0

Re: Addons / modules not visable in admin

Hi hottrendz for Related Products I used:

<?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);
    }
}
?>
12 Jan 2012, 6:09 PM
#7
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

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?

17 Jan 2012, 1:44 AM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Addons / modules not visable in admin

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

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.

17 Jan 2012, 2:08 AM
#9
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

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:

17 Jan 2012, 2:19 AM
#10
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Addons / modules not visable in admin

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

17 Jan 2012, 2:30 AM
#11
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Addons / modules not visable in admin

True -> however - getting a programmer to understand 1.5 and upgrading the modules I'm sure is going to be a lot of money. Have any suggestions of who to get in touch with the right people who know 1.5 and could perform the upgrades? I've tried contacting the authors of some of my add-ons and so far I've not had any responses :cry:

17 Jan 2012, 3:04 AM
#12
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Addons / modules not visable in admin

jfreeman:

True -> however - getting a programmer to understand 1.5 and upgrading the modules I'm sure is going to be a lot of money. Have any suggestions of who to get in touch with the right people who know 1.5 and could perform the upgrades? I've tried contacting the authors of some of my add-ons and so far I've not had any responses :cry:It's an investment and IMHO the cost of doing business.. Can't always rely on free add-ons as some authors come and go.. Life happens, folks get busy,, and frankly folks update things when their free time allows if the spirit so moves them. So if your site is your livelihood, it makes sense to invest money into getting your updates versus waiting for every last free add-on you rely on to be updated.. (Especially those add-ons that have not been updated in YEARS.. they may not be upgraded for v1.5 for a while.. if ever unless someone decides to "own" it..)

17 Jan 2012, 4:10 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Addons / modules not visable in admin

jfreeman:

I suggest those affected roll back to the previous version until the needed add-on's are upgraded. :frusty:
There's nothing to "roll back" if you're properly building your upgraded site in a TEMPORARY space.

17 Jan 2012, 3:22 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Addons / modules not visable in admin

Very true:) Anyone who has this problem has not been following the repeated instructions to test the upgrade first before doing it on your live site.

Also, before starting upgrades you should check on all of your important mods to see if they are reported to be working with v1.5.0. (see the sticky thread Confirmed working mods in Zen Cart 1.5 at the top of this subforum).

17 Jan 2012, 7:49 PM
#15
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Addons / modules not visable in admin

Also, before starting upgrades you should check on all of your important mods to see if they are reported to be working with v1.5.0.

Yep. This is why I haven't moved my live sites to 1.5 yet. There's one mod that is critical that needs to be updated. The other mods I use all test out fine. Either the old versions already worked, or the authors have updated.

18 Jan 2012, 10:19 PM
#16
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Addons / modules not visable in admin

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.

@Dr. Byte
Just so I fully understand. Really for a mod for 1.5 -
-- the admin pages table needs to be populated as discussed in a few other threads.
-- get parameters should be avoided as much as possible especially for any data that effects database changes.
-- all data needs to be sanitised

Are there any other rules that need to be done in the 'several more things' list?

18 Jan 2012, 10:34 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Addons / modules not visable in admin

I don't think you need to avoid GET parameters when fetching info for display to the customer; it's only when saving the info to the db in some way that they are risky.

18 Jan 2012, 10:53 PM
#18
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Addons / modules not visable in admin

Absolutely, that was my understanding too . In that things like filters were still acceptable.

But at the same time, I can't see why one would not code those out of existence too for consistency's sake, I mean to say that the advantages of using a get parameter are less important in admin anyway. I can't really imagine a situation where send a filter by post would be a disadvantage if handled correctly, for example.

I guess I am coming at this a bit from the angle of writing new stuff rather than updating old things but ...

27 Jan 2012, 4:26 PM
#19
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Addons / modules not visable in admin

DivaVocals:

It's an investment and IMHO the cost of doing business.. Can't always rely on free add-ons as some authors come and go.. Life happens, folks get busy,, and frankly folks update things when their free time allows if the spirit so moves them. So if your site is your livelihood, it makes sense to invest money into getting your updates versus waiting for every last free add-on you rely on to be updated.. (Especially those add-ons that have not been updated in YEARS.. they may not be upgraded for v1.5 for a while.. if ever unless someone decides to "own" it..)

I agree 100% :yes:

15 Feb 2012, 4:05 PM
#20
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Addons / modules not visable in admin

DivaVocals:

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

DivaVocals obviously wants you to pay her/him to do these things rather than allow others to learn how to write the code or allow others in these forums to teach each other how to write the code. :no:

She/he also assumes that we are doing this on a live site. :no:Bonkers...I am trying this on a test site...if the funtionality works then maybe it can be added to the original mod and submitted for approval....and then people can contribute their own time and there will be more people out there to make contributions.:clap: