Requirement
Requirement is to add an extra section in the checkout page of OX Tools Global website to add the option for the third – party shipping.
Add a section on the shipping page of checkout where a customer can do these four steps:
- Check a box to mark third-party shipping (linked to this field: custbody_3rd_part_ship).
- Fill in their shipping account number (freeform field linked to this field: custbody_3rd_party_random_ord).
- Select the freight carrier (dropdown field using this field: custbody_ctl_carrier), and
- Add the zip code for the account (freeform linked to this field: custbody_third_party_ship_add).
If the checkbox is checked, the other two fields are mandatory, but if it is not checked, the customer can skip past this section.
Our Solution
We can add a section under the shipping page for third-party shipping by using an extension. For that a new module will be added to the checkout with the extensibility API. In the checkout page there will be fields to enter the details. So, the customer can enter the details required for the third-party shipping;
The fields are,
- Check box to mark third-party shipping
- Freeform field for shipping account number
- Drop down field for selecting the freight carrier
- Freeform field to add the zip code for the account
If the checkbox ” Third-party shipping ” is checked, then all other three relative fields will be displayed; otherwise, they will not be displayed and we can skip the section.
If the customer requires third – party shipping, check the checkbox under the newly added Third –party shipping method section

If the checkbox is checked, then the relative fields for third –party shipping will be displayed, here the customer can enter the required details.
