Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/code/Magento/Msrp/view/base/layout/cms_index_index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="msrp_popup"/>
<body/>
</page>
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ if ($product->isSaleable()) {
} else {
$data['addToCart']['addToCartButton'] = sprintf(
'form:has(input[type="hidden"][name="product"][value="%s"]) button[type="submit"]',
(int) $productId) . ',' .
sprintf('.block.widget .price-box[data-product-id=%s]+.product-item-actions button.tocart',
(int) $productId
);
}
Expand Down
7 changes: 3 additions & 4 deletions app/code/Magento/Msrp/view/frontend/templates/popup.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@
<span id="map-popup-price" class="actual-price"></span>
</div>
</div>
<form action="" method="POST" id="product_addtocart_form_from_popup" class="map-form-addtocart">
<input type="hidden" name="product" class="product_id" value="" id="map-popup-product-id"/>
<form action="" method="POST" class="map-form-addtocart">
<input type="hidden" name="product" class="product_id" value="" />
<button type="button"
title="<?= $block->escapeHtml(__('Add to Cart')) ?>"
class="action tocart primary"
id="map-popup-button">
class="action tocart primary">
<span><?= /* @escapeNotVerified */ __('Add to Cart') ?></span>
</button>
<div class="additional-addtocart-box">
Expand Down