When all the files are installed, we can add more features to the shipping method. In this recipe, we will add a country configuration and we will enable tracking codes for the shipping method.
Perform the following steps to tracking codes and country-specific shipping:
Open the adapter file
app/code/local/Packt/Shipme/Model/Carrier/Shipme.php
.Add the following function in this file to enable tracking codes:
public function isTrackingAvailable() { return true; }
Tracking codes are now enabled for the
Shipme
shipping methods.To enable country-specific shipping, we have to add some configuration fields in the
system.xml
file of the module. Add the following code as the child of the<fields>
tag:<sallowspecific translate="label"> <label>Ship to Applicable Countries</label> <frontend_type>select</frontend_type> <sort_order>90</sort_order> <frontend_class>shipping-applicable-country...