The purchase and purchase item feeds both reference a property "percentage" on product discount line items. However, this property only exists for a subset of the available discount types (eg, it doesn't exist for a flat amount discount or for a free shipping discount, etc.
|
orderCSVAttributes.push(lineItem.appliedDiscount.percentage); |
|
orderCSVAttributes.push(productLineItem.priceAdjustments[0].appliedDiscount.percentage); |
See subclasses of this:
https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/current/scriptapi/html/index.html?target=class_dw_campaign_Discount.html
The purchase and purchase item feeds both reference a property "percentage" on product discount line items. However, this property only exists for a subset of the available discount types (eg, it doesn't exist for a flat amount discount or for a free shipping discount, etc.
bloomreach-salesforce-commercecloud-b2c-integration/cartridges/int_bloomreach_engagement/cartridge/scripts/helpers/BloomreachEngagementGenerateCSVHelper.js
Line 96 in ec43840
bloomreach-salesforce-commercecloud-b2c-integration/cartridges/int_bloomreach_engagement/cartridge/scripts/helpers/BloomreachEngagementGenerateCSVHelper.js
Line 208 in ec43840
See subclasses of this:
https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/current/scriptapi/html/index.html?target=class_dw_campaign_Discount.html