Email Templates <![Cdata[ ]]>

I just upgraded from 4.9.3 to 4.11.1, I see all email templates now begin with " "

The closing tag: " ]]> " is printing at the bottom of all the email sent.

How can I stop this closing tag from printing?

Hello

It seems you can remove it from the templates. Some templates have this tag and some don't.
Remember to delete the beginning and the end.
Best regards
Robert

28 of 54 templates in 'template_emails' db table include the opening " tag.

I wonder if it's there from a faulty install. It seems likely that the tags were added by mistake when parsing the XML, and I can't find any changes between ver4.93 and ver4.11.1 in /install/resources/email_templates.xml set up file (other than the change from 'dear customer' to 'hello customer', and a logo modification.

The tags do not exist in my 4.9.3 installation, and just checking the CS-Cart Demo store, they don't exist there either...

But, I'm reluctant to remove the tags until I know HOW they were included in the installation - this could be a symptom of a larger problem or server misconfiguration.

Did you contact support team with this question? As alternative, try to post issue to the bug tracker

Did you contact support team with this question? As alternative, try to post issue to the bug tracker

Thank you for your help.

I have not contacted the support team. I don't know if it is a bug. I'm curious if anyone else has these tags in their email templates - they showed up when upgrading from 4.10.4 to 4.11.1 (because it's not in the backup data of 4.10.4).

If you look at the database table 'template_emails' you can see them all in the default_template field.

I don't see them in a default install of 4.11.1. Attached is an export of table "cscart_template_emails".

cscart_template_emails.csv

Hi,

We also have the same issue..

Could you solve it.

your help is appreciated..,

In version CS-Cart 4.13.1.SP2, the notification templates are located at:

Administration->Notifications->Customer nofitications (direct link: add this to the end of the URL of the Dashboard page:

?dispatch=notification_settings.manage&receiver_type=C)

and

Administration->Notifications->Administrator nofitications (direct link: add this to the end of the URL of the Dashboard page:

?dispatch=notification_settings.manage&receiver_type=A)

I went into my templates and removed ONLY the

(at the beginning)

and

]]> (at the end)

and that should clear them up (waiting for a live order to come in to verify) - the extra code probably got added somewhere along the way during an update or something(?)

Be very careful and be sure not to remove any other characters - seems like the templates all should start with the {{ characters

I hope this helps!

@The Tool - Thanks for the file! How did you export the email templates into a .csv file? My version only exports as a .xml version (which is probably where the extra characters came from somewhere along the way...) Thanks!

@The Tool - Thanks for the file! How did you export the email templates into a .csv file? My version only exports as a .xml version (which is probably where the extra characters came from somewhere along the way...) Thanks!

You're welcome.

Most likely I exported directly from database.


Just now using some of the new checkout and email notifications after switching from old emails and checkout, and also am seeing the “]]>” at the end. Sorry to bump an old post, but it could be helpful for others again.

I am still waiting for support to get back to me on some other things (very helpful again btw), but in the meantime, it seems that some info in this thread/posts with regards to characters is missing or I am not understanding. I see that skywaywebdesign suggests removing the " ]]> " at the end of the code, understood. But skyway’s post doesn’t show what character(s) were removed at the beginning?

1 Like

Update on my recent post, now confirmed by support that this is not a wide-spread issue but that it has happened to some users (including us) and apparently through a glitched upgrade. They stated that the code mentioned could be removed without any functionality loss.

Last question remains then, assuming the " ]]> " can be removed at the end, what could/should be removed at the beginning of the template (that skywayweb references)?

1 Like

I think that there was the:
<![Cdata[
Code that was missed somehow from the post, during migration to the new forum engine.

Thank you, CS-Cart, much appreciated.

1 Like