From 54fa256fff3711199b8c5cc3b27995ace481205b Mon Sep 17 00:00:00 2001 From: Bhoopat Parmar Date: Thu, 11 Apr 2024 10:36:38 +0530 Subject: [PATCH 1/5] Fixed bundle product issue in product carousel --- .../templates/catalog/product/widget/content/carousel.phtml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml index 16843d499fd..576cbc5e278 100644 --- a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml +++ b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml @@ -61,6 +61,12 @@ use Magento\Framework\App\Action\Action; isSaleable()): ?> getAddToCartPostParams($_item); ?>
+ getViewModel()->getOptionsData($_item); ?> + + + getBlockHtml('formkey') ?> From b1202f084bfe605cd349fe6954afade3522030d2 Mon Sep 17 00:00:00 2001 From: Bhoopat Parmar Date: Thu, 11 Apr 2024 12:28:23 +0530 Subject: [PATCH 2/5] prevented nullable (not defined) viewModel --- .../templates/catalog/product/widget/content/carousel.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml index 576cbc5e278..e54491743f4 100644 --- a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml +++ b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml @@ -61,7 +61,7 @@ use Magento\Framework\App\Action\Action; isSaleable()): ?> getAddToCartPostParams($_item); ?> - getViewModel()->getOptionsData($_item); ?> + getViewModel()?->getOptionsData($_item); ?> Date: Thu, 11 Apr 2024 12:32:15 +0530 Subject: [PATCH 3/5] prevented nullable (not defined) viewModel --- .../catalog/product/widget/content/carousel.phtml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml index e54491743f4..4929a9f32f3 100644 --- a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml +++ b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml @@ -61,12 +61,13 @@ use Magento\Framework\App\Action\Action; isSaleable()): ?> getAddToCartPostParams($_item); ?> - getViewModel()?->getOptionsData($_item); ?> - - - + getViewModel()?->getOptionsData($_item)) : ?> + + + + getBlockHtml('formkey') ?> From ab2fcdac572b1c7d61d7846a8441f445a6c2c9e3 Mon Sep 17 00:00:00 2001 From: Bhoopat Parmar Date: Thu, 16 May 2024 13:27:57 +0530 Subject: [PATCH 4/5] Fixed static tests --- .../product/widget/content/carousel.phtml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml index 4929a9f32f3..1cf8e9f9f76 100644 --- a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml +++ b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml @@ -34,15 +34,15 @@ use Magento\Framework\App\Action\Action; ' : '
  • ' ?>
    - + getImage($_item, $image)->toHtml() ?>
    - - escapeHtml($_item->getName()) ?> + escapeHtml($_item->getName()) ?> @@ -60,21 +60,21 @@ use Magento\Framework\App\Action\Action;
    isSaleable()): ?> getAddToCartPostParams($_item); ?> - - getViewModel()?->getOptionsData($_item)) : ?> + + getViewModel()?->getOptionsData($_item)): ?> - + getBlockHtml('formkey') ?> getIsSalable()): ?> -
    escapeHtml(__('In stock')) ?>
    +
    escapeHtml(__('In stock')) ?>
    -
    escapeHtml(__('Out of stock')) ?>
    +
    escapeHtml(__('Out of stock')) ?>
    @@ -99,14 +99,14 @@ use Magento\Framework\App\Action\Action; From e5302d737d77879f1ac86eb77d4275d182fc60d9 Mon Sep 17 00:00:00 2001 From: Bhoopat Parmar Date: Wed, 10 Jul 2024 11:52:57 +0530 Subject: [PATCH 5/5] fixed optiondata issue --- .../catalog/product/widget/content/carousel.phtml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml index 1cf8e9f9f76..e6c42d4f90a 100644 --- a/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml +++ b/app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml @@ -61,13 +61,12 @@ use Magento\Framework\App\Action\Action; isSaleable()): ?> getAddToCartPostParams($_item); ?>
    - getViewModel()?->getOptionsData($_item)): ?> - - - - + getOptionsData($_item); ?> + + + getBlockHtml('formkey') ?>