File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
### [ Unreleased]
8
8
9
+ ### [ 2.1.1] - 2021-04-21
10
+
11
+ #### Fixes
12
+ - Use store ids instead of website ids in the ProductDeleteBefore Observer
13
+
9
14
### [ 2.1.0] - 2021-03-22
10
15
11
16
#### Added
@@ -55,6 +60,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55
60
[ 1.2.4 ] : https://github.com/klaviyo/magento2-klaviyo/compare/1.2.3...1.2.4
56
61
[ 1.2.3 ] : https://github.com/klaviyo/magento2-klaviyo/compare/1.2.2...1.2.3
57
62
58
-
63
+
59
64
#### NOTE
60
65
- The CHANGELOG was created on 2020-11-20 and does not contain information about earlier releases
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ public function __construct(
54
54
public function execute (Observer $ observer )
55
55
{
56
56
$ product = $ observer ->getEvent ()->getProduct ();
57
- $ websiteIds = $ product ->getWebsiteIds ();
58
- $ storeIdKlaviyoMap = $ this ->_klaviyoScopeSetting ->getStoreIdKlaviyoAccountSetMap ($ websiteIds );
57
+ $ storeIds = $ product ->getStoreIds ();
58
+ $ storeIdKlaviyoMap = $ this ->_klaviyoScopeSetting ->getStoreIdKlaviyoAccountSetMap ($ storeIds );
59
59
60
60
foreach ($ storeIdKlaviyoMap as $ klaviyoId => $ storeIds ) {
61
61
if (empty ($ storeIds )) {
@@ -72,5 +72,3 @@ public function execute(Observer $observer)
72
72
}
73
73
}
74
74
}
75
-
76
-
You can’t perform that action at this time.
0 commit comments