Post by alarsdes » Mon Apr 23, 2018 4:08 pm

I have a lot of categories and sub categories..
At this time oo many subcats for a category. The pages are growing to heavy.
so I am thinking about making a extra menu step. this means I have to re-locate the subcategories.
Is there a way to easily move sub-categories from one cat, to another cat.
Does one have a solution for this. Is there an addon for bulk relocate subcats.
Thank you

Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm

Post by thekrotek » Mon Apr 23, 2018 5:15 pm

Open PHPMyAdmin and use this command:

UPDATE category SET parent_id = X WHERE category_id = Y

Command syntax says for itself, nothing complex here.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by alarsdes » Mon May 07, 2018 3:47 pm

Thanks but that is not it.
I want to move only selected categories. This way I move all the subcats.
Do you have another idea on how to handle this.

Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm

Post by thekrotek » Mon May 07, 2018 5:38 pm

I gave you an example query, you can expand it any way you like and update only the desired categories. This ia the easiest and fastest way providing you can usd MySQL or at least read its documentation.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by katherinerogers » Tue May 08, 2018 2:48 am

Thanks for your response with this command. It has helped me a lot!

Hello to everybody here!



Posts

Joined
Wed Oct 11, 2017 4:17 am
Who is online

Users browsing this forum: No registered users and 198 guests