Closed chapagain closed 1 year ago
@chapagain Thanks for this. Yes you're right, since 4.14.0 we made a change to always use the order's store id: https://github.com/dotmailer/dotmailer-magento2-extension/commit/67c30b9af7922a34a48687bab1a2e375f0c61833#diff-7c6e256693f6d0a136df6d7a64ef525ccc08927e0cf4c74fdddf0e6cfc85fd40
A question about your suggested change though - if you're saving an order via API without specifying its store id, the default store id will be set against the order in our email_order
table. Is this a concern? If you had different scopes, this could affect the sync fx by pushing an order into the wrong Dotdigital account.
@chapagain we're preparing to merge this. Please could you change the title to 'Provide fallback store id in OrderSaveAfter observer'?
Fix 502 error on POST API Call
We upgraded dotdigital email module from v4.12.0 to v.4.19.3 on our Magento 2 store (Magento version 2.4.3-p2).
After the dotdigital module upgrade, the order post API call is not working. It's throwing 502 error.
The
$storeId
wasnull
on the REST API Call.This PR fixes the issue.