moving multiple products from categories

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #78796

how can you move multiple products from one category to another, is this possible?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #78821

Hi,

HikaShop does not have such moving features.
A product can have several categories so, there is no such "moving" features.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #78824

after some feedback from testing users have said I have too many categories on my site,

for example
> Condiments > (Sauces, chutney etc) >Fruit Sauce > Colmans > Colmans Apple Sauce (250ml)

there's 4 steps (or mouse clicks) here to get to the product , what i need to do I make it easier for users. I want to place the product in just the condiments category. As there are over 3000 products I cant do this one by one. Can you recommend as in this example I just need to move the Apple sauce product into the condiments category.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #78830

Hi,

Solution 1 : use "display all sub elements" and not "display direct sub elements" in the product listing.

Solution 2 : use a MYSQL query in PHPMyAdmin in order to change category_id in the table #__hikashop_product_category.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #78872

solution 1 just shows all products , not really what i need, i just want to reduce my subcategories

solution 2 - have no knowledge of sql queries

surely there must be an easier way? why cant you select multiple products and change category without resorting to sql queries and programming?

even if a product belongs to multiple categories you should at least have the option of overriding this. I really need an easier solution.

hope you can advise

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #78900

Hi,

You can do something like:

UPDATE #__hikashop_product_category SET category_id = 10 WHERE category_id = 20;
Just replace "10" by the new category id and "20" by the old category id.
It would "move" every product in the category 20 to the category 10.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #78942

thanks, where would i insert this code

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 11 months ago #78963

Hi,

You'll just have to use this code through your "phpmyadmin".

Last edit: 11 years 11 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #78989

got this error when trying to run above:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #79019

Hi,

Do you have replaced "#_" by your database prefix ?

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #79021

sorry where do i find the database prefix?, sorry not familiar with SQL and PHP

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #79025

i attach a screenshot is it myhcw_hikashop_product_category ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #79026

Yes.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
11 years 11 months ago #79028

that worked thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum