Instructions for Installing on osCommerce CE Phoenix and 2.3.4.(1) BS<
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.
OsCommerce Phoenix 1.0.x.x and 2.3.4BS community version. ALl versions from Gold to Phoenix
PHP 5.4 to 7.3 tested
Features
Easily and instantly add and remove Options and Option Values. No page refreshes required
Easily add and remove attributes to a product on the product addition page. No page refreshes required
Optional Instant Database Update for product attributes. No page refreshes required
Attribute "templates" - Predefined "Attribute Sets" with quick load
Downloads Support
Multilingual support
Optional Features
Sort order on attributes values. In Order to make the sort order work on the frontpage, you have to edit the product_info.php page on the frontpage and change. (http://addons.oscommerce.com/info/1822)
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.
1) Copy the attribute Manager Directory and all of it's contents into your admin directory.
(Your file structure should look like this /admin/attributeManager/)
2) Open admin/categories.php
2.1) Again in admin/categories.php
3) Open admin/includes/templates_top.php
3.1) Again in admin/includes/templates_top.php
Finished !
---> Go and add or edit a product and you should see the new attribute manager below the price.
Additonal Notes for other contribution compatability
(Only needed if you have any of the following contributions installed)
2) Open admin/attributeManager/classes/attributeManagerConfig.class.php
Change the column name to whatever your sort column is called on each of your database tables
now add the fields you just changed in
attributeMangagerConfig.class.php (products_options_sort_order)...
If you are using CE Phoenix or CE Frozen or another EDGE version with modularized product_info.php, upload and replace:
catalog (compare files for [your store version])/includes/modules/content/product_info/cm_pi_options_attributes.php
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.
- 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