superprg Posted January 7, 2011 Share Posted January 7, 2011 Not able to find any function which would return category id for a product idI do see the class file Category.php but no luck Link to comment Share on other sites More sharing options...
otzy Posted January 7, 2011 Share Posted January 7, 2011 select id_category from ps_category_product where id_product=blablablaunionselect id_category_default from ps_product where id_product=blablabla Link to comment Share on other sites More sharing options...
superprg Posted January 7, 2011 Author Share Posted January 7, 2011 I know from dataabaseI meant from classes Link to comment Share on other sites More sharing options...
otzy Posted January 7, 2011 Share Posted January 7, 2011 Product::getIndexedCategories($id_product) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now