Jump to content

Test Email Templates with Data


bsmither
 Share

Recommended Posts

CubeCart 6.4.8 has put in place a different editor to compose Email Contents templates and Email/Newsletter Template templates (but not Newsletter Contents, Offline Message, Site Documents, Product or Category Descriptions). This different editor is the same one used to write PHP code Snippets. There is no WYSIWYG mode - there is only source-code mode.

As such, there is a "Test" button that will open a 'colorbox' showing what the HTML will look like when rendered. However, none of the 'Macros' will be compiled. That is to say, {$BILLING.name} will still be that, and {foreach} loops will not show a list.

For Email Contents templates, the attached file is instructions for code edits and files of sample data. The code edits provide a separate button to open a 'colorbox' showing the editor's contents as it will (should) look like after the template rendering engine (Smarty) compiles and populates the template with data.

 

Test_Email_with_Data.zip

Edited by bsmither
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...