Force vendors to subcategories products

  • Posts: 21
  • Thank you received: 0
9 years 2 months ago #191116

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6

hy

I want to force vendors to put their product in subcategories products not in the default category .

thanks for help

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

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 2 months ago #191130

Hi,

The easiest solution will be to use a small plugin to refuse the creation/modification of a product in the front-end if the selected category is the default category.
Thanks to the triggers "onBeforeProductCreate" and "onBeforeProductUpdate", you can have access to the product and you can refuse the action using the second parameter of the function ( $do = false ).
You can also use the Joomla messaging system to add the notice message ; explaining why the product can't be save.

You can read/use the plugin "plg_hikashop_productforcevendorcategory" which is using the same triggers but for a slightly different task.

www.hikashop.com/support/support/documen...ntation.html#product

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.

Moderators: Obsidev
Time to create page: 0.055 seconds
Powered by Kunena Forum