Search found 5 matches

by vincenzo
19 May 2020, 10:23
Forum: Help
Topic: Error when set catid-default on fly in controller
Replies: 7
Views: 5056

Re: Error when set catid-default on fly in controller

Ok, now works fine.
Thanks and congratulations
by vincenzo
17 May 2020, 18:21
Forum: Help
Topic: Error when set catid-default on fly in controller
Replies: 7
Views: 5056

Re: Error when set catid-default on fly in controller

When I go to basket with catid-default setted on controller the function addData in ext\ai-client-html\client\html\src\Client\Html\Basket\Standard\Standard.php is called: public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], string &$expire = null ) : \Aimeos\MW\View\Iface...
by vincenzo
17 May 2020, 17:04
Forum: Help
Topic: Error when set catid-default on fly in controller
Replies: 7
Views: 5056

Re: Error when set catid-default on fly in controller

I tried with: $config = app( 'aimeos.context' )->get()->getConfig(); $config->set( 'client/html/catalog/lists/standard/subparts', ['promo'] ); $config->set( 'client/html/catalog/lists/catid-default', 15 ); foreach( config( 'shop.page.home' ) as $name ) { $params['aiheader'][$name] = Shop::get( $name...
by vincenzo
17 May 2020, 16:47
Forum: Help
Topic: Error when set catid-default on fly in controller
Replies: 7
Views: 5056

Re: Error when set catid-default on fly in controller

Yes! [2020-05-17 15:39:37] local.ERROR: Argument 1 passed to Aimeos\MW\Common\Base::sanitize() must be of the type string, null given, called in /var/www/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Helper/Url/Base.php on line 36 {"exception":"[object] (TypeError(code: 0): Argument...
by vincenzo
16 May 2020, 18:19
Forum: Help
Topic: Error when set catid-default on fly in controller
Replies: 7
Views: 5056

Error when set catid-default on fly in controller

PHP 7.3 Linux Laravel 7 Aimeos 2020.04.2 Hi, when I change te default category id (promo) in home page by controller like this public function index() { config()->set( 'shop.client.html.catalog.lists.standard.subparts', ['promo''] ); config()->set('shop.client.html.catalog.lists.catid-default', 15);...