Skip to content

Commit

Permalink
Fix pixel event when updating item quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
klzns committed Oct 21, 2019
1 parent 021f6ec commit e8a5bef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Pixel event when updating item quantity.

## [2.38.0] - 2019-10-21
### Added
Expand Down
9 changes: 6 additions & 3 deletions react/legacy/components/ProductQuantityStepper.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ class ProductQuantityStepper extends Component {
pushPixelCartEvents = ({ isAdditionOfProd, product }) => {
// TODO: update these events
const updatedProduct = {
id: path(['sku', 'itemId'], product),
name: path(['productName'], product),
skuName: path(['sku', 'name'], product),
skuId: path(['sku', 'itemId'], product),
variant: path(['sku', 'name'], product),
price: path(['assemblyOptions', 'parentPrice'], product),
name: path(['productName'], product),
quantity: path(['quantity'], product),
productRefId: product.productRefId,
brand: product.brand,
category: product.category,
}
if (isAdditionOfProd) {
this.props.push({
Expand Down

0 comments on commit e8a5bef

Please sign in to comment.