This Sylius plugin enables the phoneNumber required in the Addressing Checkout Form.
It do three verifications
- NotBlank
- Range between 10 and 11 phone numbers
- Pattern to only allow numbers
- Install using composer
composer require artesanik/sylius-extended-checkout-plugin
- Clear cache
bin/console cache:clear
TODO Tasks
- Add a config file to load phone variables from config.yaml or env vars
- Add envvars for the phone pattern regex
- Add envvars for the phone min/max lenght
- Enable other phone patterns