Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CU-86950b3em Order shipment sync M2 -> SK Created observer event and consumer which processes ship… #73

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

Telepatrick
Copy link
Collaborator

@Telepatrick Telepatrick commented Jul 5, 2024

  • Created observer event and consumer which processes shipment created on M2 admin and sync it with SK order;

Check before PR #74

…ment created on M2 admin and sync it with SK order
Helper/Api/Orders.php Show resolved Hide resolved
Comment on lines 52 to 58
$shipmentId = $this->orderApiClient->newOrderShipment(
$data['storekeeper_id'],
$data['items'],
$data['store_id']
);

$this->orderApiClient->markOrderShipmentDelivered($data['store_id'], $shipmentId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add to readme that we synchronize the shipments and mark them as deliveted in storekeeper right away?

…"storekeeper.queue.sync.shipments" to observer event "shipment_save_before". Added new order flag 'order_detached' which have default value of false, can be switched from 'Storekeeper' order view tab, and allows to bypass given order in all ks-related sync processes
@Telepatrick Telepatrick requested a review from ikulis July 8, 2024 15:21
@ikulis ikulis merged commit 822ad56 into master Jul 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants