Skip to main content

display two related product module in each product page

8 years 9 months ago #286593 by kaya
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.x

Hi dear
I need create two related product module for each product and display in product page. when create product we have one box for add related products. How can we add two related module?
thank you

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

8 years 9 months ago #286601 by nicolas
Hi,

There is no easy way to do that.
It would require developping a custom plugin to add such extra option to the product edition interface using the onHikashopBeforeDisplayView trigger, then add an extra option to the module edition interface using the same onHikashopBeforeDisplayView trigger, then handling the saving of the first option in the onBeforeProductCreate and onBeforeProductUpdate triggers, and finally, add the filter on the product loading query for the modules with the option activated using the onBeforeProductListingLoad trigger.

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

Time to create page: 0.048 seconds
Powered by Kunena Forum