diff --git a/app/code/Magento/Bundle/view/adminhtml/layout/catalog_product_view_type_bundle.xml b/app/code/Magento/Bundle/view/adminhtml/layout/catalog_product_view_type_bundle.xml index 68c5b914cf458..11a4a403935ba 100644 --- a/app/code/Magento/Bundle/view/adminhtml/layout/catalog_product_view_type_bundle.xml +++ b/app/code/Magento/Bundle/view/adminhtml/layout/catalog_product_view_type_bundle.xml @@ -15,5 +15,6 @@ + diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml index 236f15d6b376c..4dfa9aec4d384 100644 --- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml +++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml @@ -3,59 +3,84 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ + +use Magento\Bundle\Block\Adminhtml\Catalog\Product\Composite\Fieldset\Options\Type\Checkbox; +use Magento\Framework\Escaper; + // phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis +// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper + ?> - + + getOption(); ?> getSelections(); ?> helper(Magento\Catalog\Helper\Product::class)->getSkipSaleableCheck(); ?>
-
+
- getRequired()) : ?> + getRequired()): ?> getSelectionQtyTitlePrice($_selections[0]) ?> - + name="bundle_option[escapeHtmlAttr($_option->getId()) ?>]" + value="escapeHtmlAttr($_selections[0]->getSelectionId()) ?>" + price="escapeHtmlAttr($block->getSelectionPrice($_selections[0])) ?>" /> + - +
isSelected($_selection)) :?> + name="bundle_option[escapeHtmlAttr($_option->getId()) ?>] + [escapeHtmlAttr($_selection->getId()) ?>]" + isSelected($_selection)):?> - isSaleable() && !$_skipSaleableCheck) :?> + isSaleable() && !$_skipSaleableCheck):?> - value="escapeHtmlAttr($_selection->getSelectionId()) ?>" + value="escapeHtmlAttr($_selection->getSelectionId()) ?>" onclick="ProductConfigure.bundleControl.changeSelection(this)" - price="escapeHtmlAttr($block->getSelectionPrice($_selection)) ?>" /> + price="escapeHtmlAttr($block->getSelectionPrice($_selection)) ?>" /> - getRequired()) : ?> - setValidationContainer('bundle-option-' . $_option->getId() . '-' . $_selection->getSelectionId(), 'bundle-option-' . $_option->getId() . '-container') ?> + getRequired()): ?> + setValidationContainer('bundle-option-' . $_option->getId() . '-' . $_selection->getSelectionId(), 'bundle-option-' . $_option->getId() . '-container') // phpcs:ignore?>
-
+
+
+
+ +
+ +
+
+
+ diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml index 28b94b21b7889..0644b3bfac51d 100644 --- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml +++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml @@ -3,36 +3,57 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ + +use Magento\Bundle\Block\Adminhtml\Catalog\Product\Composite\Fieldset\Options\Type\Multi; +use Magento\Framework\Escaper; + // phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis +// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper ?> - + + getOption(); ?> getSelections(); ?> helper(Magento\Catalog\Helper\Product::class)->getSkipSaleableCheck(); ?> -
- +
+
- getRequired()) : ?> + getRequired()): ?> getSelectionQtyTitlePrice($_selections[0]) ?> - - - - getRequired()) : ?> - + getRequired()): ?> + - -
+
+
+ +
+ +
+
+
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml index 047e25a65af2b..367ff60352d03 100644 --- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml +++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml @@ -3,58 +3,68 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis +// phpcs:disable Magento2.Templates.ThisInTemplate +// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper ?> + getOption(); ?> getSelections(); ?> getDefaultSelection(); ?> helper(Magento\Catalog\Helper\Product::class)->getSkipSaleableCheck(); ?> getDefaultValues(); ?> -
- +
+
- showSingle()) : ?> + showSingle()): ?> getSelectionTitlePrice($_selections[0]) ?> - - - - + + - -
-
- -
- - id="bundle-option-escapeHtmlAttr($_option->getId()) ?>-qty-input" - class="input-text admin__control-text qty validate-greater-than-zero" - type="text" - name="bundle_option_qty[escapeHtmlAttr($_option->getId()) ?>]" - value="escapeHtmlAttr($_defaultQty) ?>" /> -
-
-
+
+
+ +
+ + + + id="bundle-option-escapeHtmlAttr($_option->getId()) ?>-qty-input" + class="input-text admin__control-text qty + validate-greater-than-zero + + + " + type="text" + name="bundle_option_qty[escapeHtmlAttr($_option->getId()) ?>]" + value="escapeHtmlAttr($_defaultQty) ?>" /> +
+
+
diff --git a/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminAddToOrderBundleProductActionGroup.xml b/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminAddToOrderBundleProductActionGroup.xml index f5a600b1d2597..2e5549a5ba4b1 100644 --- a/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminAddToOrderBundleProductActionGroup.xml +++ b/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminAddToOrderBundleProductActionGroup.xml @@ -20,9 +20,9 @@ - + - \ No newline at end of file + diff --git a/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOpenAndFillCreditMemoRefundBundleWithQtyActionGroup.xml b/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOpenAndFillCreditMemoRefundBundleWithQtyActionGroup.xml index 65a64bdf9eb90..9c67bc05f9cd5 100644 --- a/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOpenAndFillCreditMemoRefundBundleWithQtyActionGroup.xml +++ b/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOpenAndFillCreditMemoRefundBundleWithQtyActionGroup.xml @@ -21,7 +21,7 @@ - + @@ -31,7 +31,6 @@ - diff --git a/app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormBundleProductSection.xml b/app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormBundleProductSection.xml index 562d17f2e8739..a924be44b0c0a 100644 --- a/app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormBundleProductSection.xml +++ b/app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormBundleProductSection.xml @@ -9,7 +9,7 @@
- +
diff --git a/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateCreditmemoWithBundleProductTest.xml b/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateCreditmemoWithBundleProductTest.xml index 219a3fcb4a04e..301c79c2ccf19 100644 --- a/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateCreditmemoWithBundleProductTest.xml +++ b/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateCreditmemoWithBundleProductTest.xml @@ -15,7 +15,6 @@ - @@ -72,7 +71,7 @@ - + diff --git a/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithBundleProductTest.xml b/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithBundleProductTest.xml index 5c49d29ddf22e..96b040e59e2a3 100644 --- a/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithBundleProductTest.xml +++ b/app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithBundleProductTest.xml @@ -87,7 +87,7 @@ - + diff --git a/app/code/Magento/Sales/Test/Mftf/Test/StorefrontPrintOrderGuestTest.xml b/app/code/Magento/Sales/Test/Mftf/Test/StorefrontPrintOrderGuestTest.xml index 75208d6745589..f8eef6a6d804a 100644 --- a/app/code/Magento/Sales/Test/Mftf/Test/StorefrontPrintOrderGuestTest.xml +++ b/app/code/Magento/Sales/Test/Mftf/Test/StorefrontPrintOrderGuestTest.xml @@ -291,7 +291,7 @@ - +