![]() |
Customize Email & Invoce
Can someone share some insight on how to customize the email that is sent to the customer and how to modify the font and layout of the invoice...
Thanks in advance |
Re: Customize Email & Invoce
Quote:
You can use Custom Skins module in order to alter X-Cart 5 emails. Could you please let me know what exactly you want to change, so I would be able to suggest the exact steps. |
Re: Customize Email & Invoce
Thanks for the reply...
I have the custom skins module installed but don't see any way to edit emails. Maybe I dont know how to use it.. Is there documentation? Currently the emails come over with errors, here is an example: Notice the html and = all over the place.... The font is also, all over the place.. Invoice #5 May 15, 2014, 12:17 Grand = total: $0.00 = <= /tr> Item Price Qty Total demo free= Key: demofre= e1 SKU demo free $0.00 1 $0.00 Subtotal: $0.00 Grand total: $0.00 = |
Re: Customize Email & Invoce
One of our previous webinars is a documentation of Custom Skin module. It explains how you can use it: http://kb.x-cart.com/pages/viewpage.action?pageId=7504837
As for the errors you mentioned, could you please let me know what language you are using in your store? Besides that, could you please send me the copy of your invoice email to support@x-cart.com? Thank you. |
Re: Customize Email & Invoce
English
Email Sent.. |
Re: Customize Email & Invoce
Thank you. Apparently, there is a problem with the server environment. I will reply to you via email.
Tony. |
Re: Customize Email & Invoce
Hi,
Did you every get to the bottom of this problem? I am having a similar issue ... email comes out with html code as text and messed up layout and fonts. I am using x-cat 5.1.11 and it is running on PHP 5.3 at the moment .... ... is it an issue to with phpmailer? Thanks in advance ... Jan |
Re: Customize Email & Invoce
Hello @JannieB,
We did not get to the root of the problem. However, could you please forward me a problem notification at sales@x-cart.com saying that this is for Tony Sologubov. I would like to have a look at how exactly your notification is messed up. Tony |
Re: Customize Email & Invoce
Hi Tony,
Thank you - I think I have fixed the problem now ..... When looking at the html output I noticed the lines were broken up, sometimes in the middle of an html tag which seemed to cause formatting problems. Also some rogue characters were introduced. Rogue unprintable characters can be intoduced by UTF-8 files which have the UTF-8 BOM at the beginning. I don't know if they had, but I went through each template in Dreamweaver and re-saved them with UTF-8 and no BOM. The line breaks were a result of the encoding (I think), looking in Xlite/View/Mailer.php the encoding was set to "quoted-printable" in the initMailFromConfig() function. The default used by PHP Mailer is 8-bit, so I just commented out this line Code:
$this->mail->Encoding = 'quoted-printable'; in the var/run version of the Mailer.php file, so that it would use the default setting and to see if it made any difference. The email then came through correctly formatted. So I have know add a decorated version of Mailer.php to my module as follows: Code:
class Mailer extends \XLite\View\Mailer implements \XLite\Base\IDecorator The weird thing is, that I am sure this wasn't happening before ... anyway it seems to be OK now, so now I just need to restyle all the emails to meet the designers brief ... oh joy! Thanks, Jan |
Re: Customize Email & Invoce
It would be interesting to see headers of your email, because I just googled the problem and people say that it might be related to Content-Type header being replaced with Content-type one (with type starts with small letter):
http://forums.sugarcrm.com/f3/email-encoded-quoted-printable-dont-display-correctly-49862/ |
Re: Customize Email & Invoce
Hi Tony,
It doesn't seem to be that. Here are the headers from one of the mangled messages. Code:
Return-path: <jan@8dd.co.uk> Jan |
Re: Customize Email & Invoce
Hello,
I am having the same problems. However, unlike JannieB, my header does contain the "content-type" with no capital "T". Code:
Content-type: text/plain; charset=UTF-8 What would be the way to fix this? Thank you, |
Re: Customize Email & Invoce
@JannieB, what email client are you using? Maybe is this software related?
I remember that you saw this problem before, but I do not remember how I fixed that and whether there was a commit to the core. @Burpomatic The solution is generously described by JannieB here: http://forum.x-cart.com/showpost.php?p=384855&postcount=9 Please, let us know if the solution makes sense to you. |
Re: Customize Email & Invoce
Hello Tony,
Yes JannieB's solution works, but I thought there could have been a more "direct" solution to correcting the "content-type" instead. Thank you! |
Re: Customize Email & Invoce
Quote:
Oh, sure. You might want to contact your hosting team and ask them why Content-type is with small t there. Probably, they can fix it, but it does not guarantee the fix of the original problem. Tony |
Re: Customize Email & Invoce
Hi Tony,
I am using Outlook as a mail client. When I sent order emails to my gmail account they were rendered correctly, so clearly something to do with the way Outlook (and possibly other mail clients) interpret the message html. But then we all know that mail clients have yet to join us in the 21st Century ...! Jan |
Re: Customize Email & Invoce
Quote:
Oh, yes, exactly http://stackoverflow.com/questions/7933112/quoted-printable-email-showing-equal-signs-in-certain-email-clients I will ask the team to add a fix for it in the future release. It will not be in 5.2.4, but it will be definitely be in 5.2.5 or 5.2. |
All times are GMT -8. The time now is 09:57 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.