From 68636ec6c41eadf000048e124344ed2c6d0cc08a Mon Sep 17 00:00:00 2001 From: Ravi Chandra Date: Sat, 8 Dec 2018 19:03:14 +0530 Subject: [PATCH] Fixed Click for price in home page not work --- .../Magento/Msrp/view/base/layout/cms_index_index.xml | 11 +++++++++++ .../Msrp/view/base/templates/product/price/msrp.phtml | 2 ++ .../Magento/Msrp/view/frontend/templates/popup.phtml | 7 +++---- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 app/code/Magento/Msrp/view/base/layout/cms_index_index.xml diff --git a/app/code/Magento/Msrp/view/base/layout/cms_index_index.xml b/app/code/Magento/Msrp/view/base/layout/cms_index_index.xml new file mode 100644 index 0000000000000..b60bc71e9e70d --- /dev/null +++ b/app/code/Magento/Msrp/view/base/layout/cms_index_index.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/app/code/Magento/Msrp/view/base/templates/product/price/msrp.phtml b/app/code/Magento/Msrp/view/base/templates/product/price/msrp.phtml index 869d81563645a..dd5abd433073d 100644 --- a/app/code/Magento/Msrp/view/base/templates/product/price/msrp.phtml +++ b/app/code/Magento/Msrp/view/base/templates/product/price/msrp.phtml @@ -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 ); } diff --git a/app/code/Magento/Msrp/view/frontend/templates/popup.phtml b/app/code/Magento/Msrp/view/frontend/templates/popup.phtml index 7ccd606b8f113..e0b3dd77dedcb 100644 --- a/app/code/Magento/Msrp/view/frontend/templates/popup.phtml +++ b/app/code/Magento/Msrp/view/frontend/templates/popup.phtml @@ -30,12 +30,11 @@ -
- + +