MEG Venture Posted April 19, 2012 Share Posted April 19, 2012 What code should I use for a module to be displayed in or under product actions when catalog mode is enabled? I want to put a if conditional under the related hook functions, but I don't know how. Any help is appreciated. Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted April 20, 2012 Share Posted April 20, 2012 An if statement must be added at the main file of the module, where the hook functions are defined. if (!Configuration::get('PS_CATALOG_MODE')) return; This way the hook will not add content if the catalog mode is disabled. Add this at the top of the function. 1 Link to comment Share on other sites More sharing options...
MEG Venture Posted April 20, 2012 Author Share Posted April 20, 2012 Thanks a lot! Now, I understand. I was also using this code but unfortunately without the exclamation mark This help saved my life !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now