function postProcess()
 {
     // Update Sync Option
     if ($this->ebay_profile == null) {
         return;
     }
     $this->ebay_profile->setConfiguration('EBAY_SYNC_OPTION_RESYNC', Tools::getValue('ebay_sync_option_resync') == 1 ? 1 : 0);
     // Empty error result
     $this->ebay_profile->setConfiguration('EBAY_SYNC_LAST_PRODUCT', 0);
     if (file_exists(dirname(__FILE__) . '/../../log/syncError.php')) {
         @unlink(dirname(__FILE__) . '/../../log/syncError.php');
     }
     $this->ebay_profile->setConfiguration('EBAY_SYNC_MODE', Tools::getValue('ebay_sync_mode'));
     if (Tools::getValue('ebay_sync_products_mode') == 'A') {
         $this->ebay_profile->setConfiguration('EBAY_SYNC_PRODUCTS_MODE', 'A');
     } else {
         $this->ebay_profile->setConfiguration('EBAY_SYNC_PRODUCTS_MODE', 'B');
         // Select the sync Categories and Retrieve product list for eBay (which have matched and sync categories)
         if (Tools::getValue('category')) {
             EbayCategoryConfiguration::updateByIdProfile($this->ebay_profile->id, array('sync' => 0));
             foreach (Tools::getValue('category') as $id_category) {
                 EbayCategoryConfiguration::updateByIdProfileAndIdCategory((int) $this->ebay_profile->id, $id_category, array('id_ebay_profile' => $this->ebay_profile->id, 'sync' => 1));
             }
         }
     }
 }