myparcelnl / prestashop

PrestaShop module to integrate with MyParcel NL and BE
https://developer.myparcel.nl/nl/documentatie/11.prestashop.html
10 stars 5 forks source link

Order status not automatically updated if order has had the new status before #194

Closed EdieLemoine closed 9 months ago

EdieLemoine commented 1 year ago

What problem does this feature solve?

Example: If an order has manually been set to status "delivered" in the past, but it has been changed to "shipped", a shipment status update that would automatically trigger the order to update to "delivered" will not work. This is because the plugin only checks the order_history table to determine whether the status should be updated.

What should the solution look like?

Possibly just ignore the order status history when trying to update to a new status.

Relevant log output

No response

Additional context

No response

EdieLemoine commented 9 months ago

Webhooks and all related logic are vastly improved in v2.0.0-beta.1, this should work fine now.