Closed (fixed)
Project:
Commerce Billy Mail [D7]
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
28 Jan 2014 at 16:24 UTC
Updated:
17 Feb 2015 at 17:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
anybodyThanks a lot! I will check and try to fix that! :)
Currently the resend link is more a bonus function.
Comment #2
anybodyI'm not sure how to solve it. I'm afraid of changing the global $language before rendering the pdf.
Any ideas how to solve it properly?
Comment #3
anybodyComment #4
cjoy commentedComment #5
fugazi commentedI tried it with Execute custom PHP code
without success
Comment #6
anybodyI still have no idea how to solve this cleanly, so please help me if this is important for you.
Comment #7
fugazi commentedI would like to do if I could program well. I will look. Thank you for the answer.
Comment #8
stevieb commentedif the pdf is sent when a user manually updates the order to completed (used when the invoice is sent as the goods leave the storage)
and not when the checkout is completed the email and pdf gets sent in the admin language not the user order language.
I've tried to fix it with rules but am having no success :-(
Comment #9
anybodyThis is now fixed in the latest .dev release. Please test and review.
Comment #12
fugazi commentedI tested it and it works with limitations. All mails come in the language of the client, as it should. Wonderful thank you.
Saving the attached pdf bill comes in the set language of the admin. Only if they will send emial with notes about "resend invoice now" sent in the language of the customer.
I do not why that is happening.
Comment #13
anybody@fugazi: Thanks a lot for your comment.
This is not part of this module I think but part of commerce_billy_pdf.
Here's the reason (commerce_billy_pdf.module):
entity_view does not provide the user preferred language parameter in the entity_view() function.
It should also use the following snippet to determine the order users prefered language and pass it to entity_view():
Please feel free to create a separate issue in commerce_billy_pdf project with reference to this comment.
Thanks a lot.
Comment #14
fugazi commentedMany many thanks, unfortunately I do not know where I can insert the snippet. I will continue to write on commerce_billy_pdf, perhaps one finds the way.
separate issue in commerce_billy_pdf project