![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhogdg6qKWj6IZJE_4LcAUdUhLozv0COS2pD68NgjxMMVYP6eaIvAw4CyzPRqpO4YFf1HVFoN82K5Lxhnmym6uLbzUSO7gPmRgWo96deVPISwj_q66iPeYf5WAATN-wQccSg0x1_IhqzMA/s400/prestashop-shipping-is-missing-in-invoice.png)
If I change back to show price include tax at front store again, the invoice will also become normal. I guess it is a bug of PrestaShop.
Here I found a way to fix the problem. After this fix, it displays correctly no matter you set to display price include tax or exclude tax.
Changed file: ./classes/PDF.php
Changed line: 791 (this is ver 1.3.1, line # may be different for other version)
Changes made: replace the same line with below line.
$priceBreakDown['shippingCostWithoutTax'] = ($carrierTax->rate AND $carrierTax->rate != '0.00' AND self::$order->total_shipping != '0.00' AND Tax::zoneHasTax(intval($carrier->id_tax), intval($id_zone))) ? (self::$order->total_shipping / (1 + ($carrierTax->rate / 100))) : self::$order->total_shipping;
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLoEJOvlZEe5PDNQbmKqiVTKD1QzPllxdbccGHGczCtGB1LL-pBFjxcDDCEImncnvDuMDF-l3DP1eZ1KCRc3pQxXguiSsM2TbvKMJKQc4APhEGY9o91LCcfwYucVZzjzmqg-toKHPD9VI/s400/prestashop-how-to-fix-pdf-invoice-shipping-issue.png)
1 comment:
Thank you! I had the same problem and the fix works perfect!
Post a Comment