Sync GZD shipment only if status is changed to "shipped"

This commit is contained in:
Narek Zakarian 2022-11-30 17:22:25 +04:00
parent a0472e3a6a
commit 8e7ca29117
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 6 additions and 20 deletions

View file

@ -56,15 +56,6 @@ return array(
return function_exists( 'wc_gzd_get_shipments_by_order' ); // 3.0+
},
'compat.gzd.tracking_statuses_map' => function ( ContainerInterface $container ): array {
return array(
'draft' => 'ON_HOLD',
'processing' => 'SHIPPED',
'shipped' => 'SHIPPED',
'delivered' => 'DELIVERED',
);
},
'compat.module.url' => static function ( ContainerInterface $container ): string {
/**
* The path cannot be false.