Jump to content

Recommended Posts

Posted (edited)

Hello,

I exported a list of products from one prestashop to another, but the list came only with the subcategories, and I had already registered the categories and subcategories on the site. The products linked with the subcategories, but not with the father category.

If anyone could help me, I'd like to know if there is some way to connect all the products listed on a subcategory to it's parent category. 

There is an example attached

cat.png

Edited by Maths (see edit history)

Share this post


Link to post
Share on other sites

hi,

try checking also the parent category

Share this post


Link to post
Share on other sites
12 hours ago, Maths said:

Hello,

I exported a list of products from one prestashop to another, but the list came only with the subcategories, and I had already registered the categories and subcategories on the site. The products linked with the subcategories, but not with the father category.

If anyone could help me, I'd like to know if there is some way to connect all the products listed on a subcategory to it's parent category. 

There is an example attached

cat.png

HI,

There are 2 ways to accomplish your need 

First you need to select parent too while selecting child categories 

Or you can get some custom code, add parent category too while saving products for assigned child categories 

For existing we can update it by custom queries using a php script.

You can check {{ YOUR DB PREFIX }}_category_product table and understand the relation 
 

Kind Regards

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More