Page 1 of 1

SellerProductSearchProvider.php not loaded

PostPosted: Tue Aug 14, 2018 3:40 pm
by webmaster_15807
SellerProductSearchProvider.php is not loaded and I'm trying to find in the code where this happens. Does anyone know? It's extremely difficult to track down errors with obfuscated code.

I added to "override/controllers/front/IndexController.php" function "getDefaultProductSearchProvider" to get stores to work again.

require_once(_PS_ROOT_DIR_ . "/src/Adapter/AgileMultipleSeller/SellerProductSearchProvider.php");

Re: SellerProductSearchProvider.php not loaded

PostPosted: Wed Aug 15, 2018 3:36 am
by shokinro
The following file /modules/agilemultipleseller/override/controllers/front/IndexController.php should already have "getDefaultProductSearchProvider" function.
if it is installed correctly, then it should be there.

use PrestaShop\PrestaShop\Adapter\AgileMultipleSeller\SellerProductSearchProvider;


...
protected function getDefaultProductSearchProvider()
{
return new SellerProductSearchProvider(
$this->getTranslator(),
$this->id_seller,
''
);
}

Re: SellerProductSearchProvider.php not loaded

PostPosted: Wed Aug 15, 2018 11:14 am
by webmaster_15807
Can you tell me what class and function loads it?

I follow that agile_newfiles gets the path then AgileInstaller::install_newfiles. The install_newfiles looks to use install_newfiles_ver2 then I get lost. Unreadable variable names and all the code on one line makes for a troublesome time.

Re: SellerProductSearchProvider.php not loaded

PostPosted: Sun Aug 26, 2018 3:25 am
by shokinro
Since this is the IndexController.php, is it only got called when you load on Home(main) page of your store or seller's virtual store.