Jump to content

is getting price for a product centralised at priceCalculation()?


yeahman45

Recommended Posts

when getting price of a product, is it done only at the function priceCalculation() found in Product Class?

 

i mean if i want to implement my own discount rules and if i modify my price here, will it apply everywhere on the site? i.e. there's no code duplication about price fetching?

 

Would like to hear a prestashop developer to confirm that it is safe to modify this function so that changes to price is visible everywhere on the site (orders, cart, invoice, etc..)

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