Update Instructions of AfterShip Feed Magento2 plugin
Articles on: Cancellation
As per AfterShip Feed's revised logic to sync TikTok Shop orders to Magento2 with invoices and the subsequent change in the Order cancellation sync rules between the two platforms via AfterShip Feed, users need to update the AfterShip Feed Magento2 plugin to ensure that AfterShip Feed can properly receive and process refund events for your orders.
To upgrade the AfterShip Feed for Magento2 plugin, follow the below instructions.
Go to the shop installation directory, for example, /home/wwwroot/magento14.
Run the following command to fetch the latest plugin code. Replace user_name with your actual login account name:
Next, execute the configuration update command:
If these commands complete without errors, you can proceed to Step 2.
Check for running webhook queue: Execute the following command to see if a webhook queue is currently running:
If you receive a result similar to the image below, it means a queue is running:
If the queue is running, stop and restart it
Identify the queue ID: Find the queue ID from the output. It will be highlighted in red in the image below:
Stop the queue: Use the following command to stop the queue. Replace 2377812 with your actual queue ID:
Confirm the queue has stopped: Run the check command again to ensure the queue is no longer running:
Start the queue: Finally, start the queue with the following command:
After executing the start command successfully, a new queue ID will be returned, similar to the image below:
Verify the queue has started: Run the check command again to confirm that the new queue is running:
Updated on: 21/08/2024
Overview
As per AfterShip Feed's revised logic to sync TikTok Shop orders to Magento2 with invoices and the subsequent change in the Order cancellation sync rules between the two platforms via AfterShip Feed, users need to update the AfterShip Feed Magento2 plugin to ensure that AfterShip Feed can properly receive and process refund events for your orders.
To upgrade the AfterShip Feed for Magento2 plugin, follow the below instructions.
Step 1: Update the plugin
Go to the shop installation directory, for example, /home/wwwroot/magento14.
Run the following command to fetch the latest plugin code. Replace user_name with your actual login account name:
sudo -u *user_name* composer update
Next, execute the configuration update command:
sudo -u *user_name* bin/magento setup:upgrade
If these commands complete without errors, you can proceed to Step 2.
Step 2: Restart the webhook queue
Check for running webhook queue: Execute the following command to see if a webhook queue is currently running:
ps aux | grep aftership
If you receive a result similar to the image below, it means a queue is running:
If the queue is running, stop and restart it
Identify the queue ID: Find the queue ID from the output. It will be highlighted in red in the image below:
Stop the queue: Use the following command to stop the queue. Replace 2377812 with your actual queue ID:
sudo -u *user_name* kill 2377812
Confirm the queue has stopped: Run the check command again to ensure the queue is no longer running:
ps aux | grep aftership
Start the queue: Finally, start the queue with the following command:
sudo -u *user_name* bin/magento queue:consumers:start aftership.webhook.events &
After executing the start command successfully, a new queue ID will be returned, similar to the image below:
Verify the queue has started: Run the check command again to confirm that the new queue is running:
ps aux | grep aftership
Updated on: 21/08/2024
Mis à jour le : 29/08/2024
Merci !