Delivery Provider is Untriggered Functions
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Delivery Provider is Untriggered Functions
All those functions remained untriggered when the order status was updated or when the order was placed.
Note: I am certain that I selected the delivery option that is shown during the order checkout step.
code:
Note: I am certain that I selected the delivery option that is shown during the order checkout step.
code:
Code: Select all
<?php
namespace Aimeos\MShop\Service\Provider\Delivery;
use Illuminate\Support\Facades\Log;
class MyProvider
{
public function push(iterable $orders): \Aimeos\Map
{
Log::debug('IN HERE 38');
error_log('IN HERE 38');
return map($orders);
}
public function updateAsync(): bool
{
Log::debug('IN HERE 52');
error_log('IN HERE 52');
return true;
}
public function updatePush(
\Psr\Http\Message\ServerRequestInterface $request,
\Psr\Http\Message\ResponseInterface $response
): \Psr\Http\Message\ResponseInterface {
Log::debug('IN HERE 65');
error_log('IN HERE 65');
return $response;
}
public function processBatch(array $orders)
{
Log::debug('IN HERE 70');
error_log('IN HERE 70');
}
public function checkConfigBE(array $attributes): array
{
Log::debug('IN HERE XYZ');
error_log('IN HERE XYZ');
return $attributes;
}
public function getConfigBE(): array
{
Log::debug('IN HERE ABC');
error_log('IN HERE ABC');
return [];
}
}
Re: Delivery Provider is Untriggered Functions
At least the checkConfigBE() and getConfigBE() should be called if you select your provider in the admin backend and move to the next field so the available configuration options are queried. You can check that in the browser console (network tab) too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star