shaynem Posted January 23, 2015 Share Posted January 23, 2015 I've created a WHMCS module however i'm having problems with Action hooks conflicting with other modules. For example, on the specific product linked to the server module there are Custom fields setup we then run add_hook("ShoppingCartValidateProductUpdate",1,"hook_modulename_validateuser"); to validate the user - but this hook also runs when there are other products with custom fields even tho the server module isn't linked to the other product how can i not make this hook global and only specific to products that are linked to the server module. I could not find any information in regards to this on the forums or in the documentation unless it's something obvious i've missed, however I would think that specific hooks in a /servers/modulename/hooks.php would only run on products configured for that specific module selected within the product. This seems not the case. any help would be appreciated. 0 Quote Link to comment Share on other sites More sharing options...
igortomiatti Posted April 3, 2016 Share Posted April 3, 2016 I have the same problem. Any solution? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.