File tree 5 files changed +14
-9
lines changed
5 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ 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-05-17
10
+
11
+ #### Fixes
12
+ - Use store ids instead of website ids in the ProductDeleteBefore Observer
13
+ - Check for versions older than 2.0.0 in UpgradeSchema
14
+
9
15
### [ 2.1.0] - 2021-03-22
10
16
11
17
#### Added
@@ -49,12 +55,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
49
55
- CSP now uses report-only mode
50
56
51
57
52
- [ Unreleased ] : https://github.com/klaviyo/magento2-klaviyo/compare/2.1.0...HEAD
58
+ [ Unreleased ] : https://github.com/klaviyo/magento2-klaviyo/compare/2.1.1...HEAD
59
+ [ 2.1.1 ] : https://github.com/klaviyo/magento2-klaviyo/compare/2.1.0...2.1.1
53
60
[ 2.1.0 ] : https://github.com/klaviyo/magento2-klaviyo/compare/2.0.0...2.1.0
54
61
[ 2.0.0 ] : https://github.com/klaviyo/magento2-klaviyo/compare/1.2.4...2.0.0
55
62
[ 1.2.4 ] : https://github.com/klaviyo/magento2-klaviyo/compare/1.2.3...1.2.4
56
63
[ 1.2.3 ] : https://github.com/klaviyo/magento2-klaviyo/compare/1.2.2...1.2.3
57
64
58
-
65
+
59
66
#### NOTE
60
67
- 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
-
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class UpgradeSchema implements UpgradeSchemaInterface
19
19
20
20
public function upgrade (SchemaSetupInterface $ setup , ModuleContextInterface $ context )
21
21
{
22
- if (version_compare ($ context ->getVersion (), '2.0.0 ' , '> ' )) {
22
+ if (version_compare ($ context ->getVersion (), '2.1.1 ' , '< ' )) {
23
23
$ installer = $ setup ;
24
24
$ installer ->startSetup ();
25
25
Original file line number Diff line number Diff line change 2
2
"name" : " klaviyo/magento2-extension" ,
3
3
"description" : " Klaviyo extension for Magento 2. Allows pushing newsletters to Klaviyo's platform and more." ,
4
4
"type" : " magento2-module" ,
5
- "version" : " 2.1.0 " ,
5
+ "version" : " 2.1.1 " ,
6
6
"autoload" : {
7
7
"files" : [
8
8
" registration.php"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
3
- <module name =" Klaviyo_Reclaim" setup_version =" 2.1.0 " schema_version =" 2.1.0 " >
3
+ <module name =" Klaviyo_Reclaim" setup_version =" 2.1.1 " schema_version =" 2.1.1 " >
4
4
<sequence >
5
5
<module name =" Magento_Customer" />
6
6
<module name =" Magento_Checkout" />
You can’t perform that action at this time.
0 commit comments