Skip to content

Commit

Permalink
Make sure to use gtm-checkout in the checkout, not customerData cart
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Nov 28, 2023
1 parent f89fc8b commit d87b343
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.6.5] - 28 November 2023
### Fixed
- Make sure to use `gtm-checkout` in the checkout, not customerData `cart`

## [3.6.4] - 10 October 2023
### Fixed
- Prevent addShippingInfo from triggering an error in integration API #195 @rhoerr
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yireo/magento2-googletagmanager2",
"version": "3.6.4",
"version": "3.6.5",
"license": "OSL-3.0",
"type": "magento2-module",
"homepage": "https://www.yireo.com/software/magento-extensions/googletagmanager2",
Expand Down
3 changes: 3 additions & 0 deletions etc/frontend/sections.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="checkout/index/index">
<section name="gtm-checkout"/>
</action>
<action name="checkout/onepage/success">
<section name="gtm-checkout"/>
</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define([
return {
validate: function () {
logger('payment-validator-reload-customer-data');
customerData.reload(['cart'], true);
customerData.reload(['gtm-checkout'], true);
return true;
}
}
Expand Down

0 comments on commit d87b343

Please sign in to comment.