promotion updates

27
© 2010 IBM Corporation WebSphere Commerce V7 Feature pack 1 Management Center updates - Promotions This presentation provides an overview of the updates to the Management Center Promotions tool in WebSphere® Commerce V7.0 feature pack 1.

Upload: skepticrunner

Post on 21-Apr-2015

83 views

Category:

Documents


10 download

DESCRIPTION

WebSphere Commerce V7 Feature pack 1Management Center updates - Promotions© 2010 IBM CorporationThis presentation provides an overview of the updates to the Management Center Promotions tool in WebSphere® Commerce V7.0 feature pack 1.Goals� To understand the new features available in the Management Center Promotions tool2Management Center updates - Promotions© 2010 IBM CorporationThe goal of this presentation is to introduce the Promotions features that have been added in featu

TRANSCRIPT

Page 1: Promotion Updates

© 2010 IBM Corporation

WebSphere Commerce V7 Feature pack 1

Management Center updates - Promotions

This presentation provides an overview of the updates to the Management Center Promotions tool in WebSphere® Commerce V7.0 feature pack 1.

Page 2: Promotion Updates

Goals

� To understand the new features available in the Management Center Promotions tool

2 Management Center updates - Promotions © 2010 IBM Corporation

The goal of this presentation is to introduce the Promotions features that have been added in feature pack 1. If you are not familiar with Management Center or the Promotions tool you should review that material before viewing the presentation.

Page 3: Promotion Updates

Table of contents

� General promotion updates

� Unique promotion code support

� Troubleshooting

3 Management Center updates - Promotions © 2010 IBM Corporation

This presentation begins with a look at some general updates to the Promotions tool. An overview of the unique promotion code support follows and is the main focus of this presentation. Some troubleshooting suggestions are covered in the last section.

Page 4: Promotion Updates

General promotion updates

� New exclusivity option

� ‘manufacturer’ added as predefined attribute name for filtering

4 Management Center updates - Promotions © 2010 IBM Corporation

When defining a promotion in Management Center, there is a new option for how a promotion can be combined with other promotions. The stackable option allows you to override certain promotion policies that otherwise limit shoppers to one promotion per item or one order-level promotion per order. When a promotion is identified as stackable, additional promotions from the same promotion group can still be applied.

The promotion attribute filter allows you to use descriptive, defining attributes and values to reduce the scope of catalog entries offered for a promotion. In feature pack 1, you can also use the manufacturer information associated with a catalog entry as an attribute filter. You use the attribute name ‘manufacturer’ and provide the value or values you want to include or exclude from the promotion.

Page 5: Promotion Updates

Payment based promotion update

� Introduced in Management Center in V7.0 – No sample implementation in Madisons

� Sample ‘unbound payment’ implementation included with Brazil starter store – Recalculates cart based on promotions applicable to payment method selected

5 Management Center updates - Promotions © 2010 IBM Corporation

Support for payment based promotions, such as 5% off when you pay with a store credit card, was added in version 7. At the time, there was no sample implementation for this feature provided in the Madisons starter store. Instructions are provided in the Information Center.

In feature pack 1, you can find a sample implementation of payment based promotions in the Brazil starter store. When a payment method is selected or changed, the order is recalculated to determine whether any promotions apply to the newly selected payment method.

Page 6: Promotion Updates

© 2010 IBM Corporation 6 Management Center updates - Promotions

Unique promotion codes

This section covers the new unique promotion code feature.

Page 7: Promotion Updates

Unique promotion codes

� Multiple codes defined for a single promotion – Generated based on simple pattern – Generated based on advanced pattern – Imported from CSV file

� Each code can be redeemed exactly once

� Codes can be distributed using e-mail activities – Codes are not assigned to a specific customer

7 Management Center updates - Promotions © 2010 IBM Corporation

A unique promotion code is a value that can be redeemed exactly once. It cannot be shared or passed between friends or family members. Setting up a promotion with unique codes requires a much larger number of codes then when public codes are used. For this reason, unique codes are either generated or imported. Management Center supports the creation of either simple or advanced system-generated codes. If you have an external system that generates promotion codes, you can import them into Management Center as a comma separated value file. A promotion can then be created using the unique imported codes. Promotion codes can be distributed using e-mail activities but are not tied to a specific customer.

Page 8: Promotion Updates

© 2010 IBM Corporation 8 Management Center updates - Promotions

Defining a simple promotion code

A simple promotion code is composed of a fixed prefix, a specified number of generated characters and a fixed suffix. The number of possible codes is shown along with an example of what a complete promotion code will look like.

Page 9: Promotion Updates

© 2010 IBM Corporation 9 Management Center updates - Promotions

Defining an advanced promotion code

Uppercase alpha­

numeric

Uppercase letters

Advanced system-generated unique promotion codes are defined using a single string that combines fixed characters and generated characters. You can find a reference of the different types of generated characters in the Information Center.

Page 10: Promotion Updates

© 2010 IBM Corporation 10 Management Center updates - Promotions

Importing codes

Comma-separated value files of promotion codes can be imported for use in a promotion. Each code is entered on a new line in the file.

Page 11: Promotion Updates

© 2010 IBM Corporation 11 Management Center updates - Promotions

Using imported promotion codes

Once the file containing the promotion codes has been imported, you can use it to define a new promotion.

Page 12: Promotion Updates

© 2010 IBM Corporation 12 Management Center updates - Promotions

Distributing unique promotion codes

A new e-mail template option has been added for distributing unique promotion codes to shoppers. Choose ‘Promotion code’ from the Insert content drop down and select the promotion you want to send codes for. The promotion must be active before it can be added to the e-mail template. Each customer on the distribution list for the e-mail receives a unique code to use in the store. The codes are not assigned to a specific shopper though. If there are more customers on the distribution list than available codes, those customers will not receive the e-mail.

Page 13: Promotion Updates

Promotion code generation

� Promotion codes are generated on promotion activation – New promotion state during code generation / import

• Activating – Active promotion means codes generated successfully – A code generation error will cause promotion activation to fail

� Performance is impacted by the percentage of available codes to be generated – Performance decreases as percentage use increases

13 Management Center updates - Promotions © 2010 IBM Corporation

The set of unique codes for a promotion are generated when the promotion is activated. The length of time it takes to generate the codes depends on the number of codes to be generated and the total number of possible codes for a given pattern. As the number of codes to be generated approaches the total number of possible codes, performance can decrease. This occurs when the generator has to retry several times to find a remaining unused code. Where possible, you should define a code pattern that has at least twice as many available options as the number of promotion codes you need to generate.

Page 14: Promotion Updates

Configuration

� xml/config/com.ibm.commerce.promotion-fep/wc-admin-component.xml – Definitions for code generation – Number of codes to import/generate at a time

• <_config:property name="CodePopulateBatchSize" value="1000"/> – Length of time to wait before releasing a unique code

• <_config:property name="WaitingPeriodForUniqueCodeRelease" value="1440"/>

14 Management Center updates - Promotions © 2010 IBM Corporation

There is a separate promotion configuration file for feature pack 1. This file contains the definitions of which characters represent which code generation patterns.

The CodePopulateBatchSize property specifies the number of promotion code to generate or import in a single scheduler job. The default is 1000 but this can be changed to minimize the database locking on the code table.

The WaitingPeriodForUniqueCodeRelease property specifies the number of minutes to wait before a unique promotion code applied to an order by a guest shopper is considered abandoned and can be assigned by another shopper.

Page 15: Promotion Updates

New tables

� PX_CDSPEC – Promotion code information

� PX_CDPOOL – Generated promotion codes

� PX_CDPROMO – Code to promotion mapping table

� PX_CDUSAGE – Promotion code usage information

15 Management Center updates - Promotions © 2010 IBM Corporation

Four new database tables have been created to support unique promotion codes.

Page 16: Promotion Updates

Table management

� Use Dbclean to manage number of entries in – PX_CDPOOL – PX_CDPROMO – PX_CDUSAGE

16 Management Center updates - Promotions © 2010 IBM Corporation

The tables listed here have one row added for each unique promotion code generated or imported. If you create a large number of promotions that use unique code, you should periodically clean up expired codes using the Dbclean utility.

Page 17: Promotion Updates

© 2010 IBM Corporation 17 Management Center updates - Promotions

Troubleshooting

This section covers some possible error conditions with unique promotion codes and how to identify them.

Page 18: Promotion Updates

Error condition examples

� Invalid code

� Attempt to generate more codes than the number available

� Imported code is a duplicate

� Imported codes are too long

� Unique code has already been used

� Code doesn’t exist

18 Management Center updates - Promotions © 2010 IBM Corporation

The next five slides show some examples of error conditions related to unique promotion codes.

Page 19: Promotion Updates

Invalid code or too many to generate

ProcessUniquePromotionCodeActivateActionCmdImpl - validatePromotionSpec

The promotion named "A_CodeTest" cannot be activated because its code pattern definition is invalid. Update the pattern definition and activate the promotion again.

com.ibm.commerce.promotion.facade.server.commands.ProcessUniquePromotionCodeActivateActionCmdI mpl performExecute THROW

com.ibm.commerce.promotion.uniquecode.PromotionCodeException

19 Management Center updates - Promotions © 2010 IBM Corporation

This error condition is prevented by the Management Center interface but is possible if promotion data is loaded. The message is written to the log file and the Management Center message console.

Page 20: Promotion Updates

Duplicate code in import

UniquePromotionCodesPopulateCmdImpl - getPromotionCodes

PromoCodeLoaderSource loadPromotionCodesFromCSVContent

com.ibm.commerce.promotion.internal.source.PromoCodeLoaderSource loadPromotionCodesFromCSVContent THROW

com.ibm.commerce.promotion.uniquecode.PromotionCodeException…

com.ibm.commerce.promotion.uniquecode.commands.UniquePromotionCodesPopulateCmdImpl performExecute _ERR_LOAD_PROMOTION_CODE_FAIL

Message in promotion properties

Message in Code Import properties

20 Management Center updates - Promotions © 2010 IBM Corporation

If a file of imported promotion codes contains duplicate values or a duplicate of a code already in the database, an exception is thrown when the promotion is activated. In this case an error message is not shown in the message console. The promotion properties will indicate that the codes failed to populate and the detailed error message is located on the promotion code import properties page.

Page 21: Promotion Updates

Imported code is too long

UniquePromotionCodesPopulateCmdImpl - populateCodeToDB

com.ibm.commerce.foundation.internal.server.services.dataaccess.graphbuilderservice.jdbc.JDBCGraphBui lderService saveGraph Original exception: A truncation error was encountered trying to shrink VARCHAR '012345678901234567890123456789012345678901234567890123456789&' to length 128.

21 Management Center updates - Promotions © 2010 IBM Corporation

If a file of imported promotion codes contains a code that is too long, more than 128 characters, it is flagged when the promotion is activated. In Management Center, this error is displayed in the same way as the previous error except with different details on the promotion code import properties page.

Page 22: Promotion Updates

Unique code has already been used

com.ibm.commerce.marketing.commands.AddPromotionCodeToOrderCOTaskCmdImpl addUniquePromotionCodeToOrder Promotion code "a8z" is invalid.

22 Management Center updates - Promotions © 2010 IBM Corporation

If a unique promotion code exists but has already been used, the code is flagged as invalid in the AddPromotionCodeToOrderCO task command.

Page 23: Promotion Updates

Code doesn’t exist

com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBeanPersistenceManager findActivePromotionByCodePatternAndStoreID() code=%a9z%

com.ibm.commerce.marketing.commands.PromotionCodeAddRemoveControllerCmdImpl validatePromotionCode Promotion code "a9z" is invalid.

23 Management Center updates - Promotions © 2010 IBM Corporation

If a promotion code doesn’t exist at all, it is still flagged as invalid but this time in the PromotionCodeAddRemove controller command.

Page 24: Promotion Updates

© 2010 IBM Corporation 24 Management Center updates - Promotions

Summary

� General promotion updates

� Unique promotion code support

� Troubleshooting

This presentation began with a look at some general updates to the Promotions tool. An overview of the unique promotion code support followed and the presentation concluded with some troubleshooting suggestions.

Page 25: Promotion Updates

© 2010 IBM Corporation 25 Management Center updates - Promotions

References

� Promotions – http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/index.jsp?topic=/com.ibm.commerce.management-center.doc/concepts/cprover.htm

This slide contains some useful references for further reading.

Page 26: Promotion Updates

Feedback

Your feedback is valuable You can help improve the quality of IBM Education Assistant content to better meet your needs by providing feedback.

� Did you find this module useful?

� Did it help you solve a problem or answer a question?

� Do you have suggestions for improvements?

Click to send e-mail feedback: mailto:[email protected]?subject=Feedback_about_DigitalCoupon.ppt

This module is also available in PDF format at: ../DigitalCoupon.pdf

26 Management Center updates - Promotions © 2010 IBM Corporation

You can help improve the quality of IBM Education Assistant content by providing feedback.

Page 27: Promotion Updates

27

Trademarks, disclaimer, and copyright information

IBM, the IBM logo, ibm.com, and WebSphere are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of other IBM trademarks is available on the Web at "Copyright and trademark information" at http://www.ibm.com/legal/copytrade.shtml

THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY. WHILE EFFORTS WERE MADE TO VERIFY THE COMPLETENESS AND ACCURACY OF THE INFORMATION CONTAINED IN THIS PRESENTATION, IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN ADDITION, THIS INFORMATION IS BASED ON IBM’S CURRENT PRODUCT PLANS AND STRATEGY, WHICH ARE SUBJECT TO CHANGE BY IBM WITHOUT NOTICE. IBM SHALL NOT BE RESPONSIBLE FOR ANY DAMAGES ARISING OUT OF THE USE OF, OR OTHERWISE RELATED TO, THIS PRESENTATION OR ANY OTHER DOCUMENTATION. NOTHING CONTAINED IN THIS PRESENTATION IS INTENDED TO, NOR SHALL HAVE THE EFFECT OF, CREATING ANY WARRANTIES OR REPRESENTATIONS FROM IBM (OR ITS SUPPLIERS OR LICENSORS), OR ALTERING THE TERMS AND CONDITIONS OF ANY AGREEMENT OR LICENSE GOVERNING THE USE OF IBM PRODUCTS OR SOFTWARE.

© Copyright International Business Machines Corporation 2010. All rights reserved.

© 2010 IBM Corporation

27