Adding support to store pages for promotions that specify a target payment type

When creating certain promotions using the Management Center Promotions tool, business users can specify that customers must pay for their order using a Target payment type to qualify for the promotion. For example, the customer must pay using a credit card to qualify. The Madisons starter store does not support this promotion feature without customization.

About this task

You can add support for this promotion feature using a set of files provided for this customization. When the payment type promotions function is enabled through this customization, orders and promotions will be re-evaluated when the customer chooses their payment method.

Feature Pack 5If you are using the Aurora starter store, you do not need to perform this procedure. The Aurora starter store supports payment type promotions without customization. You can enable the Payment type promotions function within the Store Management tool in Management Center. On the Checkout tab, select the Payment type promotions check box to enable the function. For more information about enabling store functions, see Selecting store functions.

Feature Pack 1If you are using the Brazil starter store, you do not need to perform this procedure. The Brazil starter store supports payment type promotions without customization.

Procedure

  1. Navigate to the following directory:

    WC_installdir/samples/stores/Madisons/PaymentTypePromotion

  2. Copy or deploy the customization files found in the PaymentTypePromotion directory:
    • WebSphere Commerce DeveloperCopy the files in the directory to the WC_installdir/workspace/Stores/WebContent/<store directory> folder, keeping the same directory structure.

      Tip: <store directory> is your store's directory name, for example, Madisons or MadisonsStorefrontAssetStore.

    • WebSphere Commerce EnterpriseWebSphere Commerce ProfessionalWebSphere Commerce - ExpressDeploy the files to your EAR:
      1. Make a ZIP file relative to your EAR containing all the folders inside WC_installdir/samples/stores/Madisons/PaymentTypePromotion directory
        For example, your ZIP file should have a directory structure like this:
        ZIP file for payment type JSP pages
      2. Deploy the ZIP file.
  3. To make sure the new files are compiled and take effect, remove all the compiled JSP files for the store where the changes have been applied:
    • WebSphere Commerce DeveloperDelete the contents of this folder:

      WC_installdir\wasprofile\temp\localhost\server1\WC\Stores.war\<store directory>

    • WebSphere Commerce EnterpriseWebSphere Commerce ProfessionalWebSphere Commerce - ExpressDelete the contents of this folder:

      C:\WebSphere\AppServer\profiles\demo\temp\WC_demo_node\server1\WC_demo\Stores.war\<store directory>

      Tip: <store directory> is your store's directory name, for example, Madisons or MadisonsStorefrontAssetStore.

    To view the changes made in these files to support payment type promotions, search for Payment type promotion. Changes are marked with comments that begin with these words.