PDA

View Full Version : AJAX Attribute Manager



michael_s
01-18-2007, 11:12 PM
As suggested in the AJAX support forum, use this version if AJAX Attribute Manager v2.3c - beta is not working for you. The 2.3b also have a problem but this bugfix correct the problem in "attributeManagerAtomic.class.php" like suggested in the forum:

http://forums.oscommerce.com/index.php?showtopic=195959&hl=attributeManagerAtomic&st=260#

to fix you have to edit attributeManagerclassesattributeManagerAtomic.clas s.php

Line 139:

Find:

// QT pro
/**
* Updates the quantity on the products stock table
* @access public
* @author Phocea
* @param $get $_GET
* @return void
*/
function AddStockToProduct($get) {
customprompt();
$this->getAndPrepare('stockQuantity',$get,$stockQuantity) ;
//$this->getAndPrepare('option_id', $get, $optionId);
//$this->getAndPrepare('option_value_id', $get, $optionValueId);
//$this->getAndPrepare('price', $get, $price);
//$this->getAndPrepare('prefix', $get, $prefix);
//$this->getAndPrepare('sortOrder', $get, $sortOrder);

$this->arrSessionVar[] = array(
'product_stock_quantity' => $productStockQuantity
);
}
}

// QT pro


And replace:

// QT pro
/**
* Updates the quantity on the products stock table
* @access public
* @author Phocea
* @param $get $_GET
* @return void
*/
function AddStockToProduct($get) {
customprompt();
$this->getAndPrepare('stockQuantity',$get,$stockQuantity) ;
//$this->getAndPrepare('option_id', $get, $optionId);
//$this->getAndPrepare('option_value_id', $get, $optionValueId);
//$this->getAndPrepare('price', $get, $price);
//$this->getAndPrepare('prefix', $get, $prefix);
//$this->getAndPrepare('sortOrder', $get, $sortOrder);

$this->arrSessionVar[] = array(
'product_stock_quantity' => $productStockQuantity
);

}

// QT pro


Find: on the end file

?>


And replace:

}
?>


You should see on the end of the file something like this:

if (AM_USE_SORT_ORDER) {
$this->arrAllProductOptionsAndValues[$optionsId]['values'][$res['options_values_id']]['sortOrder'] = $res[AM_FIELD_OPTION_VALUE_SORT_ORDER];
}
}
}
return $this->arrAllProductOptionsAndValues;
}

}
?>

More... (http://www.oscommerce.com/community/contributions,4063)