File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
app/code/Magento/Msrp/view Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" layout =" 2columns-left" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
+ <update handle =" msrp_popup" />
10
+ <body />
11
+ </page >
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ if ($product->isSaleable()) {
72
72
} else {
73
73
$ data ['addToCart ' ]['addToCartButton ' ] = sprintf (
74
74
'form:has(input[type="hidden"][name="product"][value="%s"]) button[type="submit"] ' ,
75
+ (int ) $ productId ) . ', ' .
76
+ sprintf ('.block.widget .price-box[data-product-id=%s]+.product-item-actions button.tocart ' ,
75
77
(int ) $ productId
76
78
);
77
79
}
Original file line number Diff line number Diff line change 30
30
<span id="map-popup-price" class="actual-price"></span>
31
31
</div>
32
32
</div>
33
- <form action="" method="POST" id="product_addtocart_form_from_popup" class="map-form-addtocart">
34
- <input type="hidden" name="product" class="product_id" value="" id="map-popup-product-id" />
33
+ <form action="" method="POST" class="map-form-addtocart">
34
+ <input type="hidden" name="product" class="product_id" value="" />
35
35
<button type="button"
36
36
title="<?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> "
37
- class="action tocart primary"
38
- id="map-popup-button">
37
+ class="action tocart primary">
39
38
<span><?= /* @escapeNotVerified */ __ ('Add to Cart ' ) ?> </span>
40
39
</button>
41
40
<div class="additional-addtocart-box">
You can’t perform that action at this time.
0 commit comments