public function sku(array $condition, array $data)
    {
        if (empty($data['cart']['items']) || !in_array($condition['operator'], array('=', '!='))) {
            return false;
        }

        return $this->compare(array_keys($data['cart']['items']), $condition['value'], $condition['operator']);
    }
public function sku(array $condition, array $data)
    {
        if (empty($data['cart']['items']) || !in_array($condition['operator'], array('=', '!='))) {
            return false;
        }

        return $this->compare(array_keys($data['cart']['items']), $condition['value'], $condition['operator']);
    }
public function sku ( array $ condition , array $ data ) { if ( empty ( $ data [ 'cart' ] [ 'items' ] ) || ! in_array ( $ condition [ 'operator' ] , array ( '=' , '!=' ) ) ) { return false ; } return $ this -> compare ( array_keys ( $ data [ 'cart' ] [ 'items' ] ) , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
Whether the cart product SKU condition is met
@param array $condition
@param array $data
@return boolean
Whether the cart product SKU condition is met