Skip to content

Commit e0f4eda

Browse files
Merge pull request #329 from klaviyo/BUGPORT-8326-m-2-formatted-value-field-in-viewed-product-snippet-causes-api-error-in-latest-extension
Ensures ViewProduct json price has no commas.
2 parents f35e1de + c2d43b8 commit e0f4eda

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

Block/Catalog/Product/ViewedProduct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function getViewedProductJson()
214214
'FinalPrice' => $this->getFinalPrice(),
215215
'Categories' => $this->getProductCategories(),
216216
'StoreId' => $this->_klaviyoScopeSetting->storeId,
217-
'$value' => $this->getPrice()
217+
'$value' => str_replace(",", "", $this->getPrice())
218218
];
219219

220220
if ($this->getProductImage()) {

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
<!-- BEGIN RELEASE NOTES -->
88
### [Unreleased]
99

10+
### [4.3.1] - 2025-05-09
11+
12+
#### Fixed
13+
- BUGPORT-8326: Formatted $value field in Viewed Product snippet causes API error in latest extension.
14+
1015
### [4.3.0] - 2025-04-16
1116

1217
#### Added
@@ -312,7 +317,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
312317

313318
<!-- END RELEASE NOTES -->
314319
<!-- BEGIN LINKS -->
315-
[Unreleased]: https://github.com/klaviyo/magento2-klaviyo/compare/4.3.0...HEAD
320+
[Unreleased]: https://github.com/klaviyo/magento2-klaviyo/compare/4.3.1...HEAD
321+
[4.3.1]: https://github.com/klaviyo/magento2-klaviyo/compare/4.3.0...4.3.1
316322
[4.3.0]: https://github.com/klaviyo/magento2-klaviyo/compare/4.2.0...4.3.0
317323
[4.2.0]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.4...4.2.0
318324
[4.1.4]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.3...4.1.4

composer.dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "klaviyo/magento2-extension-dev",
33
"description": "The local development composer file. This is used for local and continuous integration setup/testing.",
44
"type": "magento2-module",
5-
"version": "4.3.0",
5+
"version": "4.3.1",
66
"autoload": {
77
"psr-4": {
88
"Klaviyo\\Reclaim\\": ""

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "klaviyo/magento2-extension",
33
"description": "Klaviyo extension for Magento 2. Allows pushing newsletters to Klaviyo's platform and more.",
44
"type": "magento2-module",
5-
"version": "4.3.0",
5+
"version": "4.3.1",
66
"autoload": {
77
"files": [
88
"registration.php"

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<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="4.3.0" schema_version="4.3.0">
3+
<module name="Klaviyo_Reclaim" setup_version="4.3.1" schema_version="4.3.1">
44
<sequence>
55
<module name="Magento_Customer"/>
66
<module name="Magento_Checkout"/>

0 commit comments

Comments
 (0)