Jump to content

HOOK_PRODUCT_FOOTER not working for module "Products Comments"


bhawin91

Recommended Posts

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

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...