Document Tree
Document Properties
Kbid
25888M
Last Modified
13-Oct-2021
Added to KB
01-Aug-2014
Public Access
Everyone
Status
Online
Doc Type
Concepts
Product
  • ICM 7.10
  • ICM 11
  • ICM 12
Concept - Promotion - Customer Segments Assignment

Introduction

In previous versions of  Intershop 7 promotions could be assigned to consumer groups. Since Intershop 7.5 this is extended with a more general notion of customer segment. Technically the CustomerSegmentBO was introduced in Intershop 7.4 but the actual implementation was based only on underlying ConsumerGroupPO objects, there was no possibility to provide customer segments from external sources.

References

Concept - Customer Segmentation Managed Service

Brief Customer Segmentation Overview

Due to the introduction of Customer Segmentation Services in Intershop 7.5 (see the link above) it is possible to get customer segments from external systems. The internally managed Intershop customer segments (based on ConsumerGroupPO objects) are provided by the Standard Customer Segmentation Service. Other CustomerSegmentBO instances can be obtained by other implementations of CustomerSegmentationService which give access to some external segmentation sources like shown in the following picture:

Typically, when it is necessary to know which customer segments are applicable in a certain context (Catalog Views, Promotions, Price Lists, AB Tests - assignment, usage in storefront, etc), CustomerSegmentBOProvider has to be used as entry point. It checks for all activated segmentation services in the channel/application and retrieves the CustomerSegmentBOs they provide in a combined result.

Customer Segments in Promotion Context

Here is a class diagram of the classes involved in Promotion - Customer Segments interaction:

  • Use PromotionBOCustomerSegmentAssignmentExtension (a BO extension of PromotionBO) to get the segments assigned to a promotion.
  • Use the CustomerSegmentBOProvider to retrieve the segments of a customer, or all available segments in the current context.
    It traverses all customer segmentation services which are currently enabled for the current channel/application and combines all segments into a collection.

In the Commerce Management application segments can be assigned in Target Group tab of Promotion Details. Which customer segments are available for an assignment to the promotion depends on which applications are directly assigned to it (see the image below). Only segments which come from segmentation services enabled in the assigned applications will appear (regardless of which services are activated in the channel).

When processing the checkout, during the basket calculation step - when applying basket calculation rules - the customer segments of the current customer has to be retrieved (this can be achieved by using CustomerSegmentBOProvider). Then it can be checked which promotions are applicable for these segments. Because of the external Customer Segmentation Services, it is possible that for a promotion assignment exist segments which are no longer available (e.g., due to a stopped segmentation service or deleted segments in an external system). This means, to ensure to apply valid segments, each time the segments assigned to a promotion and segments returned by CustomerSegmentBOProvider must be compared.

The customer segments has to be applied also in ProcessPromotion-GetApplicablePromotions pipeline where the promotions for a product are retrieved.
Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.