PDA

View Full Version : Alternative Attribute Handling



michael_s
09-14-2007, 10:21 AM
When updating or inserting rows the option_value_id is assumed by incrementation. This simple fix corrects this and reads the correct option_value_id from the database.

Updated file attached, or you can simply change the line given below.

Find the line (near 271):
------------------------------------------
while ($values = tep_db_fetch_array($values_query)) {
$rows ++;
------------------------------------------

Replace "$rows ++;" with the following:

------------------------------------------
$rows = $values[ "products_options_values_id" ];
------------------------------------------

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