Skip to content

Commit 373517f

Browse files
ENGCOM-3674: [Forwardport] Cart-Sales-Rule-with-negated-condition-over-special-price-does-not-work-for-configurable-products. #19343
- Merge Pull Request #19343 from nmalevanec/magento2:2.3-develop-PR-port-16342 - Merged commits: 1. ae5dfae 2. 7125136 3. 6754554
2 parents 3656bb4 + 6754554 commit 373517f

File tree

17 files changed

+247
-128
lines changed

17 files changed

+247
-128
lines changed

app/code/Magento/CatalogWidget/Test/Unit/Model/Rule/Condition/ProductTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
/**
1111
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
12-
* @SuppressWarnings(PHPMD.LongVariable)
1312
*/
1413
class ProductTest extends \PHPUnit\Framework\TestCase
1514
{

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontSortingByPriceForConfigurableWithCatalogRuleAppliedTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
<argument name="sortBy" value="price"/>
151151
<argument name="sort" value="desc"/>
152152
</actionGroup>
153-
<see selector="{{StorefrontCategoryMainSection.lineProductName('1')}}" userInput="$$createSimpleProduct2.name$$" stepKey="seeSimpleProductTwo2"/>
154-
<see selector="{{StorefrontCategoryMainSection.lineProductName('2')}}" userInput="$$createSimpleProduct.name$$" stepKey="seeSimpleProduct2"/>
155-
<see selector="{{StorefrontCategoryMainSection.lineProductName('3')}}" userInput="$$createConfigProduct.name$$" stepKey="seeConfigurableProduct2"/>
153+
<see selector="{{StorefrontCategoryMainSection.lineProductName('1')}}" userInput="$$createConfigProduct.name$$" stepKey="seeConfigurableProduct2"/>
154+
<see selector="{{StorefrontCategoryMainSection.lineProductName('2')}}" userInput="$$createSimpleProduct2.name$$" stepKey="seeSimpleProductTwo2"/>
155+
<see selector="{{StorefrontCategoryMainSection.lineProductName('3')}}" userInput="$$createSimpleProduct.name$$" stepKey="seeSimpleProduct2"/>
156156

157157
<!-- Delete the rule -->
158158
<amOnPage url="{{CatalogRulePage.url}}" stepKey="goToPriceRulePage"/>

app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/SalesRule/Model/Rule/Condition/ProductTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
namespace Magento\ConfigurableProduct\Plugin\SalesRule\Model\Rule\Condition;
7+
namespace Magento\ConfigurableProduct\Test\Unit\Plugin\SalesRule\Model\Rule\Condition;
88

99
use Magento\Backend\Helper\Data;
1010
use Magento\Catalog\Api\ProductRepositoryInterface;
@@ -27,6 +27,7 @@
2727

2828
/**
2929
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
30+
* @SuppressWarnings(PHPMD.LongVariable)
3031
*/
3132
class ProductTest extends \PHPUnit\Framework\TestCase
3233
{

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormPaymentSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminOrderFormPaymentSection">
12-
<element name="header" type="text" selector="#order-methods span.title"/>
12+
<element name="header" type="text" selector="#shipping-methods span.title"/>
1313
<element name="getShippingMethods" type="text" selector="#order-shipping_method a.action-default" timeout="30"/>
1414
<element name="flatRateOption" type="radio" selector="#s_method_flatrate_flatrate" timeout="30"/>
1515
<element name="shippingError" type="text" selector="#order[has_shipping]-error"/>

app/code/Magento/Sales/view/adminhtml/templates/order/create/data.phtml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,15 @@
4747
</div>
4848
</section>
4949

50-
<section id="order-methods" class="admin__page-section order-methods">
51-
<div class="admin__page-section-title">
52-
<span class="title"><?= /* @escapeNotVerified */ __('Payment &amp; Shipping Information') ?></span>
50+
<section id="shipping-methods" class="admin__page-section order-methods">
51+
<div id="order-shipping_method" class="admin__page-section-item order-shipping-method">
52+
<?= $block->getChildHtml('shipping_method') ?>
5353
</div>
54-
<div class="admin__page-section-content">
55-
<div id="order-billing_method" class="admin__page-section-item order-billing-method">
56-
<?= $block->getChildHtml('billing_method') ?>
57-
</div>
58-
<div id="order-shipping_method" class="admin__page-section-item order-shipping-method">
59-
<?= $block->getChildHtml('shipping_method') ?>
60-
</div>
54+
</section>
55+
56+
<section id="payment-methods" class="admin__page-section payment-methods">
57+
<div id="order-billing_method" class="admin__page-section-item order-billing-method">
58+
<?= $block->getChildHtml('billing_method') ?>
6159
</div>
6260
</section>
6361

app/code/Magento/Sales/view/adminhtml/templates/order/create/shipping/method/form.phtml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,8 @@ require(['prototype'], function(){
100100
</div>
101101
<script>
102102
require(["Magento_Sales/order/create/form"], function(){
103-
104103
order.overlay('shipping-method-overlay', <?php if ($block->getQuote()->isVirtual()): ?>false<?php else: ?>true<?php endif; ?>);
105104
order.overlay('address-shipping-overlay', <?php if ($block->getQuote()->isVirtual()): ?>false<?php else: ?>true<?php endif; ?>);
106-
107-
<?php if ($block->getQuote()->isVirtual()): ?>
108-
order.isOnlyVirtualProduct = true;
109-
<?php endif; ?>
105+
order.isOnlyVirtualProduct = <?= /* @noEscape */ $block->getQuote()->isVirtual() ? 'true' : 'false'; ?>;
110106
});
111107
</script>

0 commit comments

Comments
 (0)