7 require
'cart_rule_free_shipping.php';
11 'name' =>
'Free shipping for cart if item price >10',
18 'type' => \Magento\SalesRule\Model\Rule\Condition\Combine::class,
22 'is_value_processed' =>
null,
23 'aggregator' =>
'all',
29 'type' => Magento\SalesRule\Model\Rule\Condition\Product\Combine::class,
33 'is_value_processed' =>
null,
34 'aggregator' =>
'all',
37 'type' => Magento\SalesRule\Model\Rule\Condition\Product::class,
38 'attribute' =>
'quote_item_price',
41 'is_value_processed' =>
false,
47 'simple_action' =>
'by_percent',
48 'discount_amount' => 0,
49 'stop_rules_processing' => 0,
52 'apply_to_shipping' => 1,
55 'use_auto_generation' => 0,
56 'uses_per_coupon' => 0,
57 'simple_free_shipping' => 2,
61 \
Magento\Store\Model\StoreManagerInterface::class
62 )->getWebsite()->getId()
const COUPON_TYPE_NO_COUPON
static getObjectManager()