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...




LinkBack URL
About LinkBacks









Bookmarks