Beispiel #1
0
 private function _postProcessAddProfile()
 {
     $ebay_username = Tools::getValue('eBayUsernamesList');
     if (!$ebay_username || $ebay_username == -1) {
         $ebay_username = Tools::getValue('eBayUsername');
     }
     if ($ebay_username) {
         $this->context->cookie->eBayUsername = $ebay_username;
         $id_shop = version_compare(_PS_VERSION_, '1.5', '>') ? Shop::getContextShopID() : Shop::getCurrentShop();
         $this->ebay_profile = EbayProfile::getByLangShopSiteAndUsername((int) Tools::getValue('ebay_language'), $id_shop, Tools::getValue('ebay_country'), $ebay_username, EbayProductTemplate::getContent($this, $this->smarty));
         EbayProfile::setProfile($this->ebay_profile->id);
     }
 }