Jump to content

Entering Products into Sub-Categories


Recommended Posts

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

Hi and thank you for your offer of help… I hope these screenshots are of use to you in helping me…

 

post-595606-0-99564400-1371051181_thumb.png

post-595606-0-87997500-1371051182_thumb.png

post-595606-0-96689800-1371051183_thumb.png

post-595606-0-65444700-1371051184_thumb.png

 

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.

 

post-595606-0-14320600-1371051185_thumb.png

 

Thanks again

Edited by hairshirt (see edit history)
Link to comment
Share on other sites

...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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...