diff --git a/app/code/Magento/GroupedProduct/view/adminhtml/templates/catalog/product/composite/fieldset/grouped.phtml b/app/code/Magento/GroupedProduct/view/adminhtml/templates/catalog/product/composite/fieldset/grouped.phtml index 7c6fa50070315..e44aab87060fa 100644 --- a/app/code/Magento/GroupedProduct/view/adminhtml/templates/catalog/product/composite/fieldset/grouped.phtml +++ b/app/code/Magento/GroupedProduct/view/adminhtml/templates/catalog/product/composite/fieldset/grouped.phtml @@ -6,29 +6,34 @@ // phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis ?> - + helper(Magento\Catalog\Helper\Product::class)->getSkipSaleableCheck(); ?>
-

escapeHtml(__('Associated Products')) ?>

+

escapeHtml(__('Associated Products')) ?>

getProduct(); ?> setPreconfiguredValue(); ?> getAssociatedProducts(); ?> 0; ?> isAvailable() && !$_skipSaleableCheck) || !$_hasAssociatedProducts) : ?> -

escapeHtml(__('Availability:')) ?> escapeHtml(__('Out of stock')) ?>

+

escapeHtml(__('Availability:')) ?> escapeHtml(__('Out of stock')) ?>

- - - + + + getCanShowProductPrice($_product)) : ?> - + isSaleable() || $_skipSaleableCheck) : ?> - + @@ -36,10 +41,10 @@ - - - - + + + + getCanShowProductPrice($_product)) : ?> @@ -67,7 +72,7 @@ - + diff --git a/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/grouped.phtml b/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/grouped.phtml index ac6161d940a3a..a7320c3e42b2a 100644 --- a/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/grouped.phtml +++ b/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/grouped.phtml @@ -4,15 +4,18 @@ * See COPYING.txt for license details. */ -/** @var $block \Magento\Framework\View\Element\Template */ +/** + * @var $block \Magento\Framework\View\Element\Template + * @var \Magento\Framework\Escaper $escaper + */ /** @var $block \Magento\Framework\View\Element\Template */ $_gridPopupBlock = $block->getChildBlock('catalog.product.group.grid.popup.container')->getChildBlock('grid'); $_gridPopupBlock->setRowClickCallback('function(){}'); ?> -
+
- escapeHtml(__('There are no grouped products.')) ?> + escapeHtml(__('There are no grouped products.')) ?>
getChildHtml('list') ?>
diff --git a/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/list.phtml b/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/list.phtml index 0872afcc8b3c7..a832d7d72321d 100644 --- a/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/list.phtml +++ b/app/code/Magento/GroupedProduct/view/adminhtml/templates/product/grouped/list.phtml @@ -4,7 +4,10 @@ * See COPYING.txt for license details. */ // phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis -/* @var $block \Magento\GroupedProduct\Block\Product\Grouped\AssociatedProducts\ListAssociatedProducts */ +/** + * @var $block \Magento\GroupedProduct\Block\Product\Grouped\AssociatedProducts\ListAssociatedProducts + * @var \Magento\Framework\Escaper $escaper + */ ?>
escapeHtml(__('ID')) ?>escapeHtml(__('SKU')) ?>escapeHtml(__('Product Name')) ?>escapeHtml(__('ID')) ?>escapeHtml(__('SKU')) ?>escapeHtml(__('Product Name')) ?> escapeHtml(__('Price')) ?>escapeHtml(__('Price')) ?> escapeHtml(__('Qty')) ?>escapeHtml(__('Qty')) ?>
escapeHtml($_item->getId()) ?>escapeHtml($_item->getSku()) ?>escapeHtml($_item->getName()) ?>
escapeHtml($_item->getId()) ?>escapeHtml($_item->getSku()) ?>escapeHtml($_item->getName()) ?> getCanShowProductPrice($_item)) : ?> @@ -51,15 +56,15 @@ isSaleable() || $_skipSaleableCheck) : ?> - + -

escapeHtml(__('Out of stock')) ?>

+

escapeHtml(__('Out of stock')) ?>

escapeHtml(__('No options of this product are available.')) ?>escapeHtml(__('No options of this product are available.')) ?>
escapeHtml( $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getAssociatedProducts()) ); ?>"> @@ -56,16 +59,16 @@
- escapeHtml(__('Name')) ?> + escapeHtml(__('Name')) ?> - escapeHtml(__('SKU')) ?> + escapeHtml(__('SKU')) ?> - escapeHtml(__('Price')) ?> + escapeHtml(__('Price')) ?> - escapeHtml(__('Default Qty')) ?> + escapeHtml(__('Default Qty')) ?> diff --git a/app/code/Magento/GroupedProduct/view/base/templates/product/price/final_price.phtml b/app/code/Magento/GroupedProduct/view/base/templates/product/price/final_price.phtml index c9c03b9f214d9..ba4ddab55175a 100644 --- a/app/code/Magento/GroupedProduct/view/base/templates/product/price/final_price.phtml +++ b/app/code/Magento/GroupedProduct/view/base/templates/product/price/final_price.phtml @@ -7,6 +7,9 @@ /** * Template for displaying grouped product price */ +/** + * @var \Magento\Framework\Escaper $escaper + */ ?> getSaleableItem() @@ -27,7 +30,7 @@ if ($minProduct) {
getZone()) : ?>

- escapeHtml(__('Starting at')) ?>toHtml() ?> + escapeHtml(__('Starting at')) ?>toHtml() ?>

diff --git a/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/default.phtml b/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/default.phtml index b1697bfb012b9..fe5e38c2bd5c1 100644 --- a/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/default.phtml +++ b/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/default.phtml @@ -4,19 +4,24 @@ * See COPYING.txt for license details. */ ?> - + getProduct() ?> getAssociatedProducts(); ?> 0; ?> displayProductStockStatus()) : ?> isAvailable() && $_hasAssociatedProducts) : ?> -
- escapeHtml(__('In stock')) ?> +
+ escapeHtml(__('In stock')) ?>
-
- escapeHtml(__('Out of stock')) ?> +
+ escapeHtml(__('Out of stock')) ?>
diff --git a/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/grouped.phtml b/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/grouped.phtml index 0257d87a2d9ee..d66ff29fe7d21 100644 --- a/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/grouped.phtml +++ b/app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/grouped.phtml @@ -9,6 +9,7 @@ * * @var $block \Magento\Catalog\Block\Product\View\BaseImage * @var $block \Magento\GroupedProduct\Block\Product\View\Type\Grouped + * @var \Magento\Framework\Escaper $escaper */ ?> setPreconfiguredValue(); ?> @@ -20,12 +21,12 @@ - + - + isSaleable()) : ?> - + @@ -34,8 +35,8 @@ - isSaleable()) : ?> - @@ -85,7 +86,7 @@
escapeHtml(__('Grouped product items')) ?>escapeHtml(__('Grouped product items')) ?>
escapeHtml(__('Product Name')) ?>escapeHtml(__('Product Name')) ?> escapeHtml(__('Qty')) ?>escapeHtml(__('Qty')) ?>
- escapeHtml($_item->getName()) ?> + + escapeHtml($_item->getName()) ?> getCanShowProductPrice($_product)) : ?> getCanShowProductPrice($_item)) : ?> getProductPrice($_item) ?> @@ -43,21 +44,21 @@ + isSaleable()) : ?>
-
- escapeHtml(__('Out of stock')) ?> +
+ escapeHtml(__('Out of stock')) ?>
- escapeHtml(__('No options of this product are available.')) ?> + escapeHtml(__('No options of this product are available.')) ?>