Changing header & body for mini basket?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
bill
Posts: 51
Joined: 24 Apr 2017, 17:51

Re: Changing header & body for mini basket?

Post by bill » 26 Jun 2017, 16:37

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?

bill
Posts: 51
Joined: 24 Apr 2017, 17:51

Re: Changing header & body for mini basket?

Post by bill » 26 Jun 2017, 18:23

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?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Changing header & body for mini basket?

Post by aimeos » 28 Jun 2017, 21:56

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply