Hey there,
iam currently developing a shipment Plugin and cant figure out how the ShippingServiceProviderService Works. In the Dev Documentation it says:
The ShippingServiceProviderService class offers the possibility to register a shipping provider class and method that can be called by plentymarkets shipping controllers.
But the functions i define with this ShippingServiceProviderService never get called. How do i map these Functions to the intern plenty market functions so that when i create an Order my create Shipment Function gets called ?
Thats my boot function:
public function boot ( ShippingServiceProviderService $shippingServiceProviderService ) { $shippingServiceProviderService->registerShippingProvider( ShippingServiceProvider::PLUGIN_NAME, ['de' => ShippingServiceProvider::SHIPPING_SERVICE_PROVIDER_NAME, 'en' => ShippingServiceProvider::SHIPPING_SERVICE_PROVIDER_NAME], [ 'ShippingServiceProviderTemplate\\Controllers\\ShipmentController@getLabels', 'ShippingServiceProviderTemplate\\Controllers\\ShipmentController@registerShipments', 'ShippingServiceProviderTemplate\\Controllers\\ShipmentController@deleteShipments', ] ); }
Hey there,
iam currently developing a shipment Plugin and cant figure out how the ShippingServiceProviderService Works. In the Dev Documentation it says:
The ShippingServiceProviderService class offers the possibility to register a shipping provider class and method that can be called by plentymarkets shipping controllers.
But the functions i define with this ShippingServiceProviderService never get called. How do i map these Functions to the intern plenty market functions so that when i create an Order my create Shipment Function gets called ?
Thats my boot function:
public function boot ( ShippingServiceProviderService $shippingServiceProviderService ) { $shippingServiceProviderService->registerShippingProvider( ShippingServiceProvider::PLUGIN_NAME, ['de' => ShippingServiceProvider::SHIPPING_SERVICE_PROVIDER_NAME, 'en' => ShippingServiceProvider::SHIPPING_SERVICE_PROVIDER_NAME], [ 'ShippingServiceProviderTemplate\\Controllers\\ShipmentController@getLabels', 'ShippingServiceProviderTemplate\\Controllers\\ShipmentController@registerShipments', 'ShippingServiceProviderTemplate\\Controllers\\ShipmentController@deleteShipments', ] ); }