File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/Catalog/view/frontend/templates/product Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
78
78
<div class="actions-primary"<?= strpos ($ pos , $ viewMode . '-primary ' ) ? $ position : '' ?> >
79
79
<?php if ($ _product ->isSaleable ()): ?>
80
80
<?php $ postParams = $ block ->getAddToCartPostParams ($ _product ); ?>
81
- <form data-role="tocart-form" data-product-sku="<?= $ _product ->getSku () ?> " action="<?= $ postParams ['action ' ] ?> " method="post">
81
+ <form data-role="tocart-form" data-product-sku="<?= /* @NoEscape */ $ _product ->getSku () ?> " action="<?= /* @NoEscape */ $ postParams ['action ' ] ?> " method="post">
82
82
<input type="hidden" name="product" value="<?= /* @escapeNotVerified */ $ postParams ['data ' ]['product ' ] ?> ">
83
83
<input type="hidden" name="<?= /* @escapeNotVerified */ Action::PARAM_NAME_URL_ENCODED ?> " value="<?= /* @escapeNotVerified */ $ postParams ['data ' ][Action::PARAM_NAME_URL_ENCODED ] ?> ">
84
84
<?= $ block ->getBlockHtml ('formkey ' ) ?>
@@ -122,7 +122,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
122
122
{
123
123
"[data-role=tocart-form], .form.map.checkout": {
124
124
"catalogAddToCart": {
125
- "product_sku": "<?= $ _product ->getSku () ?> "
125
+ "product_sku": "<?= /* @NoEscape */ $ _product ->getSku () ?> "
126
126
}
127
127
}
128
128
}
Original file line number Diff line number Diff line change 16
16
<?php $ _product = $ block ->getProduct (); ?>
17
17
18
18
<div class="product-add-form">
19
- <form data-product-sku="<?= $ _product ->getSku () ?> "
20
- action="<?= $ block ->getSubmitUrl ($ _product ) ?> " method="post"
19
+ <form data-product-sku="<?= /* @NoEscape */ $ _product ->getSku () ?> "
20
+ action="<?= /* @NoEscape */ $ block ->getSubmitUrl ($ _product ) ?> " method="post"
21
21
id="product_addtocart_form"<?php if ($ _product ->getOptions ()): ?> enctype="multipart/form-data"<?php endif ; ?> >
22
22
<input type="hidden" name="product" value="<?= /* @escapeNotVerified */ $ _product ->getId () ?> " />
23
23
<input type="hidden" name="selected_configurable_option" value="" />
You can’t perform that action at this time.
0 commit comments