Skip to content

Commit 08e9c88

Browse files
committed
MAGETWO-69210: [Google Tag Manager] Ajax "Add to Cart" / "Remove from Cart" do not fire any events
1 parent 5e9de4b commit 08e9c88

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/list.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
7878
<div class="actions-primary"<?= strpos($pos, $viewMode . '-primary') ? $position : '' ?>>
7979
<?php if ($_product->isSaleable()): ?>
8080
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
81-
<form data-role="tocart-form" data-product-sku="<?= /* @escapeNotVerified */ $_product->getSku() ?>" action="<?= /* @escapeNotVerified */ $postParams['action'] ?>" method="post">
81+
<form data-role="tocart-form" data-product-sku="<?= $_product->getSku() ?>" action="<?= $postParams['action'] ?>" method="post">
8282
<input type="hidden" name="product" value="<?= /* @escapeNotVerified */ $postParams['data']['product'] ?>">
8383
<input type="hidden" name="<?= /* @escapeNotVerified */ Action::PARAM_NAME_URL_ENCODED ?>" value="<?= /* @escapeNotVerified */ $postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
8484
<?= $block->getBlockHtml('formkey') ?>

0 commit comments

Comments
 (0)