Jump to content

Where in code does the reduction(%) is set?


malex
 Share

Recommended Posts

I think it's the getReductionValue() function of classes/Product.php that handles all the reductions. PrestaShop v1.4 has a much more flexible pricing tab that lets you specify prices by customer group, currency and country.

Share this post


Link to post
Share on other sites

Thanks for reply.

I need to change the price for some users with an alorithm that rounds the price. Where do I put it in the code?
I'm currently trying to modify getReductionValue() function of classes/Product.php. Is there any other way?

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Hi again, I posted here because it's related.

It doesn't calculate correct when the product has attributes.

I commented the return value in ps_round and when it has attributes it display the price(incorect), when it has attributes it usses othe function than ps_round() from Tools?

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More