Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    31
    Plugin Contributions
    0

    help question admin/includes/boxes elimination in 1.5.x

    Following swguy's hint about the elimination of [FONT="Courier New"]admin/includes/boxes[/FONT] in 1.5.x (and the associated *_dhtml.php files), I compared email_archive_manager_1-6 to email_archive_manager_17_zc1-5 and the only substantial difference I found was the mapping of email_history_tools_dhtml.php:

    Code:
    $za_contents[] = array('text' => BOX_CUSTOMERS_EMAIL_HISTORY, 'link' => zen_href_link(FILENAME_EMAIL_HISTORY, '', 'NONSSL'));
    to email_archive.sql:

    Code:
    INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('emailArchive', 'BOX_TOOLS_EMAIL_ARCHIVE_MANAGER', 'FILENAME_EMAIL_HISTORY', '', 'tools', 'Y', 999);
    When trying to migrate a module like the Downloadable Product Licensing and Subscriptions Module I can probably figure out how to map "$za_contents[]" to "INSERT INTO admin_pages" using the example above.

    But unfortunately the Downloadable Product Licensing and Subscriptions Module is more complex than that Email Archive Manager example and so I am not sure how I can port/map the rest of the code to .sql.

    Where can I find more information about the inner workings of the migration from the 1.3.x admin boxes to the 1.5.x ones?

  2. #2
    Join Date
    Dec 2010
    Posts
    31
    Plugin Contributions
    0

    Idea or Suggestion Re: admin/includes/boxes elimination in 1.5.x

    Trying to answer myself, based on my research so far:

    When comparing core files between product_licensing and zen-cart-v1.3.8a-full-fileset-12112007 (for which it was made), I can see that only only one admin/includes/boxes file is different: [FONT="Courier New"][FONT="Courier New"]customers_dhtml.php[/FONT][/FONT].

    In that file, only one line is added by the add-on:

    Code:
      $za_contents[] = array('text' => BOX_PRODUCT_LICENSES, 'link' => zen_href_link(FILENAME_PRODUCT_LICENSES, '', 'NONSSL'));
    Which makes it easier to map to 1.5.x's .sql:

    Code:
    INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('productLicensing', 'BOX_PRODUCT_LICENSES', 'FILENAME_PRODUCT_LICENSES', '', 'tools', 'Y', 999);
    Can you spot any mistake in the above?

    Is the above SQL line the only line that needs to be added into product_licenses.sql?

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: admin/includes/boxes elimination in 1.5.x

    The mod to which you refer isn't more complex, merely a bit messed up. I suspect the author didn't understand the naming conventions for extra boxes and so the attempt to add a menu item properly didn't work, hacked the customers box file instead, but included the non-functioning code in the release package too.

    Given this, your assessment is broadly correct. I haven't tested it, but see no reason why it shouldn't work, though you would probably want to use the "customers" menu key rather than "tools".
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. v139h contents of admin/includes/boxes = went where in 1.5.1
    By makenoiz in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 15 Oct 2012, 10:40 PM
  2. Problems with includes/config.php and admin/includes.php
    By Scott83 in forum Basic Configuration
    Replies: 2
    Last Post: 23 Oct 2009, 07:09 PM
  3. difference between \includes and \admin\includes
    By arnold931 in forum Basic Configuration
    Replies: 5
    Last Post: 27 Aug 2007, 01:55 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