Defining our module design
Our drive delivery module will programmatically add a new carrier named Relay Carrier
available for any order on our website. On the checkout page, the Carrier
module will be displayed in the shipping options this way:
Figure 13.1 – The shipping option
When we select our drive relay delivery option, we should get a list of available relay points from where to pick up our order. You should be able to choose one. If no point is selected, the next steps of the order won’t be available (we will hide the validation button to go to the payment step). The modal for choosing our point should look like this:
Figure 13.2 – The Relay points modal
The module will add €2 to the computed shipping price if this Carrier
module is used to complete this order. We should be able to see the chosen pickup relay point in the order details BO view in a new panel like this: