public function resetMarketplaceFilter(){
        foreach($this->options as $op=>$junk){
            if(preg_match("#MarketplaceId#",$op)){
                unset($this->options[$op]);
            }
        }

        //reset to store's default marketplace
        if (file_exists($this->config)){
            include($this->config);
        } else {
            throw new Exception('Config file does not exist!');
        }
        if(isset($store[$this->storeName]) && array_key_exists('marketplaceId', $store[$this->storeName])){
            $this->options['MarketplaceId.Id.1'] = $store[$this->storeName]['marketplaceId'];
        } else {
            $this->log("Marketplace ID is missing",'Urgent');
        }
    }
public function resetMarketplaceFilter(){
        foreach($this->options as $op=>$junk){
            if(preg_match("#MarketplaceId#",$op)){
                unset($this->options[$op]);
            }
        }

        //reset to store's default marketplace
        if (file_exists($this->config)){
            include($this->config);
        } else {
            throw new Exception('Config file does not exist!');
        }
        if(isset($store[$this->storeName]) && array_key_exists('marketplaceId', $store[$this->storeName])){
            $this->options['MarketplaceId.Id.1'] = $store[$this->storeName]['marketplaceId'];
        } else {
            $this->log("Marketplace ID is missing",'Urgent');
        }
    }
public function resetMarketplaceFilter ( ) { foreach ( $ this -> options as $ op => $ junk ) { if ( preg_match ( "#MarketplaceId#" , $ op ) ) { unset ( $ this -> options [ $ op ] ) ; } } //reset to store's default marketplace if ( file_exists ( $ this -> config ) ) { include ( $ this -> config ) ; } else { throw new Exception ( 'Config file does not exist!' ) ; } if ( isset ( $ store [ $ this -> storeName ] ) && array_key_exists ( 'marketplaceId' , $ store [ $ this -> storeName ] ) ) { $ this -> options [ 'MarketplaceId.Id.1' ] = $ store [ $ this -> storeName ] [ 'marketplaceId' ] ; } else { $ this -> log ( "Marketplace ID is missing" , 'Urgent' ) ; } }
Removes marketplace ID options and sets the current store's marketplace instead.

Use this in case you change your mind and want to remove the Marketplace ID
parameters you previously set.
@throws Exception if config file is missing
Removes marketplace ID options and sets the current store s marketplace instead .