Restrict customer delivery addresses count

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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Restrict customer delivery addresses count

Post by MikaelNazarenko » 17 Oct 2019, 11:12

Is there a way to restrict the quantity of customer delivery addresses ? For example I want make that customer has possibility to add only one delivery address

And the same for billing address

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

Re: Restrict customer delivery addresses count

Post by aimeos » 18 Oct 2019, 11:12

There can be only one billing address but you can configure to disallow adding a new one for the current order:
https://aimeos.org/docs/Configuration/C ... isable-new

This does also work for delivery addresses but you want to allow exactly one so you have to change that block in the template so always exactly one delivery address block is shown: https://github.com/aimeos/ai-client-htm ... #L164-L204
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply