vhs666 Posted July 30, 2014 Share Posted July 30, 2014 Hello, I am new in prestashop and actually I am developing an application which should add menus as the category section does. I have a table called Menu_item, it should add children and parents. for Example: -Menu root - menu 1 -menu1.1 -menu1.2 -menu 2 -menu2.1 -menu2.1.1 but it is a bit difficult to understand that part in the category code, can you please help me? :S Link to comment Share on other sites More sharing options...
vekia Posted July 31, 2014 Share Posted July 31, 2014 i don't understand whar you exactly expect for what purposes you have Menu_item table ? what you want to store in that table? Link to comment Share on other sites More sharing options...
vhs666 Posted July 31, 2014 Author Share Posted July 31, 2014 what I am trying to do is a new Menu to create Menus, It is actually for a movil app, and one of the tables is the Menu_item with fields like: label, href, icon and id_parent. so the purpose is create menus in the app. you as a user will be allowed to create your own menus and display the content,but it has to be with that logic of parents and children. at the end the user will create a menu and it can has more menus inside with different content Link to comment Share on other sites More sharing options...
vhs666 Posted July 31, 2014 Author Share Posted July 31, 2014 (edited) hello again, I was able to insert the category-tree code to my controller, I inserted this code: array( 'type' => 'categories', 'label' => $this->l('Parent category'), 'name' => 'id_parent', 'tree' => array( 'id' => 'categories-tree', 'selected_categories' => $selected_categories, ) ), and it showed me this: okey, but it is showing the categories that I already created in the category menu, but how it gets that information from the category table?.. I've deleted the lines 'tree' => array( 'id' => 'categories-tree', 'selected_categories' => $selected_categories,just to see what happens. and it is still showing the information, I think it i for the type = 'categories'.. can you help me? where this 'categories' type is defined? Edited July 31, 2014 by vhs666 (see edit history) Link to comment Share on other sites More sharing options...
kanti Posted August 10, 2014 Share Posted August 10, 2014 Hi, I have a problem with the category on Home Page. The category in left column shows as a list. All Main Category and Sub Category as an identical list. http://www.romfordgifts.co.uk/ I would like the Sub Category to be identified under main category as shown on the category on product page http://www.romfordgifts.co.uk/9-betty-boop-figures-medium Would apprecaiate any help available. thanks KAnti Link to comment Share on other sites More sharing options...
Recommended Posts