My Oracle Support Banner

Promotion not Applied when the Eligible Product Defined as a Qualifier in PMDL Rule (Doc ID 2848022.1)

Last updated on FEBRUARY 08, 2022

Applies to:

Oracle Commerce Cloud Service - Version 21.4.3 and later
Information in this document applies to any platform.

Symptoms

ISSUE STATEMENT

Requirement is to create a promotion adding productA, productB and productC to the cart would lead to 10% discount on productA, the promotion created with the following pmdl not applying this promotion to the eligible product,

"pmdl": {
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><!DOCTYPE pricing-model SYSTEM \"dynamosystemresource:/atg/dtds/pmdl/pmdl_1.0.dtd\"><pricing-model><qualifier><anded-union><next number=\"1\" sort-by=\"priceInfo.listPrice\" sort-order=\"descending\"><collection-name>items</collection-name><element-name>item</element-name><aggregator name=\"quantity\" operation=\"total\"/><equals><value>item.auxiliaryData.productId</value><constant><data-type>java.lang.String</data-type><string-value>productA</string-value></constant></equals></next><next number=\"1\" sort-by=\"priceInfo.listPrice\" sort-order=\"descending\"><collection-name>items</collection-name><element-name>item</element-name><aggregator name=\"quantity\" operation=\"total\"/><equals><value>item.auxiliaryData.productId</value><constant><data-type>java.lang.String</data-type><string-value>productB</string-value></constant></equals></next><next number=\"1\" sort-by=\"priceInfo.listPrice\" sort-order=\"descending\"><collection-name>items</collection-name><element-name>item</element-name><aggregator name=\"quantity\" operation=\"total\"/><equals><value>item.auxiliaryData.productId</value><constant><data-type>java.lang.String</data-type><string-value>productC</string-value></constant></equals></next></anded-union></qualifier><offer><discount-structure adjuster=\"10.0\" calculator-type=\"standard\" discount-type=\"percentOff\"><target><up-to-and-including number=\"1\" sort-by=\"priceInfo.listPrice\" sort-order=\"ascending\"><collection-name>items</collection-name><element-name>item</element-name><aggregator name=\"quantity\" operation=\"total\"/><equals><value>item.auxiliaryData.productRef.id</value><constant><data-type>java.lang.String</data-type><string-value>productA</string-value></constant></equals></up-to-and-including></target></discount-structure></offer></pricing-model>"
}

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.