Certain fields can be made optional on the checkout form. Here's a list of all the fields that can be made optional:
- First Name
- Last Name
- Phone Number
- Billing Address
- Billing City
- Billing State
- Billing Zip Code
- Billing Country
- Shipping Address
- Shipping City
- Shipping State
- Shipping Zip Code
- Shipping Country
In order to demonstrate the options available for including these fields on the checkout form, we'll use the Phone Number field as an example.
As an example, here's how the phone number can be added to the checkout form:
To include the phone number field on a checkout form do the following:
[MM_Form_Field type='input' name='phone']
When you include it like this, the customer will be required to enter in their phone number.
Optionally Collect Phone Number
If you want to collect the customer's phone number but make it optional you can use the
isRequired attribute as follows:
[MM_Form_Field type='input' name='phone' isRequired='false']
When you include it like this, the customer can optionally enter in their phone number.
Hide Phone Number Field
If you want to remove the phone number from the checkout form then do this:
[MM_Form_Field type='hidden' name='phone']
When the phone number field is included like this, it won't show up on the checkout form.