27 'include_container' =>
false,
28 'skip_adjustments' => true
36 $addToCartUrlGenerator =
$block->getLayout()->getBlockSingleton(
'Magento\Catalog\Block\Product\AbstractProduct');
40 \
Magento\Framework\
App\ActionInterface::PARAM_NAME_URL_ENCODED =>
41 $this->helper(
'Magento\Framework\Url\Helper\Data')->getEncodedUrl(
42 $addToCartUrlGenerator->getAddToCartUrl(
$product)
49 <span
class=
"old-price map-old-price"><?=
$msrpPrice ?></span>
52 <?php
if (
$priceType->isShowPriceOnGesture()): ?>
56 $data = [
'addToCart' => [
61 'productIdInput' =>
'input[type="hidden"][name="product"]',
62 'realPrice' =>
$block->getRealPriceHtml(),
63 'isSaleable' =>
$product->isSaleable(),
65 'priceElementId' => $priceElementId,
66 'closeButtonId' =>
'#map-popup-close',
68 'paymentButtons' =>
'[data-label=or]' 70 if (
$block->getRequest()->getFullActionName() ===
'catalog_product_view') {
71 $data[
'addToCart'][
'addToCartButton'] =
'#product_addtocart_form [type=submit]';
73 $data[
'addToCart'][
'addToCartButton'] = sprintf(
74 'form:has(input[type="hidden"][name="product"][value="%s"]) button[type="submit"]',
79 <span
id=
"<?= /* @escapeNotVerified */ $block->getPriceId() ? $block->getPriceId() : $priceElementId ?>" style=
"display:none"></span>
80 <a href=
"javascript:void(0);" 81 id=
"<?= /* @escapeNotVerified */ ($popupId) ?>" 82 class=
"action map-show-info" 86 <span
class=
"msrp-message">
93 <a href=
"javascript:void(0);" 94 id=
"<?= /* @escapeNotVerified */ $helpLinkId ?>" 95 class=
"action map-show-info" 96 data-
mage-init=
'{"addToCart":{"origin": "info", 97 "helpLinkId": "#<?= /* @escapeNotVerified */ $helpLinkId ?>", 98 "productName": "<?= $block->escapeJs($block->escapeHtml($product->getName())) ?>", 99 "closeButtonId": "#map-popup-close"}}'><span><?=
__(
"What's this?") ?></span>
if( $form)() ?>< script > require(['jquery' mage mage
if( $canApplyMsrp)(__( 'Price')) ?>"> <span class $helpLinkId