AJAX Attribute Manager - v3.3.5. CE

Instructions for Installing on osCommerce CE Phoenix 1.0.7.14+

The idea of this contribution is to make the administration of product options, option values and attributes much quicker and easier.

It uses a technology known as AJAX (Asynchronous JavaScript And XML). This enables us to do is make page sub-reqests without refreshing a page.
In this case, it enables us to make a attribute manager that sits on the product addition page. From which, you can do everything (ish - see notes) that the product attributes page does but in a much more convenient and tidy way.









System Requirements

All the normal Phoenix requirements, plus ...

Features


Optional Features


Future Additions (to-do list)


Notes


Support


Contact Details

 

 

Install Instructions

Note: if you are upgrading from a previous version you must OVERWRITE all files in the attributeManager directory. The best way is to delete the whole folder then add the new one.
If you were using attributes/options sort order from previous versions, read and follow the detailed Update Instructions.

1) Copy the admin/attribute Manager Directory and the includes/hooks/admin directory and all of it's contents into your store directory.
(Your file structure should look like this /admin/attributeManager/)
and:
includes/hooks/admin/categories/ajaxAttribManager.php
includes/hooks/admin/siteWide/ajaxAttrManager.php


Product based Attributes Values sort order support

If you wish to use a product based sort order for Attribute values like in older Attributes Manager-Sort order, you need to modify the queries in the product info options attributes modules.

Change in includes/modules/pi/product_info/pi_options_attributes.php line 68:
order by pov.sort_order
to:
order by pa.sort_order

or

Change in includes/modules/content/product_info/cm_pi_options_attributes.php line 44:
order by pov.sort_order
to:
order by pa.sort_order

Finished !

---> Go and add or edit a product and you should see the new attribute manager tab.

 

 

Additonal Notes for other contribution compatability

(Only needed if you have any of the following contributions installed)

 

 

- Instructions for More Product Weight plugin

1) If you haven't installed the More Product Weight plugin contrib then you should install that one first: http://addons.oscommerce.com/info/2706

2) Open admin/attributeManager/classes/attributeManagerConfig.class.php
Find (Around line 78)
        /**
         * Use More Product Weight plugin? (http://addons.oscommerce.com/info/2706) (added by RusNN)
         */
        $this->add('AM_USE_MPW', false);
Change from false to true if you want to use this functionality
        /**
         * Use More Product Weight plugin? (http://addons.oscommerce.com/info/2706) (added by RusNN)
         */
        $this->add('AM_USE_MPW', true);

 

 

- Instructions for Options Images BS plugin (version 1.5 or higher required)

1) If you haven't installed the Options Images BS plugin contrib then you should install that one first: https://apps.oscommerce.com/ijmp8&options-images-bs

2) Open admin/attributeManager/classes/attributeManagerConfig.class.php

NOTE:
- Options images are displayed both, Products Options Images and Options Value Images
- Only Products Options Images can be added, edited or deleted in Ajax Attribute Manager
- No image file uploads, images need to be uploaded apart (via ftp or the core attributes page) and image filenames need to be introduced like for download files.


Find (Around line 89)
        /**
         * Use Options Images plugin? (https://apps.oscommerce.com/ijmp8&options-images-bs) (added by @raiwa)
         */
        $this->add('AM_USE_IMAGE', false);
        
Change from false to true if you want to use this functionality
        /**
         * Use More Product Weight plugin? (http://addons.oscommerce.com/info/2706) (added by RusNN)
         */
        $this->add('AM_USE_IMAGE', true);

 

 

- Instructions to add Extra Fields

There is loads of contribution available for the attribute functionality. Each add different columns to the database and have different way of managing their update. If you want to add extra field to the Ajax Attribute Manager, to handle database values contained in the product_attributes tables, it is quiet easy to do. File to be changed are as follow:
attributeManager.php for the display of the new field and the insert and update action trigger (around line 196 & 271)
attributeManager.class.php (around line 457)
attributeManagerAtomic.class.php (around line 70, 150, 170)
attributeManagerInstant.class.php (around line 70, 133, 173)
attributeManagerUpdateAtomic.inc.php (around line 30)
attributeManager.js (around line 85, 106, 110)
Search for the "price" string and simply mimic the mechanism used for this field, you can also check the way sort order was added