File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
app/code/Magento/Catalog/view/frontend/web/js/product Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ define([
143
143
_ . each ( ids , function ( id ) {
144
144
if (
145
145
currentTime - id [ 'added_at' ] < ~ ~ this . idsStorage . lifetime &&
146
- ! _ . contains ( currentProductIds , id [ 'product_id' ] )
146
+ ! _ . contains ( currentProductIds , id [ 'product_id' ] ) &&
147
+ ( ! id . hasOwnProperty ( 'website_id' ) || id [ 'website_id' ] === window . checkout . websiteId )
147
148
) {
148
149
_ids [ id [ 'product_id' ] ] = id ;
149
150
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ define([
72
72
_ . each ( data , function ( item ) {
73
73
result [ item . id ] = {
74
74
'added_at' : new Date ( ) . getTime ( ) / 1000 ,
75
- 'product_id' : item . id
75
+ 'product_id' : item . id ,
76
+ 'website_id' : window . checkout . websiteId
76
77
} ;
77
78
} ) ;
78
79
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ define([
90
90
_ . each ( this . data . items , function ( item , key ) {
91
91
result [ key ] = {
92
92
'added_at' : new Date ( ) . getTime ( ) / 1000 ,
93
- 'product_id' : key
93
+ 'product_id' : key ,
94
+ 'website_id' : window . checkout . websiteId
94
95
} ;
95
96
} , this ) ;
96
97
You can’t perform that action at this time.
0 commit comments