HTML in email order... works?

JuanPerez

Avatar: JuanPerez

2011-03-26 01:09

Friends:

Any knows if exist a plugin to received the email orders in HTML in QC 3.4?

In old versions I know that exist, but in this version I not sure...

Well.. I await your info..

Thanks!

» Quick.Cart v3.x

boboo

Avatar: boboo

2011-03-26 07:07

http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=7254

http://it-service.kimla.de QC- & QCMS-plugins

cachousam

Avatar: cachousam

2011-03-28 14:37

Hi
strange, the letter é é é é does not write.Ah these languages ​​....

boboo

Avatar: boboo

2011-03-28 15:40

because it will be changed to "e" with change2Latin function

http://it-service.kimla.de QC- & QCMS-plugins

cachousam

Avatar: cachousam

2011-03-28 15:54

that there is a solution ?

JuanPerez

Avatar: JuanPerez

2011-03-28 23:25

Cachousam... do you speak spanish? (hablas español?).

Boboo.. I don't understand the modify. I not found the lines to modify in the files p.php / core/orders.php

I use QC 3.4

boboo

Avatar: boboo

2011-03-28 23:45

The sendEmail function (in core/common.php) uses very simple header with only one parameter:

if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sSender ) ){

the "From:.$sSender" is the only header content. In this case mail function uses the standard settings (poor as well).
declare a $sHeader and put into it as follows:
$sHeader='MIME-Version:1.0'."\n".'Content-type:text/html;charset=UTF-8'."\n".'Content-Transfer -Encoding:8bit'."\n".'From: <'.$sSender.">\n";
and put the $sHeader instead of 'From: '.$sSender
You will get utf-8, and html formatted emails.

Is it clear enough?

http://it-service.kimla.de QC- & QCMS-plugins

JuanPerez

Avatar: JuanPerez

2011-03-29 07:49

Its ok.. I've modified core/common.php but I put HTML code in templates/orders_print.tpl and the email shows the code lines... and not recognizes the HTML format. I've tried including the tag <html> but not works.

How is wrong?

beholder

Avatar: beholder

2011-03-30 01:10

creating HTML emails in proper MIME format with embedded images and other HTML features requires dilligence and a knowledge of the rules/format. I would advise against doing your own template for this, as the work would be too time consuming and perhaps eventually futile, due to mime parser errors.

http://www.cicmanec.sk/easyplugins/

beholder

Avatar: beholder

2011-03-30 01:13

What I wanted to say is that I recommend you to use a help of a professional, like me for example. I am saying this blatantly because I've spent weeks over HTML emails already and know how impossible to find the errors sometimes can be.

http://www.cicmanec.sk/easyplugins/

Heywood

Avatar: Heywood

2011-04-10 00:42

Hi,
html in e-mail is working, but there is a little problem.
All products in customer e-mail is in one row. plain text shows with line breaks, but html is just one row.

Where to put <br>?

http://raudselt.puustjapunaseks.ee/

boboo

Avatar: boboo

2011-04-10 05:54

put <br/> at the end of every line you want to wrap in:
templattes/orders_print.tpl in block BEGIN ORDER_EMAIL_BODY
now is:
$lang[Order_customer_email_head]
------------------------
$lang[Order_customer_personal]
------------------------
$aData[sFirstName] $aData[sLastName]
$aData[sCompanyName]
...
...

after should be:
$lang[Order_customer_email_head]<br/>
------------------------<br/>
$lang[Order_customer_personal]<br/>
------------------------<br/>
$aData[sFirstName] $aData[sLastName]<br/>
$aData[sCompanyName]<br/>

and so on.

http://it-service.kimla.de QC- & QCMS-plugins

Heywood

Avatar: Heywood

2011-04-10 10:40

Hi Boboo,
this is not working with $aData[sProducts]. If i choose two ore more different products, it shows all in one row and only one break tag will be at the end of the row.

As in here:
http://www.puustjapunaseks.ee/arve.html

http://raudselt.puustjapunaseks.ee/

boboo

Avatar: boboo

2011-04-10 12:41

in templates/orders_prin.tpl you have this block:
<!-- BEGIN ORDER_EMAIL_LIST -->|n|- $aData[sName] - $lang[Price]: $aData[sPrice] $config[currency_symbol], $lang[Quantity]: $aData[iQuantity], $lang[Summary]: $aData[sSummary] $config[currency_symbol]<!-- END ORDER_EMAIL_LIST -->

exchange the |n| to <br/>

http://it-service.kimla.de QC- & QCMS-plugins

Heywood

Avatar: Heywood

2011-04-11 01:34

Thanks, working good!

http://raudselt.puustjapunaseks.ee/

Back to top
about us | contact