OpenCart has many prebuilt shipping modules. Navigate to Admin | Extensions | Shipping, it lists out the Shipping
module as shown in the following screenshot:
You have to install and configure it, and it will be shown at the frontend under Shipping Methods while performing a checkout.
As you already know, modules or extensions can be created by cloning an existing one that functions in a similar way to what you want. So, for Shipping
, we will be cloning any one of them that fulfills our requirement. For example, if you want the shipping cost to be charged as per the total cost purchased, you can clone the weight-based shipping module; likewise, if you want to make DHL shipping rates module using the live rate, look up from the DHL site. You need to start with the existing UPS shipping extension.
Let's start to make the Shipping
module that is based on the total cost purchased.