I'm looking to add additional shipping methods through a plugin, using the documentation here: https://craftcommerce.com/docs/shipping-methods
I'm a little bit lost about how to hook things up, according to the docs I'm supposed to do:
public function commerce_registerShippingMethods()
{
return [new CustomShipper_CourierDeliveryMethod()];
}
The docs don't really cover where and how to do this, other than to include it in the base plugin file. That part I can follow. Could someone help me understand what file to create, the basics of what it should include and how to connect it (referring to new CustomShipper_CourierDeliveryMethod())?
This is new to me for Craft Plugin development - I'm used to connecting to files using something like:
return [craft()->pluginHandle_serviceName->function_name()];
Which obviously is very differently than the above. Any help would be HUGELY appreciated.. thanks!