This promotion offers free shipping when the shopper purchases items from a specified collection.

The following example creates a promotion that offers free shipping when a shopper buys anything from the Summer Favorites collection, whose ID is cat60036.

{
  "displayName":"Spend $10 in Summer Favorites, Get Free Shipping",
  "description":A sample spend y in x get shipping discount promotion,
  "priceListGroups":["defaultPriceGroup"],
  "enabled":true,
  "priority":"1",
  "startDate":"2016-03-10T00:00:00.000-05:00",
  "endDate":"2016-03-30T00:00:00.000-05:00",
  "templatePath": "shipping",
  "templateName": "rawPmdlTemplate",
    "templateValues":{"pmdl": {"xml": "<pricing-model><qualifier><quantifier
 name=\"at-least\" number=\"10\"><collection-name>items</collection-name>
 <element-name>item</element-name><aggregator name=\"spendAmount\"
 operation=\"total\"/><comparator name=\"includes-any\">
<value>item.auxiliaryData.productRef.ancestorCategoryIds</value>
<constant><data-type>java.util.Set</data-type>
<string-value>cat60036</string-value></constant></comparator>
</quantifier></qualifier> <offer><discount-structure calculator-type=\"standard\"
 discount-type=\"fixedPrice\" adjuster=\"0\"></discount-structure>
</offer></pricing-model>"}
}

Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices