Super Globals Plus for Zen Cart 1.3.9, 1.5.0 through 1.5.5e

Version 1.6.4 by paulm, torvista and lat9

Current Support Thread at Zen Cart Forums: http://www.zen-cart.com/forum/showthread.php?p=429150

Copyright

Paul Mathot, Haarlem, the Netherlands, September 2007 (beterelektro.nl) :: lat9 (vinosdefrutastropicales.com), 2011-2017. Released under the Gnu General Public License (see included LICENSE.TXT)

What it does

Super Globals Plus is a developers' tool that makes evaluating variables easy. It produces a clear overview of the contents of strings, arrays, constants, objects, arrays within object, objects within arrays or whatever. Because the amount of information given by this tool was overwhelming to most new users of the Super Globals Plus script, version 1.24 and later only shows $_POST and $_SESSION by default.

Features:

Sample output

How to use it

After you have you have installed the plugin and logged into your store's admin, you will see the Configuration->Superglobals selection. Within that selection are the values that you can use to control the plugin's display.

Installation

There are no core-file overwrites for the catalog area in this plugin, but there are core-file admin changes. You should always backup your store's database and files prior to making any changes.

Note: The installation for Super Globals Plus, v1.6.3, has changed. The admin files that require update for this plugin have changed significantly starting with Zen Cart 1.5.5. As such, the installation is now dependent on the version of Zen Cart into which you're installing/upgrading this plugin!

Installation for Zen Cart 1.5.5

The admin-level core-file changes provided by this plugin use Zen Cart 1.5.5e as their change-basis.

  1. Rename the "YOUR_ADMIN" folder to match your secret admin folder's name, then merge this plugin's two core-files with the files currently installed in your store.
  2. Rename the "YOUR_TEMPLATE" folder to match your current storefront template's name, then merge this plugin's one template-override file with the file currently installed in your store.
  3. Log into your Zen Cart admin.
  4. Copy the plugin's files to your store's file-system:
    1. /includes/functions/extra_functions/superglobals.php
    2. /includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php (One change-block, at the very bottom of the file)
    3. /includes/templates/YOUR_TEMPLATE/css/stylesheet_superglobals.css
    4. /YOUR_ADMIN/index.php (Removed from this plugin, v1.6.2)
    5. /YOUR_ADMIN/includes/footer.php (One change-block, at the very bottom of the file)
    6. /YOUR_ADMIN/includes/stylesheet.css (One change-block, at the top of the file)
    7. /YOUR_ADMIN/includes/stylesheet_superglobals.css
    8. /YOUR_ADMIN/includes/functions/extra_functions/superglobals.php
    9. /YOUR_ADMIN/includes/languages/english/extra_definitions/superglobals.php
  5. Click the "Admin Home" link. After you've clicked that link, the plugin's auto-installer will run and the Configuration->Superglobals will be available.

If you also require the admin-level Super Globals to be available on your admin's home-page, you'll need to follow the instructions in Admin Home-Page Installation.

Installation for Zen Carts prior to 1.5.5

The admin-level core-file changes provided by this plugin use Zen Cart 1.5.5b as their change-basis and are not compatible with Zen Carts prior to 1.5.5.

  1. Rename the "YOUR_ADMIN" folder to match your secret admin folder's name.
  2. If you require the Super Globals display to be available admin-side, you'll need to make the following file-edits:
    1. /YOUR_ADMIN/includes/footer.php: Add the following code-block at the very bottom of the file:
    2. /YOUR_ADMIN/includes/stylesheet.css: Find the line that reads:

      @import url("index.css");/* including stylesheet for index.php */

      and add this line directly after that:

      @import url("stylesheet_superglobals.css");/* including stylesheet for superglobals display */
  3. Rename the "YOUR_TEMPLATE" folder to match your current storefront template's name, then merge this plugin's one template-override file with the file currently installed in your store. That single change-block is located at the very bottom of that file.
  4. Log into your Zen Cart admin.
  5. Copy the plugin's files to your store's file-system:
    1. /includes/functions/extra_functions/superglobals.php
    2. /includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php (One change-block, at the very bottom of the file)
    3. /includes/templates/YOUR_TEMPLATE/css/stylesheet_superglobals.css
    4. /YOUR_ADMIN/includes/footer.php (The version you updated at step 2.1)
    5. /YOUR_ADMIN/includes/stylesheet.css (The version you updated at step 2.2)
    6. /YOUR_ADMIN/includes/stylesheet_superglobals.css
    7. /YOUR_ADMIN/includes/functions/extra_functions/superglobals.php
    8. /YOUR_ADMIN/includes/languages/english/extra_definitions/superglobals.php
  6. Click the "Admin Home" link. After you've clicked that link, the plugin's auto-installer will run and the Configuration->Superglobals will be available.

If you also require the admin-level Super Globals to be available on your admin's home-page, you'll need to follow the instructions in Admin Home-Page Installation.

Admin Home-Page Installation

Starting with Zen Cart v1.5.5, the admin-console main-page display (/YOUR_ADMIN/index.php) changed significantly from previous versions. Rather than saddling this plugin with version-specific files to copy, if you want to have the benefits of the Super Globals display on that page, you'll need to perform a simple update to your copy of that file, adding the code block below to the very end of /YOUR_ADMIN/index.php — just before the </body> tag:

Un-install

Run either superglobals_remove.sql (for Zen Cart v1.5.0 or later) or superglobals_remove_139.sql (for Zen Cart v 1.3.9x) to remove the database entries, then delete the files you previously copied (replacing the admin core files that were overwritten).

Version History: