bhawin91 Posted August 19, 2015 Share Posted August 19, 2015 I have a module named "Products Category" which i added and installed I transplanted the module on the hook names "displayfooterproduct" but it didn't show anything on the product page It was supposed to show products of the same category here is the code for displaying the module in product page {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} but this code is not working Any help please ? Link to comment Share on other sites More sharing options...
NishantVadgama Posted August 19, 2015 Share Posted August 19, 2015 (edited) First of all trace that your hook is call or not. by printing some message and test i.e print_r('Test'); exit; Edited August 19, 2015 by NishantVadgama (see edit history) Link to comment Share on other sites More sharing options...
bhawin91 Posted August 19, 2015 Author Share Posted August 19, 2015 First of all trace that your hook is call or not. by printing some message and test i.e print_r('Test'); exit; @NishantVadgama , thenx for the answer i tried to priint and die in the function Hook::exec , it works fine I have tried till Module::getInstanceByName($array['module']) this line is called inside Hook::exec() function and its returning false for my module name productscategory thats the updated problem now , can u help? Link to comment Share on other sites More sharing options...
NishantVadgama Posted August 19, 2015 Share Posted August 19, 2015 so now uninstall your module and clear cache and disable cache from back office now install your module. and check it Link to comment Share on other sites More sharing options...
bhawin91 Posted August 19, 2015 Author Share Posted August 19, 2015 done , problem is solved I did not have the files of the module in my modules folder , got fixed it by just adding the files manually Thx for the help Link to comment Share on other sites More sharing options...
NishantVadgama Posted August 19, 2015 Share Posted August 19, 2015 so please mark it solved if It helps you to solve your problem. 1 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