malex Posted December 29, 2010 Share Posted December 29, 2010 I need to apply a specific algoritm to calculate the price for specific group.Where in the code I must apply the function? Link to comment Share on other sites More sharing options...
rocky Posted December 30, 2010 Share Posted December 30, 2010 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. Link to comment Share on other sites More sharing options...
malex Posted January 3, 2011 Author Share Posted January 3, 2011 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? Link to comment Share on other sites More sharing options...
rocky Posted January 4, 2011 Share Posted January 4, 2011 I can't think of any solution. Is it possible for you to use the specific prices feature in PrestaShop v1.4 to specify a different price for each group, or must you use an algorithm? Link to comment Share on other sites More sharing options...
malex Posted January 4, 2011 Author Share Posted January 4, 2011 I've solve it, I modified ps_round() from Tools.php, I check for group id and apply a function on specific group Link to comment Share on other sites More sharing options...
malex Posted January 14, 2011 Author Share Posted January 14, 2011 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? 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