Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Attributs for certain languages


Recommended Posts

I have kind of a sticky problem here.


I need to have attributes only show up for cetain categories. i have taken the attributes query and made it a diffrent file so they would sort by attribut option ID. I can sort by language ok, but as soon as i add the category id query and try to sort by category it doesn't work


here is my Query


$categories_id_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id ");

$categories = tep_db_fetch_array($categories_id_query);


and here is the statement i am using,



if ($categories['categories_id'] == '21' && $languages_id['id'] =='1' ) require ('rings_uspf.php');

else if ($categories['categories_id'] == '21' && $languages_id['id'] =='4' ) require ('rings_frpf.php');

else require ('standard_pf.php');




any help would be appreciated.


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...