commercelayer-react-checkout icon indicating copy to clipboard operation
commercelayer-react-checkout copied to clipboard

Toggle for activating business billing address

Open riccardobattiato opened this issue 1 year ago • 0 comments

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.

immagine

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 AddressesContainers?)
  • I'm not sure about the UI either. Maybe it would be better outside the form area?

How to test

  1. Activate the toggle
  2. Insert company name
  3. 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.

riccardobattiato avatar Jan 11 '24 17:01 riccardobattiato