This is a discussion on AJAX Attribute Manager within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Great Contibution! Thanks. Now the Problem which i had. When you dont have any Attributes, the AJAX Attribute Manager will ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Great Contibution! Thanks. Now the Problem which i had. When you dont have any Attributes, the AJAX Attribute Manager will NOT add the first Attribute to the product. After searching around i found out that this contrib have a problem if the products_options_values_id = 0 and/or products_options_id = 0 -> This is not a real Problem because the 2nd Attribute work fine, but the Attr. with the id's = 0 is not usable. So here is my workaround. 1) Open File attributeManager.class.php 2) Search (Line: 225): $id = amDB::getNextAutoValue(TABLE_PRODUCTS_OPTIONS,'pro ducts_options_id'); foreach($arrOptions as $option) { list($langId,$name) = explode(':',$option); Add Below: if ($id == 0){$id += 1;} 3) Search (Line: 267): $newId = amDB::getNextAutoValue(TABLE_PRODUCTS_OPTIONS_VALU ES,'products_options_values_id'); foreach($arrOptionValues as $optionValue) { list($langId,$name) = explode(':',$optionValue); Below Add: if ($newId == 0) { $newId += 1;} Finish! Hope i could help you and maybe there would be a bugfix in next release. Thanks for this great Contrib!!! More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AJAX Attribute Manager | michael_s | New osCommerce Contributions | 0 | 05-11-2007 12:11 PM |
| Ajax Attribute Manager | loganlw | osCMax v2 Customization/Mods | 3 | 03-30-2007 11:16 PM |
| AJAX Attribute Manager | michael_s | New osCommerce Contributions | 0 | 03-22-2007 03:12 PM |
| AJAX Attribute Manager | michael_s | New osCommerce Contributions | 0 | 03-18-2007 03:50 PM |
| AJAX Attribute Manager | michael_s | New osCommerce Contributions | 0 | 01-19-2007 12:12 AM |