IBM Support

JR53362: Enhance promotion engine to allow customization for applying multiple promotion codes for the same promotion.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as new function.

Error description

  • Promotion codes that originate from the same promotion cannot be
    redeemed more than once for a given order at store front.
    

Local fix

Problem summary

  • USERS AFFECTED:
    Websphere Commerce V7 customers who wish to have multiple
    promotion codes applied for the same promotion through
    customization.
    
    PROBLEM ABSTRACT:
    Enhance promotion engine to allow customization for applying
    multiple promotion codes for the same promotion.
    
    BUSINESS IMPACT:
    Promotion engine cannot be customized to allow applying multiple
     adjustments for the same promotion through redemption of
    promotion codes.
    
    RECOMMENDATION:
    

Problem conclusion

  • Exposed a new protected method computeCostBasedDistribution in
    the Distribution class. This method can be extended and called
    multiple times, once for each time the promotion needs to be
    applied.
    
    A new value was added into the Promotion interface called
    codeCouponPerOrderLimit which controls how many codes can be
    applied for the same promotion.  By default this value is 1 for
    compatibility with existing promotion logic and must be set
    through customization.
    
    New methods were also introduced in the PromotionContext to
    retrieve all the codes the shopper has applied: getCodesFor
    which returns all codes added that relate to a particular
    promotion, and getAppliedCodesFor which returns the subset of
    added codes which could be applied for a particular promotion,
    up to the codeCouponPerOrderLimit.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR53362

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / New Function

  • Submitted date

    2015-05-15

  • Closed date

    2015-06-25

  • Last modified date

    2015-07-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
12 December 2021