protected function checkZoneIdByAddressData($condition, $data)
    {
        if (empty($data['data']['order']['address'])) {
            return false;
        }

        $ids = $this->getAddressZoneId($data['data']['order']['address']);
        return $this->compare($ids, $condition['value'], $condition['operator']);
    }
protected function checkZoneIdByAddressData($condition, $data)
    {
        if (empty($data['data']['order']['address'])) {
            return false;
        }

        $ids = $this->getAddressZoneId($data['data']['order']['address']);
        return $this->compare($ids, $condition['value'], $condition['operator']);
    }
protected function checkZoneIdByAddressData ( $ condition , $ data ) { if ( empty ( $ data [ 'data' ] [ 'order' ] [ 'address' ] ) ) { return false ; } $ ids = $ this -> getAddressZoneId ( $ data [ 'data' ] [ 'order' ] [ 'address' ] ) ; return $ this -> compare ( $ ids , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
Whether the state ID condition is met using form fields
@param array $condition
@param array $data
@return boolean
Whether the state ID condition is met using form fields