diff --git a/CHANGELOG.md b/CHANGELOG.md index ec0a7b6..e6512b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Syncing meta fields is no longer performed in a job. - Deprecated the `craft\shopify\jobs\UpdateProductMetadata` job. - Fixed a bug where the template routing setting would not save. +- Removed `craft\shopify\events\ShopifyProductSyncEvent::$metafields`. Use `craft\shopify\events\ShopifyProductSyncEvent::$element->getMetaFields()` instead. ## 3.2.0 - 2023-06-12 diff --git a/src/services/Products.php b/src/services/Products.php index d3c9ffe..14a059f 100644 --- a/src/services/Products.php +++ b/src/services/Products.php @@ -171,7 +171,6 @@ public function createOrUpdateProduct(ShopifyProduct $product, array $metafields $event = new ShopifyProductSyncEvent([ 'element' => $productElement, 'source' => $product, - 'metafields' => $metafields, ]); $this->trigger(self::EVENT_BEFORE_SYNCHRONIZE_PRODUCT, $event);