Jump to content

How to update display hook ?


Jibax

Recommended Posts

HI there, I want to know how to update a value return by a display hook. 

For example, when a customer is modifying the content of the cart, the actionCartSave hook is executed, and I would like to update a text on the same page ( the text is returned by displayProductPriceBlock for instance ). 

But when I called

Hook::exec("displayProductPriceBlock", array())

at the end of hookActionCartSave() method, the function hookDisplayProductPriceBlock() should be executed and return updated data. But nothing happen. 

Is this a correct behavior ? If no, how to manage to update displayed value return by a display hook without refreshing a page ?

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...