Installing the ShopAdmin add-on into osCommerce

Quick start

Installing the ShopAdmin add-on into osCommerce involves two essential steps:

  1. Download the zip file that you receive when you sign up, and unzip it into the admin folder of your osCommerce installation. This zip file is a package containing the following files:
    apsona_config.php
    apsona_dashboard.js
    apsona_functions.php
    apsona_index.php
    apsona_init_filters.sql
    apsona_init_reports.sql
    apsona_JSON.php
    apsona_svc.php
    

    All the files must be copied into your the admin folder of your osCommerce installation. This will set up ShopAdmin to be accessible via the URL apsona_index.php within your osCommerce system.

  2. Access the URL apsona_index.php instead of index.php within your admin area. For example, after you log in,
    if your store admin URL is

    http://my-store.com/catalog/admin/index.php

    then your ShopAdmin URL is

    http://my-store.com/catalog/admin/apsona_index.php

    The first time you access the ShopAdmin URL, the add-on tries to create a link to the ShopAdmin window in your Admin Tools menu. It does this by trying to modify the file catalog/admin/includes/boxes/tools.php. The add-on might not succeed in doing so, depending on the file’s permissions and whether or not the file has already been modified. After you have accessed the ShopAdmin URL once, you can inspect this file and manually add the link if needed.

Note also that, unlike with many other osCommerce add-ons, you do not need to run the SQL files included in the package. ShopAdmin automatically detects whether they need to be run, and runs them if necessary. This approach is intentional, so as to make the installation process as easy as possible.

Troubleshooting

Sometimes the host configuration or the shopping cart setup prevents Apsona ShopAdmin from operating correctly. Here are some common errors and how you might be able to fix them.

If none of these measures help, please contact us and we will gladly help get you going.

User-contributed comments

Brent from New Zealand contributed these comments to get ShopAdmin working with OsCommerce version 2.3.1:

Getting Apsona ShopAdmin to go when you have renamed your admin folder.

When you change your admin folder name, make the necessary changes in admin/includes/configure.php – pointing to your new admin folder name and uploading it should now go to your admin area.

catalog/XXXX/includes/configure.php

change code: present around lines 7 – 8 (YYYY – was my folder catalog was in – will be root for most).

define(‘DIR_WS_ADMIN’, ‘/YYYY/catalog/admin_444/’);
define(‘DIR_FS_ADMIN’, ‘/var/www/html/YYYY/catalog/admin_444/’);

change to this and upload:

define(‘DIR_WS_ADMIN’, ‘/YYYY/catalog/XXXX/’);
define(‘DIR_FS_ADMIN’, ‘/var/www/html/YYYY/catalog/XXXX/’);

####################### Example ########################################

http://www.yourdomain.com/catalog/XXXX/login.php

XXXX is your new admin folder name.

Select Tools and where you see Aspona ShopAdmin when you hover over it (I use firefox) it will show at the bottom of the window where the link wants to go to. Unfortunately it wants to go to catalog/admin/apsona_index.php – THIS IS WRONG!!

####################### How to fix ########################################

XXXX/includes/boxes/tools.php (XXXX is your newly named admin folder)

scroll down until you see this:

'<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');
}

replace with this and upload:

'<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a><br>' .
'<a href="http://www.yourdomain.com/YYYY/catalog/XXXX/apsona_index.php" target="_blank" title="Apsona ShopAdmin">Apsona ShopAdmin</a>');
}

####################### See it working ####################################

Go back to your Admin area (backend for oScommerce) and press F5 and go to tools again and select Aspona ShopAdmin.

It should now to go Aspona. If it doesn’t… again I use Firefox clear cookies and history via Tools/Options on the Firefox menu bar.