Hello Gerome,
I have added all my products through Easy Populate. I don't know of another module that would do that. The thing is that when I add all my products with this module the master_categories_id is not populated so I run into problems with listing my products.
I found a quick fix though. in the cat_filter.php function I changed line 90 with the following code:
PHP Code:
$sql = substr($sql,0,$add_pos).
" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
ON (p.master_categories_id = cd.categories_id
AND cd.language_id=".$_SESSION['languages_id']."
AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
substr($sql,$add_pos);
to this:
PHP Code:
if(preg_match("/from zc_products_description pd, zc_products p left join zc_manufacturers m on p.manufacturers_id = m.manufacturers_id, zc_products_to_categories p2c left join zc_specials s on p2c.products_id = s.products_id/",$sql))
{
$sql = substr($sql,0,$add_pos).
" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
ON (cd.categories_id = p2c.categories_id
AND cd.language_id=".$_SESSION['languages_id']."
AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
substr($sql,$add_pos);
} else {
$sql = substr($sql,0,$add_pos).
" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
ON (p.master_categories_id = cd.categories_id
AND cd.language_id=".$_SESSION['languages_id']."
AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
substr($sql,$add_pos);
}
I just made it to check after the products_to_categories table instead of the products.master_categories_id field. It has solved the problem for me for now. The problem that I should really solve is the one with EP but that is in the future.
I hope that this helps someone.
God bless. Amazing Discoveries.
Bookmarks