Tell A Friend Mail Generator |
Copyright © 1999, William Weiland |
Overview Provide an easy interface for visitors to refer your site URL to their friends. It uses the MIVA SMTP capability. The subject and body of the Tell a Friend message is configurable through the Merchant admin interface. If the customer sends this email when they are on a specific product screen, a second link to the product is included in the email. Also configurable is the customer screen and optional log and store emails. |
|
Initial Setup There are two files in the mailgen.zip distribution file. Unzip mailgen.zip. Upload the mailgen.mvc as a module (steps 1-19). The mailgen.mvt and mailgencssui.mvt are templates and are copied and pasted per the instructions when you get to that step. 1) In admin, click Add Modules link (fig 2) 2) Click the file upload button 3) Browse to find the mailgen.mvc file on your hard drive and upload (fig 3) 4) Click Add to add it to the domain 5) Then in admin click on the plus to the left of Stores 6) Click the plus to the left of your store name 7) Click on the word Utilities under your store (fig 9) 8) Check the box next to Mail Generator 9) Click Update 10) Click on System Extension Configuration link (fig 10) 11) Check the box next to Mail Generator 12) Click Update 13) Click Pages link to get to the User Interface (fig 4) 14) Click Items link at the top of the User Interface page (fig 5) 15) Click the Add Item button (fig 6) 16) Enter mailgen for the code (fig 8) 17) Look up and scroll to the last page of items and Mail Generator should be at the end of the list of items 18) Select Mail Generator 19) Click the Add button to assign the module 20) Again, click Pages link to the User Interface (fig 4) 21) Click the Add Page button 22) Enter the page Code as TELL (fig 7) 23) Enter the page Name as Tell A Friend 24) To get started, copy the contents of mailgen.mvt (if using MMUI) or mailgencssui.mvt (if using CSSUI) to the clipboard and paste it into the page Template input and click the Add button. Note: this is a complete page with several lines. If your text editor opens it as an html file, you will need to view source in order to copy the contents to the clipboard. 25) Click on the Items link at the top and assign the following items to the page and update: a) If using MMUI - head, hdft, store, body, messages, mmui_messages, category_tree, navbar, colors, fonts, customerlink, affiliatelink, mailgen b) If using CSSUI - html_profile head store navbar hdft category_tree mailgen 26) See the editing requirements below on how to add the Tell A Friend button to pages in the store. You can put the button on any page. As you can see, it is already in the newly created TELL page. |
|
Configuration Settings In the store utility configuration screen, enter data into the applicable input fields of the Mail Generator. Subject Letter Body Store Email (Optional) Form Button Form Button Image (Optional) Form Button Location Screen Title Font Size, Face, Color Table Background Flat File Log Templates |
|
Editing Requirements The module is called within specific template screens with render tokens. They are in the format of <mvt:item name="itemcode" param="xxxx" /> The templates are listed at the Pages link. You will edit the template by inserting the token and clicking the Update. Important: After adding the render token to a template page, you must click the Items link for that page, scroll down to the item name and assign it to the page (fig 8). These two steps are repeated for every page that a module's render token is used on. On the pages where you want the button to appear, insert <mvt:item name="mailgen" param="button" /> Beginning with the tell a friend module version 5.008, you can change the destination screen the customer is taken to after the emails have been sent. The default is prod, srch, gift if the customer is on one of those screens. Otherwise, the destination is sfnt. If you include a hidden input in the form, you can override that destination screen. For example, <input type="hidden" name="Screen_Override" value="TELL"> will take the customer back to the tell a friend form. This destination is useful if you want to put the tell a friend screen in a popup instead of within the full merchant screen. You'll need to know javascript coding to do popups; this example is just a hint that it can be done. |
|
Thank You Message Beginning with the tell a friend module version 5.008, you can include a thank you message on the screen after the emails. This example code can be placed in the template of the screen, e.g. sfnt page. You can even include a coupon code if you have our coupon module which can generate unique coupons on-the-fly. <mvt:if expr="(g.SubScreen EQ 'TELLSEND') AND (g.their_email1) AND (g.mailgen_address_error EQ 0)"> <center> <table border="0" width="450" bgcolor="#ffff00"> <tr> <td> <mvt:item name="fonts" param="body_font"> Thanks for the referral. Use coupon code <b> THANKS </b> for a discount off your next order at our store. </mvt:item> </td> </tr> </table> </center> </mvt:if> |
Fig 1: Main admin screen
Fig 2: Add a new module Fig 3: Upload the module to the server Fig 4: Template page selection Fig 5: Items list Fig 6: Add a new item Fig 7: Add a new template page Fig 8: Assign a page item to the template Fig 9: Assigning a module to the store Fig 10: Assigning a module to the store |