Martin Y Posted April 14, 2017 Share Posted April 14, 2017 As topic that I want limited Category selection at once of Category and sub-Category so on. Thanks for any help Link to comment Share on other sites More sharing options...
vekia Posted April 14, 2017 Share Posted April 14, 2017 in file: /controllers/admin/adminProductsController.php search for function: public function initFormAssociations($obj) we must modify one part of function's contents change: $tree = new HelperTreeCategories('associated-categories-tree', 'Associated categories'); $tree->setTemplate('tree_associated_categories.tpl') ->setHeaderTemplate('tree_associated_header.tpl') ->setRootCategory((int)$root->id) ->setUseCheckBox(true) ->setUseSearch(true) ->setSelectedCategories($categories); to: $tree = new HelperTreeCategories('associated-categories-tree', 'Associated categories'); $tree->setTemplate('tree_associated_categories.tpl') ->setHeaderTemplate('tree_associated_header.tpl') ->setRootCategory((int)$root->id) ->setUseCheckBox(false) ->setUseSearch(true) ->setSelectedCategories($categories); 1 Link to comment Share on other sites More sharing options...
Martin Y Posted April 14, 2017 Author Share Posted April 14, 2017 Thanks lots Ambassadors, it is much help! 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