Hi all,
I had a problem where I was not able to add products to other stores if a product was duplicated (copy) to other categories, through the 'add to store' button in a category and selected the enable / disable option.
it seems that for some reason in categories.php (admin) round line 370
$check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$key . "' and categories_id not in (" . $category_ids . ")");
$check = tep_db_fetch_array($check_query);
if ($check['total'] < '1') {
$products_add[$key] = $key;
}
was the issue.
I have changed the code to:
$products_add[$key] = $key;
and now I am able to enable products in sub categories for different stores.
just for info.
Boudy