Tutorials > Customize the Consumer Direct sample store > Customizing the consumer direct sample store using snippets

< Previous | Next >


Register the e-mail template

In this step, you insert an entry into the database that contains the path to the JSP page that contains the e-mail template.


Tips:

Register the e-mail template:


Procedure

  1. Ensure the test environment is started.

  2. In a Web browser, open the following URL: http://localhost/webapp/wcs/admin/servlet/db.jsp

  3. Enter the following SQL statement and click Submit Query:

    insert into emlmsg (emlmsg_id, jsppath, propertyfile, name, description, storeent_id) 
      values (emlmsg_id,  'http://hostname:80/webapp/wcs/stores/servlet/MyApparelStore/template/EmailActivityMessage.jsp', 
           '', 'EmailActivityMessage', 'E-mail activity message for the Snippet tutorial.', store_id);
    

    Where:

    hostname

    is the fully qualified hostname of the machine running WebSphere Commerce Developer.

    emlmsg_id

    is a unique integer ID for this e-mail message template and store.

    store_id

    is the unique id that identifies this store.

< Previous | Next >


+

Search Tips   |   Advanced Search