This repository was archived by the owner on Jan 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
26
- update replaceNumberToString, so it will change ONLY numbers to string - @gibkigonzo (#4217 )
27
27
- allow empty shipping methods in checkout - @gibkigozno (#4192 )
28
28
- configure products before price update - this is needed to have variant sku as product sku - @gibkigonzo (#4053 )
29
- - omit stock when creating cart hash, it is not needed to compare products - @gibkigozno (#4235 )
29
+ - omit stock and totals when creating cart hash, it is not needed to compare products - @gibkigozno (#4235 , # 4273 )
30
30
31
31
## [ 1.11.2] - 2020.03.10
32
32
Original file line number Diff line number Diff line change @@ -225,7 +225,9 @@ export const serial = async promises => {
225
225
// helper to calculate the hash of the shopping cart
226
226
export const calcItemsHmac = ( items = [ ] , token ) => {
227
227
return sha3_224 ( JSON . stringify ( {
228
- items : items . map ( item => omit ( item , [ 'stock' ] ) ) ,
228
+ // we need to omit those properties because they are loaded async and added to product data
229
+ // and they are not needed to compare products
230
+ items : items . map ( item => omit ( item , [ 'stock' , 'totals' ] ) ) ,
229
231
token : token
230
232
} ) )
231
233
}
You can’t perform that action at this time.
0 commit comments