Skip to content

Commit 34d5a76

Browse files
committed
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-95675
2 parents b35a832 + d976a2b commit 34d5a76

File tree

34 files changed

+461
-27
lines changed

34 files changed

+461
-27
lines changed

app/code/Magento/Authorizenet/Model/Directpost/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function setDataFromOrder(
194194
/**
195195
* Set sign hash into the request object.
196196
*
197-
* All needed fields should be placed in the object fist.
197+
* All needed fields should be placed in the object first.
198198
*
199199
* @return $this
200200
*/

app/code/Magento/Backend/view/adminhtml/templates/pageactions.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
?>
1010
<?php if ($block->getChildHtml()):?>
11-
<div data-mage-init='{"floatingHeader": {}}' class="page-actions" <?= /* @escapeNotVerified */ $block->getUiId('content-header') ?>>
11+
<div data-mage-init='{"floatingHeader": {}}' class="page-actions floating-header" <?= /* @escapeNotVerified */ $block->getUiId('content-header') ?>>
1212
<?= $block->getChildHtml() ?>
1313
</div>
1414
<?php endif; ?>

app/code/Magento/Bundle/view/base/web/js/price-bundle.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,17 @@ define([
374374
function applyTierPrice(oneItemPrice, qty, optionConfig) {
375375
var tiers = optionConfig.tierPrice,
376376
magicKey = _.keys(oneItemPrice)[0],
377+
tiersFirstKey = _.keys(optionConfig)[0],
377378
lowest = false;
378379

380+
if (!tiers) {//tiers is undefined when options has only one option
381+
tiers = optionConfig[tiersFirstKey].tierPrice;
382+
}
383+
384+
tiers.sort(function (a, b) {//sorting based on "price_qty"
385+
return a['price_qty'] - b['price_qty'];
386+
});
387+
379388
_.each(tiers, function (tier, index) {
380389
if (tier['price_qty'] > qty) {
381390
return;

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateVirtualProductWithCustomOptionsSuiteAndImportOptionsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
</assertEquals>
140140

141141
<!--Verify we see customizable options are Required -->
142-
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomInput(virtualProductCustomizableOption1.title)}}" stepKey="verifyFistCustomOptionIsRequired" />
142+
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomInput(virtualProductCustomizableOption1.title)}}" stepKey="verifyFirstCustomOptionIsRequired" />
143143
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomInput(virtualProductCustomizableOption2.title)}}" stepKey="verifySecondCustomOptionIsRequired" />
144144
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomSelect(virtualProductCustomizableOption3.title)}}" stepKey="verifyThirdCustomOptionIsRequired" />
145145
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomSelect(virtualProductCustomizableOption4.title)}}" stepKey="verifyFourthCustomOptionIsRequired" />

app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateSimpleProductWithRegularPriceInStockWithCustomOptionsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</assertEquals>
136136

137137
<!--Verify customer see customizable options are Required -->
138-
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomSelect(simpleProductCustomizableOption.title)}}" stepKey="verifyFistCustomOptionIsRequired"/>
138+
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomSelect(simpleProductCustomizableOption.title)}}" stepKey="verifyFirstCustomOptionIsRequired"/>
139139

140140
<!--Verify customer see customizable option titles and prices -->
141141
<grabAttributeFrom userInput="for" selector="{{StorefrontProductInfoMainSection.customOptionLabel(simpleProductCustomizableOption.title)}}" stepKey="simpleOptionId"/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateVirtualProductWithRegularPriceInStockWithCustomOptionsVisibleInSearchOnlyTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
<actualResult type="variable">productPriceAmount</actualResult>
230230
</assertEquals>
231231
<!--Verify we customer see customizable options are Required -->
232-
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomInput(virtualProductCustomizableOption1.title)}}" stepKey="verifyFistCustomOptionIsRequired" />
232+
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomInput(virtualProductCustomizableOption1.title)}}" stepKey="verifyFirstCustomOptionIsRequired" />
233233
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomInput(virtualProductCustomizableOption2.title)}}" stepKey="verifySecondCustomOptionIsRequired" />
234234
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomSelect(virtualProductCustomizableOption3.title)}}" stepKey="verifyThirdCustomOptionIsRequired" />
235235
<seeElement selector="{{StorefrontProductInfoMainSection.requiredCustomSelect(virtualProductCustomizableOption4.title)}}" stepKey="verifyFourthCustomOptionIsRequired" />

app/code/Magento/Catalog/view/frontend/templates/product/view/attributes.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<tbody>
2424
<?php foreach ($_additional as $_data): ?>
2525
<tr>
26-
<th class="col label" scope="row"><?= $block->escapeHtml(__($_data['label'])) ?></th>
27-
<td class="col data" data-th="<?= $block->escapeHtml(__($_data['label'])) ?>"><?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
26+
<th class="col label" scope="row"><?= $block->escapeHtml($_data['label']) ?></th>
27+
<td class="col data" data-th="<?= $block->escapeHtml($_data['label']) ?>"><?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
2828
</tr>
2929
<?php endforeach; ?>
3030
</tbody>

app/code/Magento/CatalogInventory/Model/Spi/StockRegistryProviderInterface.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,33 @@
77

88
/**
99
* Interface StockRegistryProviderInterface
10+
*
11+
* @deprecated 2.3.0 Replaced with Multi Source Inventory
12+
* @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
13+
* @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
1014
*/
1115
interface StockRegistryProviderInterface
1216
{
1317
/**
18+
* Get stock.
19+
*
1420
* @param int $scopeId
1521
* @return \Magento\CatalogInventory\Api\Data\StockInterface
1622
*/
1723
public function getStock($scopeId);
1824

1925
/**
26+
* Get stock item.
27+
*
2028
* @param int $productId
2129
* @param int $scopeId
2230
* @return \Magento\CatalogInventory\Api\Data\StockItemInterface
2331
*/
2432
public function getStockItem($productId, $scopeId);
2533

2634
/**
35+
* Get stock status.
36+
*
2737
* @param int $productId
2838
* @param int $scopeId
2939
* @return \Magento\CatalogInventory\Api\Data\StockStatusInterface

app/code/Magento/CatalogInventory/Model/Spi/StockStateProviderInterface.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,32 @@
99

1010
/**
1111
* Interface StockStateProviderInterface
12+
*
13+
* @deprecated 2.3.0 Replaced with Multi Source Inventory
14+
* @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
15+
* @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
1216
*/
1317
interface StockStateProviderInterface
1418
{
1519
/**
20+
* Verify stock.
21+
*
1622
* @param StockItemInterface $stockItem
1723
* @return bool
1824
*/
1925
public function verifyStock(StockItemInterface $stockItem);
2026

2127
/**
28+
* Verify notification.
29+
*
2230
* @param StockItemInterface $stockItem
2331
* @return bool
2432
*/
2533
public function verifyNotification(StockItemInterface $stockItem);
2634

2735
/**
36+
* Validate quote qty.
37+
*
2838
* @param StockItemInterface $stockItem
2939
* @param int|float $itemQty
3040
* @param int|float $qtyToCheck
@@ -44,8 +54,9 @@ public function checkQuoteItemQty(StockItemInterface $stockItem, $itemQty, $qtyT
4454
public function checkQty(StockItemInterface $stockItem, $qty);
4555

4656
/**
47-
* Returns suggested qty that satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions
48-
* or original qty if such value does not exist
57+
* Returns suggested qty or original qty if such value does not exist.
58+
*
59+
* Suggested qty satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions.
4960
*
5061
* @param StockItemInterface $stockItem
5162
* @param int|float $qty
@@ -54,6 +65,8 @@ public function checkQty(StockItemInterface $stockItem, $qty);
5465
public function suggestQty(StockItemInterface $stockItem, $qty);
5566

5667
/**
68+
* Check qty increments.
69+
*
5770
* @param StockItemInterface $stockItem
5871
* @param int|float $qty
5972
* @return \Magento\Framework\DataObject

app/code/Magento/Checkout/etc/di.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,4 @@
4949
</argument>
5050
</arguments>
5151
</type>
52-
<type name="Magento\Quote\Model\Quote">
53-
<plugin name="clear_addresses_after_product_delete" type="Magento\Checkout\Plugin\Model\Quote\ResetQuoteAddresses"/>
54-
</type>
5552
</config>

0 commit comments

Comments
 (0)