File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 6
6
use Magento \Framework \App \Action \Action ;
7
7
8
8
// phpcs:disable Magento2.Templates.ThisInTemplate
9
+ // phpcs:disable Generic.Files.LineLength.TooLong
9
10
10
11
/** @var \Magento\CatalogWidget\Block\Product\ProductsList $block */
11
12
?>
@@ -77,6 +78,15 @@ use Magento\Framework\App\Action\Action;
77
78
<?php endif ; ?>
78
79
<?php endif ; ?>
79
80
</div>
81
+ <script type="text/x-magento-init">
82
+ {
83
+ "[data-role=tocart-form], .form.map.checkout": {
84
+ "catalogAddToCart": {
85
+ "product_sku": "<?= $ escaper ->escapeJs ($ _item ->getSku ()); ?> "
86
+ }
87
+ }
88
+ }
89
+ </script>
80
90
<?php endif ; ?>
81
91
<?php if ($ showWishlist || $ showCompare ) : ?>
82
92
<div class="actions-secondary" data-role="add-to-links">
@@ -102,13 +112,4 @@ use Magento\Framework\App\Action\Action;
102
112
<?= ($ iterator == count ($ items ) + 1 ) ? '</li> ' : '' ?>
103
113
<?php endforeach ?>
104
114
</ol>
105
- <script type="text/x-magento-init">
106
- {
107
- "[data-role=tocart-form], .form.map.checkout": {
108
- "catalogAddToCart": {
109
- "product_sku": "<?= $ escaper ->escapeJs ($ _item ->getSku ()); ?> "
110
- }
111
- }
112
- }
113
- </script>
114
115
<?php endif ;?>
You can’t perform that action at this time.
0 commit comments