Summary
When items with assembly options are added to the cart, they are shown to the customer as unavailable for delivery until the shipping cost is calculated.
This is because the orderForm – the data structure corresponding to the cart – is missing information in the logisticsInfo.deliveryChannel
field.
When an address is entered and the shipping cost is calculated, the items no longer are shown as unavailable for delivery.
Simulation
To perform this simulation, you need to have an item with assembly options in your store catalog.
- In the store, add an item with assembly options to the cart;
- Add the assembly option to the item;
- Notice that the item is shown as unavailable for delivery;
- Enter an address and calculate shipping costs;
- Notice that the item is shown as available for delivery.
Workaround
To work around the problem, you can hide the message that is displayed before an address is entered. This option is available under the ".shp-alert-shipping-unavailable" selector, but you must check if the message may be necessary in other scenarios, such as when the item has no delivery option, only pickup.