Closed (fixed)
Project:
Commerce Billy Mail [D7]
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Dec 2013 at 18:06 UTC
Updated:
13 Jan 2014 at 18:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
clay-evans commentedComment #2
anybodyPlease try the "mailsystem" module and set the correct theme for "Theme to render the emails".
I think the problem is, that different themes are used for rendering!
Comment #3
clay-evans commentedI tried this, but didnt help. is used the standard templates for testing that comes with commerce_billy.
how do you have set up your pdf mail?, wich versions you use, this would be interessting because auf this https://drupal.org/comment/8165547#comment-8165547
Comment #4
clay-evans commentedwhen i switch the admin-theme to the current frontend-theme, then the mail.sent pdf is styled as it is streamed. this is very strange.
mailsystem got a theme option and mimemail to. both of them dont change a thing. also i assume they style the MAIL itself and not the pdf. i digging on this a week now. i am the first one who has a closer look to this sent pdf?
Comment #5
clay-evans commentedNew day new testing.
i currently save the pdf out:
here: commerce_billy_mail.module
Result: Wrong styling seen in mail.jpg
here: commerce_billy_pdf.module
Result: right styling seen in online.jpg
my very big question is, why the hell now they are different?!
as i understand commerce_billy_mail is getting the order-data with this
$html = commerce_billy_pdf_html($order);Comment #6
clay-evans commentedok got it now.
what i can say is ..dont believe the hype ^^
the mail-sent pdf is styled with the theme that is showing when you are loggend in.
means, as admin your assign theme is the backend-theme, therefor, the pdf is styled with this settings. (for testing purposes i was setting the order-status manually as admin in the backend)
Comment #7
anybodyOk should we perhaps exclude the rendering path from the admin theme?
That's possible and so the PDF would always be rendered by the "main" theme. It would then be a task for the commerce_billy module itself.
Comment #8
anybodyBy the way, this would be the hook that does the trick and should go into commerce_billy. I would then mode this issue over there and further discuss it.
Comment #9
anybodyComment #10
anybodyCorrect and final solution: Install mailsystem.module and select "Standard" as E-Mail rendering theme in its settings. No further action required on our side, I think.
Please reopen, if this is not the final solution.
Comment #11
anybody