In Magento versions <2.4.3 isStatusChanged doesn't evaluate to true for net new subscriptions made through any magento newsletter forms. This prevents new subscriptions from syncing to Klaviyo. This PR adds in a check for isObjectNew to be backwards compatible with old m2 versions.
Manual Testing Steps
Tested locally on a 2.4.2 instance
Pre-Submission Checklist:
[x] You've updated the CHANGELOG following the steps here
[ ] Internal Only - If this is a release, please confirm the following:
[ ] The links in the changelog have been updated to point towards the new versions
[ ] The version has been incremented in the following places: module.xml and composer.json
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.
Description
In Magento versions <2.4.3
isStatusChanged
doesn't evaluate to true for net new subscriptions made through any magento newsletter forms. This prevents new subscriptions from syncing to Klaviyo. This PR adds in a check forisObjectNew
to be backwards compatible with old m2 versions.Manual Testing Steps
Pre-Submission Checklist:
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.