dw_product_bulk_discount
Apply a percentage discount to product base prices in bulk. Target a product group or specific product IDs to modify DefaultPrice in-place.
Instructions
Apply a percentage discount to DefaultPrice across a set of products (modifies the base price in-place). Target either a groupId (all products in the group) or an explicit productIds array. Returns per-product old/new price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | No | Apply to all products in this group | |
| productIds | No | Explicit product IDs | |
| percent | Yes | Discount percentage, e.g. 15 for 15% off | |
| languageId | No | LANG1 | |
| decimals | No | Round new price to N decimals | |
| pagingSize | No | Max products fetched when using groupId |