khubbaib Posted February 2, 2016 Share Posted February 2, 2016 Hello every one,, I am Developing Web services for APPLE app. Shop is developed in Prestashop i found the webservices provided by the prestashop but its different which i need.... I basically need to get the top level categories in ne call and then get the category id and retirn the sub categories belongs to that category... i could not find any column which tells its main category my query always return all categories... Here is an example Main Categories http://imgur.com/m0q2G4j Sub categories http://imgur.com/ahTuBj9 Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 3, 2016 Share Posted February 3, 2016 Check ps_category table in database, If id_parent==0 it means, it is top level category. Link to comment Share on other sites More sharing options...
khubbaib Posted February 3, 2016 Author Share Posted February 3, 2016 I got it the id_parent 2 mean its parent category issue resolved Thanks 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