Skip to content

Commit ae45f9b

Browse files
Merge branch 'develop' of https://github.com/magento/magento2ce into MAGETWO-69411
2 parents 9a019a3 + 1432268 commit ae45f9b

File tree

9 files changed

+53
-7
lines changed

9 files changed

+53
-7
lines changed

app/code/Magento/Catalog/view/adminhtml/web/catalog/product/composite/configure.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @api
88
*/
99
define([
10+
'jquery',
1011
'Magento_Ui/js/lib/view/utils/async',
1112
'jquery/ui',
1213
'mage/translate',
@@ -838,4 +839,6 @@ define([
838839
};
839840

840841
productConfigure = new ProductConfigure();
842+
jQuery(document).trigger('productConfigure:inited');
843+
jQuery(document).data('productConfigureInited', true);
841844
});

app/code/Magento/Checkout/view/frontend/web/template/cart/shipping-rates.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<fieldset class="fieldset rate" data-bind="visible: (shippingRates().length > 0)">
1212
<dl class="items methods" data-bind="foreach: shippingRateGroups">
1313
<dt class="item-title"><span data-bind="text: $data"></span></dt>
14-
<dd class="item-options" data-bind="foreach: $parent.getRatesForGroup($data)">
14+
<dd class="item-options" data-bind="foreach: { data:$parent.getRatesForGroup($data), as: 'method' }">
1515
<div data-bind="css: {'field choice item': available, 'message error': !available} ">
1616
<!-- ko ifnot: (available) -->
1717
<div data-bind="text: error_message"></div>
@@ -29,7 +29,7 @@
2929
"/>
3030
<label class="label" data-bind="attr: {for: 's_method_' + method_code}">
3131
<!-- ko text: $data.method_title --><!-- /ko -->
32-
<!-- ko text: $parents[1].getFormattedPrice(amount) --><!-- /ko -->
32+
<each args="element.getRegion('price')" render="" />
3333
</label>
3434
<!-- /ko -->
3535
</div>

app/code/Magento/Quote/Setup/UpgradeSchema.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
5555
$setup->getFkName('quote_item', 'product_id', 'catalog_product_entity', 'entity_id')
5656
);
5757
}
58+
if (version_compare($context->getVersion(), '2.0.5', '<')) {
59+
$connection = $setup->getConnection();
60+
$connection->modifyColumn(
61+
$setup->getTable('quote_address'),
62+
'shipping_method',
63+
[
64+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
65+
'length' => 120
66+
]
67+
);
68+
}
5869
$setup->endSetup();
5970
}
6071
}

app/code/Magento/Quote/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Quote" setup_version="2.0.4">
9+
<module name="Magento_Quote" setup_version="2.0.5">
1010
</module>
1111
</config>

app/code/Magento/Sales/Setup/UpgradeSchema.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
9595
]
9696
);
9797
}
98+
if (version_compare($context->getVersion(), '2.0.7', '<')) {
99+
$connection = $installer->getConnection(self::$connectionName);
100+
$connection->modifyColumn(
101+
$installer->getTable('sales_order', self::$connectionName),
102+
'shipping_method',
103+
[
104+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
105+
'length' => 120
106+
]
107+
);
108+
}
98109
}
99110

100111
/**

app/code/Magento/Sales/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Sales" setup_version="2.0.6">
9+
<module name="Magento_Sales" setup_version="2.0.7">
1010
<sequence>
1111
<module name="Magento_Rule"/>
1212
<module name="Magento_Catalog"/>

app/code/Magento/Store/Model/Address/Renderer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ public function format(DataObject $storeInfo, $type = 'html')
5050
{
5151
$this->eventManager->dispatch('store_address_format', ['type' => $type, 'store_info' => $storeInfo]);
5252
$address = $this->filterManager->template(
53-
"{{var name}}\n{{var street_line1}}\n{{depend street_line2}}{{var street_line2}}\n{{/depend}}"
54-
. "{{var city}}, {{var region}} {{var postcode}},\n{{var country}}",
53+
"{{var name}}\n{{var street_line1}}\n{{depend street_line2}}{{var street_line2}}\n{{/depend}}" .
54+
"{{depend city}}{{var city}},{{/depend}} {{var region}} {{depend postcode}}{{var postcode}},{{/depend}}\n" .
55+
"{{var country}}",
5556
['variables' => $storeInfo->getData()]
5657
);
5758

app/code/Magento/Tax/view/frontend/layout/checkout_cart_index.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
10+
<referenceBlock name="checkout.cart.shipping">
11+
<arguments>
12+
<argument name="jsLayout" xsi:type="array">
13+
<item name="components" xsi:type="array">
14+
<item name="block-summary" xsi:type="array">
15+
<item name="children" xsi:type="array">
16+
<item name="block-rates" xsi:type="array">
17+
<item name="children" xsi:type="array">
18+
<item name="price" xsi:type="array">
19+
<item name="component" xsi:type="string">Magento_Tax/js/view/checkout/shipping_method/price</item>
20+
<item name="displayArea" xsi:type="string">price</item>
21+
</item>
22+
</item>
23+
</item>
24+
</item>
25+
</item>
26+
</item>
27+
</argument>
28+
</arguments>
29+
</referenceBlock>
1030
<referenceBlock name="checkout.cart.totals">
1131
<arguments>
1232
<argument name="jsLayout" xsi:type="array">

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Shipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Shipping extends Form
7070
*
7171
* @var string
7272
*/
73-
protected $commonShippingPriceSelector = '.shipping .price';
73+
protected $commonShippingPriceSelector = '.totals.shipping .price';
7474

7575
/**
7676
* Open estimate shipping and tax form.

0 commit comments

Comments
 (0)