Page 2 of 2

Re: Changing header & body for mini basket?

Posted: 26 Jun 2017, 16:37
by bill
In my AppServiceProvider.php I have this in boot()

Code: Select all

 public function boot()
    {

      $minibasket = app( '\Aimeos\Shop\Base\Page' )->getSections( 'aimeosall' );
       view()->share('var', $minibasket);

    }
this is getting me an error:

Code: Select all

 [InvalidArgumentException]                        
  Route [aimeos_shop_jsonapi_options] not defined. 
Do you know what is going on with this?

Re: Changing header & body for mini basket?

Posted: 26 Jun 2017, 18:23
by bill
in my config/app.php I have changed the order

Code: Select all

 'providers' => [
Aimeos\Shop\ShopServiceProvider::class,
App\Providers\AppServiceProvider::class,
now I am getting not getting the error but the mini cart but its always empty, you know why?

Re: Changing header & body for mini basket?

Posted: 28 Jun 2017, 21:56
by aimeos
Have you tried to move both Laravel service providers at the end of the array? Could be that required services aren't instantiated when you put the Aimeos service provider and yours first.