Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed content on 2. Create & Assign the Email Template

...

2. Create & Assign the Email Template

Navigate to Settings --> Scheduler Maintenance.
Click New and update the values as follows:
  • Begin the task - On a schedule
  • Name - Stock Availability
  • Active - ticked
  • Task - Stock Availability Notify Task
  • Schedule - Repeat Period
  • Period - X Minutes (this can be set to run however often Stock Availability runs on your site's Integrator). 
    Image RemovedClick Save.
    Navigate to Settings --> Dictionary.
  • Tick the 'System Control' box and click Refresh Cache
    Image Removed
  •  A confirmation message will display when complete.
    1. Navigate to Content → Content Editor and click New Emails.
      Image Removed
      Set the values as follows:
    2. Template Type - Email Template
    3. Template Name - StockAvailabilityNotifyEmailTemplate (This must be exact)
    4. Version - Razor 
    5. Template Description - a description of your choice
      Image Removed
      Click the Code Editor tab.

      Paste in the email template code contained below (click 'Expand Source' to display).

      Code Block
      collapsetrue
       @{
      var product = Model.Product;
      var list = new List<string>();
      product.MoveThruStart();
      while (product.MoveThru())
      {
      list.Add(product.ProductCode);
      }
      var products = string.Join(", ", list);
      }
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html>
      @Raw(Model.TemplateUtil.Subtemplate("EmailHeaderSubTemplate"))
      <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
      <center>
      <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
      <tr>
      <td align="center" valign="top">
      <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
      @Raw(Model.TemplateUtil.Subtemplate("EmailBannerSubTemplate"))
      <tr>
      <td align="center" valign="top">
      <!-- START BODY -->
      <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
      <tr>
      <td valign="top">
      <!-- Full Width Column -->
      <table border="0" cellpadding="0" cellspacing="0" width="600">
      <tr>
      <td valign="top" class="bodyContent">
      <!-- 1 Column -->
      <table border="0" cellpadding="20" cellspacing="0" width="100%">
      <tr>
      <td valign="top">
      <div>
      <h1 class="h1">Available Stock Notification</h1>
      <br />
      <table border="0" cellpadding="20" cellspacing="0" width="100%">
      <tr>
      <p>The following products are now back in stock:</p>
      <p><a href="@product["SEOUrl"]">@product["Description"]</a></p>
      </tr>
      </table>
      </div>
      </td>
      </tr>
      </table>
      <!-- 1 Column -->
      </td>
      </tr>
      </table>
      <!-- Full Width Column -->
      </td>
      </tr>
      </table>
      <!-- END BODY -->
      </td>
      </tr>
      @Raw(Model.TemplateUtil.Subtemplate("EmailFooterSubTemplate"))
      </table>
      <br />
      </td>
      </tr>
      </table>
      </center>
      </body>
      </html>
    6. Click Save & Close.
    7. Navigate to Content --> Assign Default Templates
    8. Search the page for 'stock' to locate the 'Stock Availability Notify Email Template' field.
    9. Update this field with the Template Description entered at Step 12 (you may need to click 'Show Others' to search the template list).
    10. Click Update at the bottom of the page.

    3. Create the Scheduled Task and Refresh the Dictionary


    1. Image Added

    2. Choose Misc Srock Availability Notify.
    3. Click Edit button.
    4. Search for the widget name Stock Availability Notify Message.
    5. Click Edit button.

    Image Added

    6. Under the General Options, you may start working with your text template on the Sub Header Text section.


    Image Added




    Content by Label
    showLabelsfalse
    max5
    spacesKB
    showSpacefalse
    sortmodified
    reversetrue
    typepage
    cqllabel in ("how-to","product","communications") and type = "page" and space = "KB"
    labelskb-how-to-article

    ...