Vendor msssaction question

  • Posts: 252
  • Thank you received: 1
9 years 3 months ago #242085

-- HikaShop version -- : HikaShop Business 2.6.3,
-- Joomla version -- : 3.5
-- PHP version -- : 5.5.12

Hi,
. I want to create vendor folder for each vendor, so I think want to add my code to onAfterVendorCreate. But in massAction interface, there is no "vendor" data type, let alone the triiger. Can I create my own data type and trigger?
Thanks

Best Regards

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 3 months ago #242101

Hi,

You don't need to have a mass action. If you want to add your code in a trigger onAfterVendorCreate, just create a hikamarket plugin with the function onAfterVendorCreate and your code in that function and the plugin will be called when a vendor is created and your code will run.
What's great with the mass actions is that you can filter the elements, have different actions on them, etc without changing any code. But if you're adding your own code anyway, you can do it with just a plugin, without integration with the mass actions system.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum