Checkout flow and shipping calculation
Guide for developers to implement shipping in the checkout flow of a Shoporama theme.
Shoporama automatically calculates which shipping methods are available to the customer based on the country of delivery. This guide explains the recommended checkout flow and how the shipping calculation works.
The recommended checkout flow
We recommend the following order in your checkout flow:
/basket- Basket overview/address- Address information including country selection/shipping- Selection of shipping method (and parcel shop if applicable)/approve- Approval of the order/payment- Payment
Why the order is important
Shoporama uses the country of delivery to determine which shipping methods are available. Therefore, the customer must first select the country (on /address) before the shipping methods can be calculated (on /shipping).
Note that
If you only ship to Denmark, you can in principle place the shipping selection wherever you want. However, the recommended flow works best for most shops.
Shipping and parcel shop selection
On the /shipping page, there can be two choices:
- Shipping method - e.g. "GLS to parcel shop", "PostNord home to door" etc.
- Parcel shop - if the customer selects a parcel shop shipping method, they must also select a specific parcel shop
Many theme developers choose to hide the parcel shop list until the customer has selected a shipping method with parcel shops (GLS or PostNord). When the customer selects a parcel shop method, the list of nearby parcel shops is shown.
Alternative flow: Shipping on the address page
Some developers choose to show the shipping selection already on the /address page. This can work, but be aware:
- If the customer changes country, the shipping methods need to be updated (via page refresh or JavaScript)
- Not all shipping methods are available for all countries
- Additional JavaScript logic is required to handle dynamic refresh
Tip to keep in mind
Stick to the recommended flow with separate pages for address and shipping - it's the most secure solution and works correctly with all shipping modules.
Need help with your checkout flow? Contact us at support@shoporama.dk.