Skip to main content

onProductFormDisplay() trigger in the HikaShop Shipping plugin

9 years 9 months ago - 9 years 9 months ago #262167 by IGrock
Hi,

In my shipping plugin I want to add a new fields to the hikashop_product table and a new row to the hikashop_field table. For this I want to use triggers onProductFormDisplay() and onHikashopBeforeCheckDB(), but they do not work in the HikaShop Shipping plugin. Why?
Last edit: 9 years 9 months ago by IGrock.

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

9 years 9 months ago #262177 by Jerome
Hi,

Only HikaShop plugins are loaded for that specific context.
Shipping plugins are made to provide a shipping method ; so they are loaded when we need them : during the checkout and while dealing with cart or orders.

So you will need to have a plugin in the "hikashop" group to be loaded and use these triggers.

Regards,

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

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

9 years 9 months ago #262246 by IGrock
Thank You, Jerome.
I had to hang it on the trigger onShippingConfigurationSave().

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

Time to create page: 0.041 seconds
Powered by Kunena Forum