I have a product called Coffee Lover's Basket, but on both the order confirmation email and the order notification email the name comes out like this:
Coffee Lover's Basket
How do I fix that?
Also how do I force a line break between products? Multiple products show up all on one line in the confirmation emails.
this is because everything is htlmencoded before it is put into the database. Is there really any purpose for this?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I would have thought so, mainly because HTML can contain lots of junk which could break pages being viewed, also if php was added, it could cause undesired effects.Xsecrets wrote:this is because everything is htlmencoded before it is put into the database. Is there really any purpose for this?
Matt
Code: Select all
It was like that when I found it, honest!
well I certainly understand sanitizing the input, but I see no need to htmlencode it. It ends up causing lots of problems like the one mentioned here. I would imagine you could do a htmldecode before putting it into the email.moggiex wrote:I would have thought so, mainly because HTML can contain lots of junk which could break pages being viewed, also if php was added, it could cause undesired effects.Xsecrets wrote:this is because everything is htlmencoded before it is put into the database. Is there really any purpose for this?
Matt
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I agree with xsecrets... back in 0.x, one of the last main changes was to put proper html into the database instead of the entity characters.
so in the DB you can see '<table>' instead of '<table$gt;'. That fixes a lot of issues and need for encoding and decoding unnecessarily.
Was sad to see that change didn't make it to 1.x
so in the DB you can see '<table>' instead of '<table$gt;'. That fixes a lot of issues and need for encoding and decoding unnecessarily.
Was sad to see that change didn't make it to 1.x
I hope I'm understanding your problem correctly. Try using the html_entity_decode method....i've used it a few times with great results. Never with e-mails but you might be able to make it work.
Instead of:
Maybe try something like this:
Hope that helps.
Instead of:
Code: Select all
<?php echo $fieldname; ?>
Code: Select all
<?php echo html_entity_decode($fieldname); ?>
Who is online
Users browsing this forum: No registered users and 265 guests