BillToShippingAddress container
The BillToShippingAddress
container includes a checkbox that allows users to indicate if the billing address is the same as the shipping address. If unchecked, the billing address form will be displayed.
BillToShippingAddress configurations
The BillToShippingAddress
container provides the following configuration options:
Example
The following example renders the BillToShippingAddress
container on a checkout page. It includes functionality to hide the component for virtual carts and to handle changes to the billing address form visibility and validation. If the billing address form is shown, it validates the form data and updates the billing address on the cart.