Product-Template testing substitutes an alternate template for one or more products. There are four types of product template substitutions. Test templates can replace normal templates in the following situations:

Follow these steps to set up a test element to test alternate product template.

  1. Create a new test or edit an existing test. See Creating a New Test or Editing Tests for more information.

  2. Select the Test Groups tab and set up the test groups for the test. See Defining Test Groups for more information.

  3. Click the New Element button in the test group that you want to test.

  4. Select Product Template and click Next. The New Product Template window opens

  5. Select the template and catalog that you want to use in the test and click Next. The New Template Usage window opens.

  6. Select one of the following:

    • Test new template with all products: Select this option and click Finish to replace all product templates with the specified test template.

    • Test new template with all products in specific categories: Select this option and click Next to view the Select Categories window.

      The Select Categories window allows you to select specific categories in which to replace the product template or to exclude selected categories from the test. Search for the categories and use the > icon to add the categories to the Selected Categories box. Click Finish when complete.

      Note: If you are using an Oracle or DB2 database, no categories that meet your criteria may appear when you click Search. To resolve this issue, override the useFullTextSearch property in the /atg/abtest/web/commerce/element/template/
      ProductSearchFormHandler.properties
      component. Set the property to false.

    • Test new template with individual products: Select this option and click Next to view the Select Product window:

      The Select Products window allows you to select specific products in which to replace the new product template. You can also select products to exclude from the test. Search for the products and use the > icon to add the products to the Selected Products box. Click Finish when complete.

    • Use new template to replace existing template in all or some categories: Select this option and click Next to view the Replace Template window.

The Replace Template window allows you to select a specific product template to replace only in specific categories. You can set the template to replace across all categories, you can set specific categories, or you can exclude certain categories. Search for the categories and use the > icon to add the categories to the Selected Categories box. Click Finish when complete.

After finishing the test element, you can add another element to the test group, preview the test group or start the test. See Previewing Tests and Completing and Deploying Tests for more information.