vasikgreif Posted July 19, 2014 Share Posted July 19, 2014 Is there a way to apply amount based specific price before the tax is applied? I mean Product price $10 => discount $2 = $8 => with 10% tax $8.8 instead of Product price $10 => with 10% tax $11 => discount $2 => total $9 I found many threads about this issue, and didn't find any solution. Link to comment Share on other sites More sharing options...
El Patron Posted July 19, 2014 Share Posted July 19, 2014 this worked for another community member http://www.prestashop.com/forums/topic/296338-how-to-disable-tax-on-amount-of-discount/?p=1497024 Link to comment Share on other sites More sharing options...
vasikgreif Posted July 20, 2014 Author Share Posted July 20, 2014 Thanks for the link! I think I have it working on PS 1.6. In Product.php I changed the line $specific_price_reduction = !$use_tax ? $product_tax_calculator->removeTaxes($reduction_amount) : $reduction_amount; to $specific_price_reduction = floatval($reduction_amount); I also had to switch the product price display under Customers - Groups to "Tax ecl.", as without that the tax got calculated wrong. The last thing I did was commenting following line in themes/default-bootstrap/js/product.js, to display the price correctly on tyhe products page //$('#our_price_display').text(our_price); I have to test this solution more, to confirm it's really fully working. 1 Link to comment Share on other sites More sharing options...
vasikgreif Posted July 20, 2014 Author Share Posted July 20, 2014 This is not solved - commenting out the line in product.js leads to combinations not working. Anyone can point me to what to change in the product.js to make this work correctly? Link to comment Share on other sites More sharing options...
dwelch022 Posted October 26, 2014 Share Posted October 26, 2014 This works for v1.6.0.9 In classes/product.php Found on line 2761 Change: $specific_price_reduction = !$use_tax ? $product_tax_calculator->removeTaxes($reduction_amount) : $reduction_amount; To: $specific_price_reduction = $reduction_amount; 2 Link to comment Share on other sites More sharing options...
Recommended Posts