Deny some payment methods for delivery method
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Deny some payment methods for delivery method
Hey,
I've got multiple payment methods as well as multiple delivery methods. I want to allow customers to pay cash only with some of the delivery methods. How can I deny payment method for a particular delivery method, please?
I've got multiple payment methods as well as multiple delivery methods. I want to allow customers to pay cash only with some of the delivery methods. How can I deny payment method for a particular delivery method, please?
Re: Deny some payment methods for delivery method
Implement a decorator for the service providers which returns FALSE in isAvailable() if the delivery method doesn't match:
- https://aimeos.org/docs/latest/provider ... ecorators/
- https://aimeos.org/docs/latest/provider ... ide-option
- https://aimeos.org/docs/latest/provider ... ecorators/
- https://aimeos.org/docs/latest/provider ... ide-option
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star