Skip to content

Commit

Permalink
Merge pull request #236 from henk-hypershop/patch-1
Browse files Browse the repository at this point in the history
Prevent add_to_cart from firing twice
  • Loading branch information
jissereitsma committed Aug 2, 2024
2 parents 05da1a8 + 7c86c43 commit 7515db8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions view/frontend/templates/hyva/script-additions.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ $commons = $block->getCommonsViewModel();
if (!metaData || metaData.cacheable !== true) {
yireoGoogleTagManager2Logger('removing event "' + eventId + '" from section "' + sectionName + '"')

let mageCacheStorage = window.localStorage.getItem('mage-cache-storage');
if (mageCacheStorage) {
mageCacheStorage = JSON.parse(mageCacheStorage);
}
let mageCacheStorage = event.detail.data;

if (mageCacheStorage !== null
&& typeof mageCacheStorage[sectionName] !== 'undefined'
Expand Down

0 comments on commit 7515db8

Please sign in to comment.