hairshirt Posted June 12, 2013 Share Posted June 12, 2013 Hello everyone. I’m so very impressed with PrestaShop and I have decided to use it to facilitate my venture with creating an online store. However, I have a small problem with categories. I have created a number of categories and sub-categories as follows: Trousers. Shirts. Pullovers. Then divided Trousers into brands. Brand 1. Brand 2. Brand 3. Then, say, Brand 1 divided into 15 product of various colours. The problem I’m experiencing is that the products I place in categories Brand 2and Brand 3 are listed in Brand 1. When I attempt to edit one of these troublesome sub-categories the follows error message is thrust upon me. [PrestaShopException] a category cannot be it's own parent at line 188 in file classes/Category.php 182. * @return void 183. */ 184. public function update($null_values = false) 185. { 186. if ($this->id_parent == $this->id) 187. throw new PrestaShopException('a category cannot be it\'s own parent'); 188. // Update group selection 189. $this->updateGroup($this->groupBox); 190. $this->level_depth = $this->calcLevelDepth(); 191. // If the parent category was changed, we don't want to have 2 categories with the same position 192. if ($this->getDuplicatePosition()) CategoryCore->update - [line 754 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->processUpdate - [line 661 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->processSave - [line 539 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->postProcess - [line 531 - controllers/admin/AdminCategoriesController.php] - [0 Argument] AdminCategoriesControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin3895/index.php] - [0 Argument] Any help with this or some indication as to where I’m going wrong would be great appreciated as I not often find myself having to seek help. Thanks in advance. Link to comment Share on other sites More sharing options...
NemoPS Posted June 12, 2013 Share Posted June 12, 2013 Weird, would you be able to to a printscreen of the actual category tree with all categories expanded? And oerhaps the associations screen of the trouble-causing products Link to comment Share on other sites More sharing options...
hairshirt Posted June 12, 2013 Author Share Posted June 12, 2013 (edited) Hi and thank you for your offer of help… I hope these screenshots are of use to you in helping me… The last screenshot above is a product listing and shows here that all products added are being placed in the Apollo catergory where they the last two product should be listed under the Avebury catergory. Thanks again Edited June 12, 2013 by hairshirt (see edit history) Link to comment Share on other sites More sharing options...
hairshirt Posted June 12, 2013 Author Share Posted June 12, 2013 Is there anybody out there... Link to comment Share on other sites More sharing options...
NemoPS Posted June 12, 2013 Share Posted June 12, 2013 Hi, Sorry for my late reply. I meant screens of the product pages, associations tab So that we can see if they're tied correctly Link to comment Share on other sites More sharing options...
hairshirt Posted June 12, 2013 Author Share Posted June 12, 2013 Hi and thanks for getting back to me. I'm not quite sure what is meant by "associations tab" but I feel the two screenshots should cover what it is that you require. Thanks again for your help. Link to comment Share on other sites More sharing options...
hairshirt Posted June 13, 2013 Author Share Posted June 13, 2013 Any ideas? Link to comment Share on other sites More sharing options...
hairshirt Posted June 13, 2013 Author Share Posted June 13, 2013 ...as I mentioned, I can't get Avebury products listed under Avebury.... They're listed under Apollo and I can't correct it. When I attempt to correct the situation then I get that error *massage... It's very frustrating... Link to comment Share on other sites More sharing options...
NemoPS Posted June 13, 2013 Share Posted June 13, 2013 The associations tab is where you add products to categories, in each product config page. That's vital to understand the situation 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