Previously we synced the configurable product image path instead of the simple product that was added to the cart. This PR updates that behavior to use the simple product image if applicable, and fall back on the configurable product if we cannot find an image on the simple product.
It also adds 2 new event fields for Added to cart: StoreId and AddedSimpleProductId. These are stored at the top level and can be used for additional filtration or use in catalog tags in email templates.
Manual Testing Steps
Tested simple products, bundles, groups, and configurable products. Made sure the correct fields were syncing to klaviyo. Validated that the behavior for bundles and grouped products was unchanged. Verified that simple product information is syncing correctly for simple product and configurable product carts.
Tested
Pre-Submission Checklist:
[ ] 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
Previously we synced the configurable product image path instead of the simple product that was added to the cart. This PR updates that behavior to use the simple product image if applicable, and fall back on the configurable product if we cannot find an image on the simple product.
It also adds 2 new event fields for Added to cart: StoreId and AddedSimpleProductId. These are stored at the top level and can be used for additional filtration or use in catalog tags in email templates.
Manual Testing Steps
Pre-Submission Checklist:
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.