PrestaShop Multiple Seller module - Agile Multiple Seller

In this forum you can post anything related to PrestaShop Modules/Addons from Agile Addons-Modules.Com.

If you need support for any module/addon from Agile Addons-Module.Com, please post it here. We will respond as soon as possible. Usually within one business day.

Please indicate the PrestaShop version, product name. product version, and if possible your order # to get a prompt response.

Moderator: jeffayao_1666

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby shokinro » Thu Aug 06, 2015 6:23 pm

Thanks for your inquiry.

I'm thinking about using your module to create a market place for one my web agency's client.

How long will it take to integrate your module with a customized PS template (images, colors and texts), understand how it works, set it up, train my client to manage his marketplace ?

Could you send me some examples of marketplaces using your module please ?

Most commercial theme should be working fine as long as it is compatible with your version of prestashop.
But we can not guarantee that all themes will fit perfectly. You may or may not need to do small adjustments.

You can find some sample sites at our showcases corner. Please make sure to filter out by module name.
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby noe_tessier_4259 » Wed Aug 12, 2015 12:46 pm

Hello,
I upgraded presta to 1.6.1.

I managed to re-install agilemultipleseller3.0.5.2, agilepaypalparallel1.1.0.5, agilesellercommission1.3.1.1.
I had many overide troubles during instalation. I delete the override classes that causes the error and then install it again.
It worked. I have now the 3 module installed, yet, when I activate multiple seller module, I end-up with blanks pages in my front office.

Are my version of the module are ok with prestashop 1.6.1.
Should I re-install the module?
any help will be welcome
noe_tessier_4259
 
Posts: 3
Joined: Wed Aug 20, 2014 10:56 pm

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby shokinro » Sat Aug 15, 2015 1:33 pm

thanks for using our modules.

I managed to re-install agilemultipleseller3.0.5.2, agilepaypalparallel1.1.0.5, agilesellercommission1.3.1.1.
I had many overide troubles during instalation. I delete the override classes that causes the error and then install it again.
It worked. I have now the 3 module installed, yet, when I activate multiple seller module, I end-up with blanks pages in my front office.

Are my version of the module are ok with prestashop 1.6.1.

The version of the module is not fully compatible with PrestaShop 1.6.1, you need an upgrade of the modules.
PrestaShop have made some structural changes in some of the classes, so we the modules have to be updated to make them compatible with 1.6.1.

Please contact [email protected] to request an update.
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby jang5th_3250 » Fri Aug 21, 2015 3:19 pm

Hello,

My backup shop appear this error:

Strict Standards: Declaration of Link::getProductLink() should be compatible with LinkCore::getProductLink($product, $alias = NULL, $category = NULL, $ean13 = NULL, $id_lang = NULL, $id_shop = NULL, $ipa = 0, $force_routes = false, $relative_protocol = false, $add_anchor = false) in /home/xxx/domains/domainname.com/public_html/override/classes/Link.php on line 536

This is link.php

Code: Select all
<?php
class Link extends LinkCore
{
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getLanguageLink($id_lang, Context $context = null)
   {
      $pagename = AgileHelper::getPageName();
      if(Module::isInstalled('agilemultipleshop'))
      {
         require_once(_PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php");
         if($pagename =="agilesellers.php")
         {
            return $this->getAgileSellersLink(Tools::getValue('filter'),$id_lang, Tools::getValue('loclevel'), Tools::getValue('parentid'));
         }
         if($pagename =="sellerlocation.php")
         {
            return $this->getSellerLocationLink(AgileMultipleShop::getShopByLocationID(), AgileMultipleShop::getShopByLocationLevel(), NULL,$id_lang);
         }         
      }
      return parent::getLanguageLink($id_lang, $context);      
   }   
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getPaginationLink($type, $id_object, $nb = false, $sort = false, $pagination = false, $array = false)
   {
      global $link;
      
      $pagename = AgileHelper::getPageName();
      if(Module::isInstalled('agilemultipleshop'))
      {
         require_once(_PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php");
         if($pagename =="agilesellers.php")
         {
            $url = $this->getAgileSellersLink(Tools::getValue('filter'),NULL, Tools::getValue('loclevel'), Tools::getValue('parentid'));
            if(strpos($url, "?") === false) $url .= "?";
            $seller_location = Tools::getValue('seller_location');
            if(!empty($seller_location))$url .= "&seller_location=" . $seller_location;
            $seller_type = Tools::getValue('seller_type');
            if(!empty($seller_type))$url .= "&seller_type=" . $seller_type;
            $userview = Tools::getValue('userview');
            if(!empty($userview))$url .= "&userview=" . $userview;
            $n = Tools::getValue('n');
            if(!empty($n))$url .= "&n=" . (int)$n;
            
            return $url;
         }
         if($pagename =="sellerlocation.php")
         {
            $url = $this->getSellerLocationLink(AgileMultipleShop::getShopByLocationID(), AgileMultipleShop::getShopByLocationLevel());
            if(strpos($url, "?") === false) $url .= "?";
            return $url;
         }
      }
            $fc = Tools::getValue('fc');
      $module = Tools::getValue('module');
      $controller = Tools::getValue('controller');
      if($fc == 'module' AND !empty($module) AND !empty($controller) AND strlen($module)>5 && substr($module,0,5) == "agile")
      {
         $url = $this->getModuleLink($module,$controller,array(),true);
         if(strpos($url, "?") === false) $url .= "?";
         return $url;
      }
      if($pagename =="sellerorders.php")
      {
         $url = $this->getModuleLink('agilemultipleseller','sellerorders',array(),true);
         if(strpos($url, "?") === false) $url .= "?";
         return $url;
      }
      if($pagename =="sellerhistory.php")
      {
         $url = $this->getModuleLink('agilemultipleseller','sellerhistory',array(),true);
         if(strpos($url, "?") === false) $url .= "?";
         return $url;
      }
      
      return parent::getPaginationLink($type, $id_object, $nb, $sort, $pagination, $array);
   } 
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getMySellerAccountLink($id_lang = NULL)
   {
      if($this->allow)
      {
         $myseller_account_dir = Configuration::get('AGILE_MS_MYSELLER_URL_DIRECTORY');
         if(empty($myseller_account_dir))$myseller_account_dir = 'my-seller-account';      
         $link = '';
         $link .= (_PS_BASE_URL_SSL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang));
         $link .= $myseller_account_dir;
         return $link;
      }
      return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'myselleraccount.php';
   }
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getAgileSellerLink($id_seller, $alias = NULL, $id_lang = NULL)
   {
      if(!$id_seller)return '';
      include_once(_PS_ROOT_DIR_  . "/modules/agilemultipleseller/SellerInfo.php");
      $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller));
      $id_shopurl = Shop::get_main_url_id($sellerinfo->id_shop);
      $shopurl = new ShopUrl($id_shopurl);
      $url = $shopurl->getURL()  .$this->getLangLink();
      if(Module::IsInstalled('agilemultipleshop'))
      {
         include_once(_PS_ROOT_DIR_  . "/modules/agilemultipleshop/agilemultipleshop.php");
         if((int)Configuration::get('ASP_SHOP_URL_MODE') == AgileMultipleShop::SHOP_URL_MODE_DOMAIN)
            
            return $url;
      }
      if($this->allow)
      {
         return $url;
      }
      else
      {
         return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'index.php?controller=agileseller&id_seller='.(int)($id_seller);
      }
   }
   
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    private function getParentName($loclevel,$parentid, $id_lang)
   {
      if($loclevel == 'country'){
         return 'all';
      }
      if($loclevel == 'state'){
         $country = new Country($parentid, $id_lang);
         if(Validate::isLoadedObject($country))return $country->name;
      }
      if($loclevel == 'city'){
         $state = new State($parentid);
         if(Validate::isLoadedObject($state))return $state->name;
      }
      
   }
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getAgileSellersLink($namefilter = 'all', $id_lang=NULL, $loclevel = NULL,$parentid=NULL)
   {
      global $cookie;
      
      if($namefilter == NULL)$namefilter = 'all';
      if($loclevel ==NULL)$loclevel = 'country';
      if($parentid ==NULL)$parentid = 0;
      if($id_lang == NULL)$id_lang = $cookie->id_lang;
      if($this->allow)
      {
         $parentname = 'all';
         if($parentid>0)$parentname = Tools::link_rewrite($this->getParentName($loclevel,$parentid, $id_lang), true);
         $link = '';
         $shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
         $link = __PS_BASE_URI__ . $this->getLangLink((int)$id_lang);
         $link .= 'shops-name-start-with-' . $namefilter;
         $link .= '-by-' . ($loclevel == NULL?'country':$loclevel) . '-in-' . intval($parentid) . '-' . $parentname;
         return $link;
      }
      
      return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'index.php?controller=agilesellers&filter=' . $namefilter . '&loclevel=' .  ($loclevel == NULL?'country':$loclevel) . '&parentid=' . ($parentid==NULL?0:$parentid);
   }
   
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getSellerCountryLink($id_country, $alias = NULL, $id_lang = NULL)
   {
      global $cookie;
      
      if(!intval($id_lang))$id_lang = $cookie->id_lang;
      if($this->allow)
      {
         $link = '';
         $link .= (_PS_BASE_URL_SSL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang));
         if(!isset($alias) OR empty($alias))
         {
            $country = new Country($id_country,$id_lang);
            if(Validate::isLoadedObject($country))
               $alias = Tools::link_rewrite($country->name);               
         }
         
         $link .= 'countries/' . $id_country . '-' . (empty($alias)?'all': Tools::link_rewrite($alias));
         return $link;
      }
      if(_PS_VERSION_ > '1.5')
         return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'index.php?controller=sellercountry&id_seller_country=' . $id_country;
      else
         return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'sellercountry.php?id_seller_country=' . $id_country;
   }
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getSellerLocationLink($id_location, $location_level='country', $alias = NULL, $id_lang = NULL)
   {
      global $cookie;
      include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php");
      include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleshop/SellerType.php");
      
      if(!isset($location_level) || empty($location_level))$location_level = 'country';
      if(!intval($id_lang))$id_lang = $cookie->id_lang;
      if($this->allow)
      {
         $link = '';
         $link .= (_PS_BASE_URL_SSL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang));
         if(!isset($alias) OR empty($alias))
         {
            switch($location_level)
            {
               case 'country':
                  $country = new Country($id_location,$id_lang);
                  if(Validate::isLoadedObject($country))
                     $alias = Tools::link_rewrite($country->name);   
                  break;             
               case 'state':
                  $state = new State($id_location);
                  if(Validate::isLoadedObject($state))
                     $alias = Tools::link_rewrite($state->name);   
                  break;             
               case 'city':
                  $alias = '';                  break;
               case 'sellertype':
                  $sellertype = new SellerType($id_location, $id_lang);
                  $alias = $sellertype->name;   
                  break;
               case 'custom':
                  $alias = '';                  break;
            }
         }
         $link .= 'shop-by-' . ($location_level == 'custom'? strtolower(AgileMultipleShop::SHOP_BY_CUSTOM_NAME) : $location_level) . '/' . Tools::link_rewrite($id_location) . '-' . (empty($alias)?'all': Tools::link_rewrite($alias));
         return $link;
      }
      return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'index.php?controller=sellerlocation&id_location=' . $id_location . '&location_level=' . $location_level;
   }
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getRatingListLink($id_type, $id_target, $alias = NULL)
   {
      $allow = (int)Configuration::get('PS_REWRITING_SETTINGS');
      if(version_compare(_PS_VERSION_,'1.5','>='))
         return $this->getModuleLink("agilesellerratings","ratinglist", array('id_type'=>$id_type, 'id_target'=>$id_target), true);
      
      return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'modules/agilesellerratings/ratinglist.php?id_type=' . $id_type . '&id_target=' .$id_target;
   }
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getFeedbackWaitListLink($alias = NULL)
   {
      $allow = (int)Configuration::get('PS_REWRITING_SETTINGS');
      if(version_compare(_PS_VERSION_,'1.5','>='))
         return $this->getModuleLink("agilesellerratings","feedbackwaitlist", array(), true);
      
      return _PS_BASE_URL_SSL_.__PS_BASE_URI__.'modules/agilesellerratings/feedbackwaitlist.php';
   }
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    private function getAgileBaseUrl($usevirtual, $id_seller, $ssl,  $relative_protocol = false)
   {
      static $force_ssl = null;
      $def_shop_id = (int)Configuration::get('PS_SHOP_DEFAULT');
      $shop = new Shop($def_shop_id);
      if($usevirtual && $id_seller > 0)
      {
         $sql = 'SELECT id_shop FROM ' . _DB_PREFIX_ . 'sellerinfo WHERE id_seller=' . (int)$id_seller;
         $id_shop = Db::getInstance()->getValue($sql);
         $shop = new Shop($id_shop);
      }
      if ($ssl === null)
      {
         if ($force_ssl === null)
            $force_ssl = (Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE'));
         $ssl = $force_ssl;
      }
      else
         $ssl = $ssl && Configuration::get('PS_SSL_ENABLED');
      if ($relative_protocol)
         $base = '//'.($ssl && $this->ssl_enable ? $shop->domain_ssl : $shop->domain);
      else
         $base = (($ssl && $this->ssl_enable) ? 'https://'.$shop->domain_ssl : 'http://'.$shop->domain);
      
      return $base.$shop->getBaseURI();
   }
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getProductLink($product, $alias = null, $category = null, $ean13 = null, $id_lang = null, $id_shop = null, $ipa = 0, $force_routes = false, $relative_protocol = false)
   {
      if(!Module::isInstalled('agilemultipleshop'))
         return parent::getProductLink($product, $alias, $category, $ean13, $id_lang, $id_shop, $ipa, $force_routes);
      
      $dispatcher = Dispatcher::getInstance();
      if (!$id_lang)
         $id_lang = Context::getContext()->language->id;
            $id_seller = AgileSellerManager::getObjectOwnerID('product',  is_object($product)? $product->id : (int)$product);
      $url = $this->getAgileBaseUrl(true, $id_seller, null, $relative_protocol) . $this->getLangLink($id_lang, null, $id_shop);
      if (!is_object($product))
      {
         if (is_array($product) && isset($product['id_product']))
            $product = new Product($product['id_product'], false, $id_lang, $id_shop);
         elseif ((int)$product)
            $product = new Product((int)$product, false, $id_lang, $id_shop);
         else
            throw new PrestaShopException('Invalid product vars');
      }
      
            $params = array();
      $params['id'] = $product->id;
      $params['rewrite'] = (!$alias) ? $product->getFieldByLang('link_rewrite') : $alias;
      $params['ean13'] = (!$ean13) ? $product->ean13 : $ean13;
      $params['meta_keywords'] =   Tools::str2url($product->getFieldByLang('meta_keywords'));
      $params['meta_title'] = Tools::str2url($product->getFieldByLang('meta_title'));
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'manufacturer', $id_shop))
         $params['manufacturer'] = Tools::str2url($product->isFullyLoaded ? $product->manufacturer_name : Manufacturer::getNameById($product->id_manufacturer));
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'supplier', $id_shop))
         $params['supplier'] = Tools::str2url($product->isFullyLoaded ? $product->supplier_name : Supplier::getNameById($product->id_supplier));
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'price', $id_shop))
         $params['price'] = $product->isFullyLoaded ? $product->price : Product::getPriceStatic($product->id, false, null, 6, null, false, true, 1, false, null, null, null, $product->specificPrice);
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'tags', $id_shop))
         $params['tags'] = Tools::str2url($product->getTags($id_lang));
      
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'category', $id_shop))
         $params['category'] = (!is_null($product->category) && !empty($product->category)) ? Tools::str2url($product->category) : Tools::str2url($category);
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'reference', $id_shop))
         $params['reference'] = Tools::str2url($product->reference);
      if ($dispatcher->hasKeyword('product_rule', $id_lang, 'categories', $id_shop))
      {
         $params['category'] = (!$category) ? $product->category : $category;
         $cats = array();
         foreach ($product->getParentCategories() as $cat)
            if (!in_array($cat['id_category'], Link::$category_disable_rewrite))               $cats[] = $cat['link_rewrite'];
         $params['categories'] = implode('/', $cats);
      }
      $anchor = $ipa ? $product->getAnchor($ipa) : '';
      return $url.$dispatcher->createUrl('product_rule', $id_lang, $params, $force_routes, $anchor, $id_shop);
   }
   
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getModuleLink($module, $controller = 'default', array $params = array(), $ssl = null, $id_lang = null, $id_shop = null, $relative_protocol = false)
   {
      if(!Module::isInstalled('agilemultipleshop'))
         return parent::getModuleLink($module, $controller, $params, $ssl, $id_lang, $id_shop, $relative_protocol);
      
      if (!$id_lang)
         $id_lang = Context::getContext()->language->id;
            $url = $this->getAgileBaseUrl(false, 0, $ssl, $relative_protocol) . $this->getLangLink($id_lang, null, $id_shop);
            if (Dispatcher::getInstance()->hasRoute('module-'.$module.'-'.$controller, $id_lang, $id_shop))
         return $this->getPageLink('module-'.$module.'-'.$controller, $ssl, $id_lang, $params);
      else
      {
                  $params['module'] = $module;
         $params['controller'] = $controller ? $controller : 'default';      
         return $url.Dispatcher::getInstance()->createUrl('module', $id_lang, $params, $this->allow, '', $id_shop);
      }
   }
   
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getPageLink($controller, $ssl = null, $id_lang = null, $request = null, $request_url_encode = false, $id_shop = null, $relative_protocol = false)
   {
      if(!Module::isInstalled('agilemultipleshop'))
         return parent::getPageLink($controller, $ssl, $id_lang, $request, $request_url_encode, $id_shop, $relative_protocol);
      
            $p = strpos($controller, '&');
      if ($p !== false) {
         $request = substr($controller, $p + 1);
         $request_url_encode = false;
         $controller = substr($controller, 0, $p);
      }
      
      $controller = Tools::strReplaceFirst('.php', '', $controller);
      if (!$id_lang)
         $id_lang = (int)Context::getContext()->language->id;
      if (!is_array($request))
      {
                  $request = html_entity_decode($request);
         if ($request_url_encode)
            $request = urlencode($request);
         parse_str($request, $request);
      }
      $uri_path = Dispatcher::getInstance()->createUrl($controller, $id_lang, $request, false, '', $id_shop);
      $url = $this->getBaseLink($id_shop, $ssl, $relative_protocol);
            $pages = array('index');
      if(!in_array($controller, $pages))
      {
         $url =  $this->getAgileBaseUrl(false, Shop::$id_shop_owner, $ssl);
      }
      
      return $url.$this->getLangLink($id_lang, null, $id_shop).ltrim($uri_path, '/');
   }
   
   
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getCategoryLink($category, $alias = null, $id_lang = null, $selected_filters = null, $id_shop = null, $relative_protocol = false)
   {
      if(!Module::isInstalled('agilemultipleshop'))
         return parent::getCategoryLink($category, $alias, $id_lang, $selected_filters, $id_shop, $relative_protocol);
      
      $url_choice_cat = (int)Configuration::get('ASP_URL_CHOICE_CAT');
      if($url_choice_cat == 0)
         return parent::getCategoryLink($category, $alias, $id_lang, $selected_filters, $id_shop, $relative_protocol);
            $id_seller = AgileSellerManager::getObjectOwnerID('category',  is_object($category)? $category->id : (int)$category);
      $url = $this->getAgileBaseUrl($url_choice_cat == 2, $id_seller, null, $relative_protocol) . $this->getLangLink($id_lang, null, $id_shop);
      if (!$id_lang)
         $id_lang = Context::getContext()->language->id;
      
      if (!is_object($category))
         $category = new Category($category, $id_lang);
            $params = array();
      $params['id'] = $category->id;
      $params['rewrite'] = (!$alias) ? $category->link_rewrite : $alias;
      $params['meta_keywords'] =   Tools::str2url($category->getFieldByLang('meta_keywords'));
      $params['meta_title'] = Tools::str2url($category->getFieldByLang('meta_title'));
            $selected_filters = is_null($selected_filters) ? '' : $selected_filters;
      if (empty($selected_filters))
         $rule = 'category_rule';
      else
      {
         $rule = 'layered_rule';
         $params['selected_filters'] = $selected_filters;
      }
      return $url.Dispatcher::getInstance()->createUrl($rule, $id_lang, $params, $this->allow, '', $id_shop);
   }
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getCMSCategoryLink($cms_category, $alias = null, $id_lang = null, $id_shop = null, $relative_protocol = false)
   {
      if(!Module::isInstalled('agilemultipleshop'))
         return parent::getCMSCategoryLink($cms_category, $alias, $id_lang, $id_shop, $relative_protocol);
      $url_choice_cms = (int)Configuration::get('ASP_URL_CHOICE_CMS');
      if (!$id_lang)
         $id_lang = Context::getContext()->language->id;
            $id_seller = AgileSellerManager::getObjectOwnerID('cms_category',  is_object($cms_category)? $cms_category->id : (int)$cms_category);
      $url = $this->getAgileBaseUrl($url_choice_cms == 2 || $url_choice_cms == 0, $id_seller, null, $relative_protocol) .$this->getLangLink($id_lang, null, $id_shop);
      $dispatcher = Dispatcher::getInstance();
      if (!is_object($cms_category))
      {
         if ($alias !== null && !$dispatcher->hasKeyword('cms_category_rule', $id_lang, 'meta_keywords', $id_shop) && !$dispatcher->hasKeyword('cms_category_rule', $id_lang, 'meta_title', $id_shop))
            return $url.$dispatcher->createUrl('cms_category_rule', $id_lang, array('id' => (int)$cms_category, 'rewrite' => (string)$alias), $this->allow, '', $id_shop);
         $cms_category = new CMSCategory($cms_category, $id_lang);
      }
            $params = array();
      $params['id'] = $cms_category->id;
      $params['rewrite'] = (!$alias) ? $cms_category->link_rewrite : $alias;
      $params['meta_keywords'] =   Tools::str2url($cms_category->meta_keywords);
      $params['meta_title'] = Tools::str2url($cms_category->meta_title);
      return $url.$dispatcher->createUrl('cms_category_rule', $id_lang, $params, $this->allow, '', $id_shop);
   }
   /*
    * module: agilemultipleseller
    * date: 2015-08-21 21:08:58
    * version: 3.1.0.3
    */
    public function getCMSLink($cms, $alias = null, $ssl = null, $id_lang = null, $id_shop = null, $relative_protocol = false)
   {
      if(!Module::isInstalled('agilemultipleshop'))
         return parent::getCMSLink($cms, $alias = null, $ssl = null, $id_lang = null, $id_shop, $relative_protocol);
      $url_choice_cms = (int)Configuration::get('ASP_URL_CHOICE_CMS');
      if (!$id_lang)
         $id_lang = Context::getContext()->language->id;
            $id_seller = AgileSellerManager::getObjectOwnerID('cms',  is_object($cms)? $cms->id : (int)$cms);
      $url = $this->getAgileBaseUrl($url_choice_cms == 2, $id_seller, $ssl, $relative_protocol).$this->getLangLink($id_lang, null, $id_shop);
      $dispatcher = Dispatcher::getInstance();
      if (!is_object($cms))
      {
         if ($alias !== null && !$dispatcher->hasKeyword('cms_rule', $id_lang, 'meta_keywords', $id_shop) && !$dispatcher->hasKeyword('cms_rule', $id_lang, 'meta_title', $id_shop))
            return $url.$dispatcher->createUrl('cms_rule', $id_lang, array('id' => (int)$cms, 'rewrite' => (string)$alias), $this->allow, '', $id_shop);
         $cms = new CMS($cms, $id_lang);
      }
            $params = array();
      $params['id'] = $cms->id;
      $params['rewrite'] = (!$alias) ? (is_array($cms->link_rewrite) ? $cms->link_rewrite[(int)$id_lang] : $cms->link_rewrite) : $alias;
      $params['meta_keywords'] = '';
      if (isset($cms->meta_keywords) && !empty($cms->meta_keywords))
         $params['meta_keywords'] = is_array($cms->meta_keywords) ?  Tools::str2url($cms->meta_keywords[(int)$id_lang]) :  Tools::str2url($cms->meta_keywords);
      $params['meta_title'] = '';
      if (isset($cms->meta_title) && !empty($cms->meta_title))
         $params['meta_title'] = is_array($cms->meta_title) ? Tools::str2url($cms->meta_title[(int)$id_lang]) : Tools::str2url($cms->meta_title);
      return $url.$dispatcher->createUrl('cms_rule', $id_lang, $params, $this->allow, '', $id_shop);
   }
   
}


Can you help me how to fix it?
jang5th_3250
 
Posts: 20
Joined: Sun Sep 22, 2013 10:54 am

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby shokinro » Sat Aug 22, 2015 2:23 am

not sure what version of PrestaShop you are using, it seems the module does not match your version.

best regards
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby jang5th_3250 » Sat Aug 22, 2015 6:51 am

Prestashop 1.6.1.1 and agilemultiseller 3.1.0.3
jang5th_3250
 
Posts: 20
Joined: Sun Sep 22, 2013 10:54 am

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby shokinro » Sat Aug 22, 2015 10:45 pm

PrestaShop 1.6.1.1 was just released, it has changed some override class and methods. The module needs to be adjusted to fit the new version of PrestaShop.

You can change following line to fix the issue

From:
public function getProductLink($product, $alias = null, $category = null, $ean13 = null, $id_lang = null, $id_shop = null, $ipa = 0, $force_routes = false, $relative_protocol = false)

To
public function getProductLink($product, $alias = null, $category = null, $ean13 = null, $id_lang = null, $id_shop = null, $ipa = 0, $force_routes = false, $relative_protocol = false, $add_anchor = false)


Please note - you need to modify following 2 files together.

StoreRoot/override/classes/Link.php
StoreRoot/modules/agilemultipleseller/override/classes/Link.php
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

PrestaShop Multiple Seller module - Agile Multiple Seller

Postby sebaudrain_4580 » Sun Aug 23, 2015 8:43 am

Hello,

I have bought this module the last december and I want to know how to download the last version ?

Best regard
sebaudrain_4580
 
Posts: 0
Joined: Sun Aug 23, 2015 8:43 am

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby shokinro » Sun Aug 23, 2015 3:49 pm

thanks for using our modules.
please contact [email protected] to request update with following information.
- your order #
- your store URL
- current version of PrestaShop
- version of PrestaShop after upgrade
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: PrestaShop Multiple Seller module - Agile Multiple Selle

Postby jang5th_3250 » Sun Aug 23, 2015 4:59 pm

Hello,

I downgraded to ps 1.6.0.14 version and I'm using agilemultiseller 3.0.6.2. It is very well.
I tried to upgrade to 3.1.0.1 version.
These bugs appear:
Code: Select all
JSMin: Unterminated String at byte 27: "
JSMin: Unterminated String at byte 34: "
JSMin: Unterminated String at byte 41: "


If I use ps 1.6.1.1 version, agilemultiseller 3.1.0.3 version.
These bugs appear:
Code: Select all
JSMin: Unterminated String at byte 118: "
JSMin: Unterminated String at byte 125: "
JSMin: Unterminated String at byte 132: "
jang5th_3250
 
Posts: 20
Joined: Sun Sep 22, 2013 10:54 am

PreviousNext

Return to Support forum - Agile PrestaShop Modules/Addons

Who is online

Users browsing this forum: No registered users and 4 guests