1.3.9h
To fix this search admin/easy_populate.php for
// remove product attribute options linked to this product before proceeding further
// this is useful for removing attributes linked to a product
Add the following
PHP Code:
//Updated 11-29-10 - Deletes Customer cart info relating to deleted product ids - MLL
$attributes_clean_query = "delete * from " . TABLE_PRODUCTS_ATTRIBUTES . "," . TABLE_CUSTOMERS_BASKET . "," . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$v_products_id . "' and options_id = '" . (int)$$v_attribute_options_id_var . "'";
ep_query($attributes_clean_query);
$attribute_options_query = "select products_options_name from " . TABLE_PRODUCTS_OPTIONS . " where products_options_id = '" . (int)$$v_attribute_options_id_var . "'";
$attribute_options_values = ep_query($attribute_options_query);
*****This will delete all customers current shopping carts, make sure no one is processing orders******
Disclaimer - If you didn't make a backup, it's your fault not mine
Bookmarks