Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document will show you how to add item conditional content to the receipt email. First navigate to the StoreFront and click emails.

Image Added

Next scroll down the list of templates, find receipt_html.vm, and click on the file name.

Image Added

Enter the block of code into the page.  Pay close attention to making sure that the HTML that you enter is in the proper location and shares similar styles so the email will format properly on mobile devices.  Click the Save and Preview when finished.

Code Block
#if ($order.isPurchased("INFUSERDAILY14"))
<tr>
	<td valign="top" class="section-container">
		Content for INFUSERDAILY14 here.
	</td>
</tr>
#end

 

Image Added

After you click Save and Preview the popup dialog will display the email.  Notice the icons to test the content in different device widths.

Image Added