public function itemId(array $condition, array $data)
    {
        if (!isset($data['product_id']) || !isset($data['bundle'])) {
            return false;
        }

        if (!is_array($data['bundle'])) {
            $data['bundle'] = explode(',', (string) $data['bundle']);
        }

        return $this->compare($data['bundle'], $condition['value'], $condition['operator']);
    }
public function itemId(array $condition, array $data)
    {
        if (!isset($data['product_id']) || !isset($data['bundle'])) {
            return false;
        }

        if (!is_array($data['bundle'])) {
            $data['bundle'] = explode(',', (string) $data['bundle']);
        }

        return $this->compare($data['bundle'], $condition['value'], $condition['operator']);
    }
public function itemId ( array $ condition , array $ data ) { if ( ! isset ( $ data [ 'product_id' ] ) || ! isset ( $ data [ 'bundle' ] ) ) { return false ; } if ( ! is_array ( $ data [ 'bundle' ] ) ) { $ data [ 'bundle' ] = explode ( ',' , ( string ) $ data [ 'bundle' ] ) ; } return $ this -> compare ( $ data [ 'bundle' ] , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
Whether the product is a bundled item and its ID is in a list of allowed IDs
@param array $condition
@param array $data
@return boolean
Whether the product is a bundled item and its ID is in a list of allowed IDs