I am not sure if this is actually an invoice receipt issue but having searched all over the place can't quite work out how to fix this.

The issue is that when I click the print button from the order page it shows £ instead of £ for the currency.

It shows perfectly on the order itself within Drupal Commerce and shows correctly in the email as well.

Emogrifier appears to be working fine.

I understand from searching around that this is to do with php converting to html and I think the answer is that it is stripping out the information from the template so the line below is missing.

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

Not the best solution but as I have string overrides installed I have tried to find the correct string to override there but failed so far.

Can anyone help me figure this out?

Thanks

Comments

fibie created an issue.

aramboyajyan’s picture

Thanks for reporting; can you clarify the part you wrote about the charset encoding in the commerce-order-invoice-view.tpl.php file?

It's not present on your end, or it's not working because of that line?

fibie’s picture

Hi there, it's present in the commerce-order-invoice-view.tpl.php file but missing when viewing the print version from the order page.

What I see there in developer tools is <head></head> with nothing in it.

hope that helps clarify

aramboyajyan’s picture

Got it; will have a look and keep you posted.

fibie’s picture

An update on this aramboyajyan

I removed the emogrifier library to see if the issue really wasn't coming from there and that worked.

Re-installed the emogrifier library and I found this post here https://www.drupal.org/node/2152657 which suggested a fix.

I have commented out line 2 of emogrifier.php as suggested in the post and that has fixed the issue for me but it now gives me a status report

The Emogrifier class library was not found. Usually it is expected in sites/all/libraries/emogrifier/Classes/Emogrifier.php

I am not sure if this is really a fix or showing that the problem really lies within the emogrifier module / library

Can you let me know what you think and if more appropriate will move the issue to the emogrifier issue queue