apharrison964 Posted June 1, 2015 Share Posted June 1, 2015 I am trying to transplant the Customer loyalty and rewards module to the displayHeader. I went into loyalty.php and added !$this->registerHook('displayHeader') where the other hook registrations were, but it did nothing (I can't uninstall the module because all of the customer data will be lost). I am just trying to move the position of the loyalty explanation (it is currently under the shopping cart, I want it under the image of the product), but it won't move. Any help would be greatly appreciated! Link to comment Share on other sites More sharing options...
vekia Posted June 1, 2015 Share Posted June 1, 2015 in addition to registerhook command you have to add function that will hadle hook request: public function hookdisplayheader($params){ // code to execute } Link to comment Share on other sites More sharing options...
apharrison964 Posted June 2, 2015 Author Share Posted June 2, 2015 What exactly do I put in the function? Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2015 Share Posted June 2, 2015 it depends on what you want to display in displayHeader hook so, what you want to do / display in that section of your front office? please note that displayHeader section is a section for js/css files Link to comment Share on other sites More sharing options...
apharrison964 Posted June 2, 2015 Author Share Posted June 2, 2015 I want to display the customer loyalty and rewards module in the display header. I want to move the explanation of the rewards system to underneath the picture of the product: http://www.mumsupplies.com/backer-/255-three-inch-round-backer.html I was able to move it with HTML when I inspected the page, but I don't know how to move it not using HTML and can't find the HTML file anywhere... Link to comment Share on other sites More sharing options...
apharrison964 Posted June 2, 2015 Author Share Posted June 2, 2015 So I want to place the customer loyalty module above the send to a friend module. Since it won't let me do it in live edit or when I try to change the hook, would it be possible to merge the two modules, or does that cause more problems than just trying to fix the hook issue? 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