Related products

  • Posts: 89
  • Thank you received: 1
11 years 10 months ago #84843

When I related a product to another, the operation should be automatic on both products.

Example. If I connect the product A for product B in automatic B should be connected to A

is very inconvenient to go to do it by hand for all products

Is that clear?

How to?

Thanks
Fabio


Configuration:
Joomla: 2.5.9
Hikashop: 2.1.1
Hikamarket: 1.1.2

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

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

What you can do for that is a SQL request.

Select * from the table #__hikashop_product_id where product_related_type == 'related'.
Then foreach product_related_id insert new value in the table, the product_id is the product_related_id and the product_related_id is the product_id set the product_related_type to 'related'.

Hope this will help you.

The following user(s) said Thank You: insegnalo

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

  • Posts: 89
  • Thank you received: 1
11 years 9 months ago #87175

Hi,

Is There an easier way?

thanks

fabio


Configuration:
Joomla: 2.5.9
Hikashop: 2.1.1
Hikamarket: 1.1.2

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 9 months ago #87229

Hi,

The other way would be to implement a custom plugin which would update the "product related" when a product is modified (onAfterProductUpdate) by doing same kind of SQL query that Xavier gave.

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.

Time to create page: 0.073 seconds
Powered by Kunena Forum