io sono incapace
mi date una mano?
la cotrib e "minishop"
devo far sparire le categorie che non appartengono al minishop in questione
query originale in boxes/categories:
questa e' invece una query che ho preso dalla pagina allcategorie.php e che funge$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");
qualche santo mi riesce a fare la query giusta per il box?//bkm 2003/08/05 mini-store added next line
if (GLOBAL_CURRENT_STORE_NAME == '') {
$categories_query = tep_db_query("SELECT categories_id, categories_name FROM " . TABLE_CATEGORIES_DESCRIPTION . " WHERE language_id = $this_language_id ORDER BY categories_name");
//bkm 2003/08/05 mini-store begin add
} else {
$categories_query = tep_db_query("SELECT cd.categories_id, categories_name FROM " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_CATEGORIES_STORES . " cs WHERE language_id = $this_language_id and cd.categories_id = cs.categories_id and cs.categories_storename = '" . GLOBAL_CURRENT_STORE_NAME . "' ORDER BY categories_name");
}
//bkm 2003/08/05 mini-store end add