artesanik/sylius-extended-checkout-plugin

Sylius Extended Checkout Plugin.


README

68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67

Sylius Extended Checkout Plugin

Documentation

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

Quickstart Installation

  1. Install using composer
composer require artesanik/sylius-extended-checkout-plugin
  1. 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