Delivery Provider is Untriggered Functions

Help for integrating the Laravel package
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!
alababdiy
Posts: 40
Joined: 30 Apr 2023, 12:46

Delivery Provider is Untriggered Functions

Post by alababdiy » 20 Nov 2023, 21:25

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:

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 [];
}

}

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Delivery Provider is Untriggered Functions

Post by aimeos » 22 Nov 2023, 12:47

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, Image give us a star

Post Reply