Jump to content

Recommended Posts

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

Same situation here... Any solution? How did you solve it?

Share this post


Link to post
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...

Important Information

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