Skip to main content

Plugin not activating correctly

More
9 years 11 months ago #253190 by PeterChain
-- HikaShop version -- : 2.6.0
-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.6.3
-- PHP version -- : 5.6.26
-- Browser(s) name and version -- : Google Chrome 53.0.2785.143, Safari 9.1 (11601.5.17.1)

Hi,

I'm using a plugin to help my component to insert little code in the vendors frontend editing form.

My plugin has two triggers: onBeforeRender and onBeforeProductUpdate.

The problem it's sometimes the plugin doesn't trigger any of the triggers programmed, so it doesn't load .js and .css.

Any idea?

Thanks in advance.

-- Víctor

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

More
9 years 11 months ago #253192 by Jerome
Hi,

If your plugin is an HikaShop or HikaMarket plugin ; it might not be included in every pages.
Sometimes, if there is no trigger in HikaShop or HikaMarket, the plugins are not loaded for the page generation.
It is really rare but it might be possible.

In that case, you can see to move your plugin in the "system" group ; to be sure that it will be loaded for every pages.

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.
The following user(s) said Thank You: PeterChain

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

More
9 years 11 months ago - 9 years 11 months ago #253374 by PeterChain
I changed the onBeforeRender to a system plugin and now works fine. Thanks.

-- Víctor
Last edit: 9 years 11 months ago by PeterChain.

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

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