8 class Found extends \Magento\SalesRule\Model\Rule\Condition\Product\Combine
20 parent::__construct($context, $ruleConditionProduct,
$data);
31 $this->setValueOption([1 =>
__(
'FOUND'), 0 =>
__(
'NOT FOUND')]);
43 "If an item is %1 in the cart with %2 of these conditions true:",
47 if ($this->
getId() !=
'1') {
62 $all = $this->getAggregator() ===
'all';
68 $validated = $cond->validate(
$item);
69 if ($all && !$validated || !$all && $validated) {
74 if ($found && $true || !$true && $found) {
79 if ($found && $true) {
81 }
elseif (!$found && !$true) {
elseif(isset( $params[ 'redirect_parent']))
__construct(\Magento\Rule\Model\Condition\Context $context, \Magento\SalesRule\Model\Rule\Condition\Product $ruleConditionProduct, array $data=[])
validate(\Magento\Framework\Model\AbstractModel $model)