Develop > Presentation layer > Customize promotions > Promotions customization: Management Center


Add 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.

You can add support for this promotion feature using a set of files provided for this customization.

If 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_INSTALL/samples/stores/Madisons/PaymentTypePromotion

  2. Copy or deploy the customization files found in the PaymentTypePromotion directory:

    • Copy the files in the directory to the WC_INSTALL/workspace/Stores/WebContent/<store directory> folder, keeping the same directory structure.


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

    • Deploy the files to the EAR:

      1. Make a ZIP file relative to the EAR containing all the folders inside WC_INSTALL/samples/stores/Madisons/PaymentTypePromotion directory

        For example, the ZIP file should have a directory structure like this:

      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:

    • Delete the contents of this folder:

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

    • Delete 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 the 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.


+

Search Tips   |   Advanced Search