How to configure and adapt Aimeos based shops as developer
Forum rules: Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#5707 by hasmb
19 Feb 2018, 15:16
how can I make my payment service cash only selectable when the delivery service is pickup (has certain id/key)?

The delivery service pickup is of type PostPay.

Or should the payment service cash somehow set a certain delivery service automatically?

#5710 by aimeos
19 Feb 2018, 22:37
Create a new service provider decorator that implements the isAvailable() method and which returns true if the delivery option in the basket is equal to the configured one using the service code. You can find the documentation for service providers and decorators here:

Configure the PostPay payment option and add you new decorator. Then, it will be only available if the configured delivery option is part of the customers' basket.