Jump to content

Hook for change price


danielevigi

Recommended Posts

Hooks are used to respond to things that happen in Prestashop but don't let you modify the behaviour; to do that you need to override a class. You're probably going to want to override Product::getPriceStatic

 

https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Product.php#L2487

 

Thanks for the reply. Can I put the override inside a module? So I can disable it when I no longer need.

Edited by danielevigi (see edit history)
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...