got this error when I make order

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!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

got this error when I make order

Post by ahmed31916 » 25 May 2022, 12:10

Hello,

why I got this error when I make order?

Code: Select all

Checks for available service items in basket failed

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

Re: got this error when I make order

Post by aimeos » 26 May 2022, 11:01

No delivery or payment option has been added to the basket and the ServicesAvailable basket plugin throws an error in that case when using the default configuration.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: got this error when I make order

Post by nowrap » 14 Aug 2023, 20:10

Hello,
we are also facing this issue in a 2022.10 installation now.

Adding an item to the basket and navigating to /shop/basket shows this error - before entering any data in the checkout process.

The $problems array contains this:

Code: Select all

array:1 [▼ // vendor/aimeos/aimeos-core/src/MShop/Plugin/Provider/Order/AddressesAvailable.php:134
  "payment" => "available.none"
]
The plugin AddressesAvailable uses the default configuration:
  • payment yes
  • delivery empty
Both types are tested. If i set delivery also to yes, the $problems array contains both checks - as expected:

Code: Select all

array:2 [▼ // vendor/aimeos/aimeos-core/src/MShop/Plugin/Provider/Order/AddressesAvailable.php:134
  "payment" => "available.none"
  "delivery" => "available.none"
]
But this didn't happen before.
Clicking the checkout button can complete the order.
So customers might be confused about this error.

In the /shop/checkout/process view the plugin is called again.
So maybe it's called accidently on the /shop/basket view?

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

Re: got this error when I make order

Post by aimeos » 16 Aug 2023, 12:51

There can be two sources for the problem:
1.) You've removed or disabled the Autofill-Plugin in the Plugin panel
2.) You've reordered the positions of the plugins in the Plugin panel and AddressAvailable isn't one of the last ones any more
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: got this error when I make order

Post by nowrap » 16 Aug 2023, 17:01

Thx for pointing me in the right direction.

I think, we didn't change the default plugins:
ak_plugins.png
ak_plugins.png (65.81 KiB) Viewed 14431 times
But we added a custom BasketPlugin.

// edit
Deactivating this doesn't trigger the error message.
Reenabling makes the error message occur again.

Post Reply