Skip to content

Commit 92ce9c5

Browse files
committed
FFWEB-3393: Cart tracking - parse price to float
Cart tracking - parse price to float
1 parent e80dc6d commit 92ce9c5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## Unreleased
3+
### Fix
4+
- Cart tracking - parse price to float
5+
26
## [v5.2.0] - 2025.05.15
37
### Add
48
- Add support for Magento v2.4.8

src/view/frontend/web/js/catalog-add-to-cart-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ define([
2525
const track = factfinder.tracking;
2626
track.cart([{
2727
id: cartItem.product_sku,
28-
price: cartItem.product_price_value,
28+
price: parseFloat(cartItem.product_price_value),
2929
masterId: eventData.sku || cartItem.product_sku,
3030
count: parseInt(qtyInput.value),
3131
sid: JSON.parse(localStorage.ffwebco).sid

0 commit comments

Comments
 (0)