commercelayer-react-checkout
commercelayer-react-checkout copied to clipboard
Toggle for activating business billing address
What I did
I've added a toggle to enable the business
flag in Address object, allowing customers to use a company name ("Ragione sociale") instead of first and last name; currently it's for billing only.
The modifications act on the already predisposed AddressesContainer and AddressInputGroup. Some ideas to improve the toggle:
- Better labels;
- Making the toggle optional (hidden by default);
- Adding toggle to Shipping Address too (it may be necessary to split the
AddressesContainer
s?) - I'm not sure about the UI either. Maybe it would be better outside the form area?
How to test
- Activate the toggle
- Insert company name
- Submit the address
Checklist
- [ ] Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
- [ ] Make sure to add/update documentation regarding your changes.
- [x] You are NOT deprecating/removing a feature.