Jump to content

[SOLVED]Customer invoice shows shipping, but PDF shows shipping as 0.00


Recommended Posts

I'm not a coder, so I don't know where or what to look for to fix the PDF document so it will show the shipping fee. Also, on the PDF invoice, tax is showing as 8,000 instead of 8%. Any help would be appreciated. Thank you!

Order Invoice Details:
Total products : $3.99
Total products (tax incl.): $4.31
Total shipping: $2.95
Total: $7.26

PDF Version:
Total products : $3.99
Total products : $4.31
Total shipping : $0.00
Total (tax incl.) : $7.26
Total (tax excl.) : $3.99
Tax detail Tax % Pre-Tax Total Total Tax Total with Tax
Products 8,000 $3.99 $0.32 $4.31

Link to comment
Share on other sites

Hi!
I can only help you with the Total shipping: 0.00 part...
I had this same issue to solve yesterday, and ended up putting my little french to good use!

In classes/PDF.php line 791, change:

$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))) : 0;

to:

$priceBreakDown['shippingCostWithoutTax'] =(self::$order->total_shipping / (1 + ($carrierTax->rate / 100)));



I'm no programmer/coder either, so I have no clue what the change actually does, but it solved the problem!
Link to french thread: here!

Now I need to find out how to get the tax to show in % too!

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