Skip to content

Commit

Permalink
Merge remote-tracking branch 'mainline/develop' into MAGETWO-58924-ju…
Browse files Browse the repository at this point in the history
…st-UrlRewriteMap-develop-final
  • Loading branch information
cpartica committed Jan 13, 2017
2 parents ef10316 + 18a58db commit e0bb933
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 15 deletions.
12 changes: 5 additions & 7 deletions app/code/Magento/Customer/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,15 @@ T: {{var telephone}}
{{depend vat_id}}<br/>VAT: {{var vat_id}}{{/depend}}]]></html>
<pdf><![CDATA[{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}|
{{depend company}}{{var company}}|{{/depend}}
{{if street1}}{{var street1}}
{{/if}}
{{if street1}}{{var street1}}|{{/if}}
{{depend street2}}{{var street2}}|{{/depend}}
{{depend street3}}{{var street3}}|{{/depend}}
{{depend street4}}{{var street4}}|{{/depend}}
{{if city}}{{var city}},|{{/if}}
{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}|
{{if city}}{{var city}}, {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}|
{{var country}}|
{{depend telephone}}T: {{var telephone}}{{/depend}}|
{{depend fax}}<br/>F: {{var fax}}{{/depend}}|
{{depend vat_id}}<br/>VAT: {{var vat_id}}{{/depend}}|]]></pdf>
{{depend telephone}}T: {{var telephone}}|{{/depend}}
{{depend fax}}F: {{var fax}}|{{/depend}}|
{{depend vat_id}}VAT: {{var vat_id}}{{/depend}}|]]></pdf>
</address_templates>
</customer>
</default>
Expand Down
5 changes: 4 additions & 1 deletion app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,10 @@ protected function insertOrder(&$page, $obj, $putOrderId = true)

if ($putOrderId) {
$page->drawText(__('Order # ') . $order->getRealOrderId(), 35, $top -= 30, 'UTF-8');
$top +=15;
}

$top -=30;
$page->drawText(
__('Order Date: ') .
$this->_localeDate->formatDate(
Expand All @@ -408,7 +411,7 @@ protected function insertOrder(&$page, $obj, $putOrderId = true)
false
),
35,
$top -= 15,
$top,
'UTF-8'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,15 +492,23 @@
.block-addresses-list {
.items.addresses {
&:extend(.abs-add-clearfix-desktop all);
font-size: 0;

> .item {
&:extend(.abs-blocks-2columns all);
display: inline-block;
font-size: @font-size__base;
margin-bottom: @indent__base;
vertical-align: top;
width: 48.8%;

&:nth-last-child(1),
&:nth-last-child(2) {
margin-bottom: 0;
}

&:nth-child(even) {
margin-left: 2.4%;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@

.box-billing-address,
.box-shipping-address,
.box-address-billing,
.box-address-shipping,
.box-information,
.box-newsletter {
.box-content {
Expand Down Expand Up @@ -437,15 +439,23 @@
.block-addresses-list {
.items.addresses {
&:extend(.abs-add-clearfix-desktop all);
font-size: 0;

> .item {
&:extend(.abs-blocks-2columns all);
display: inline-block;
font-size: @font-size__base;
margin-bottom: @indent__base;
vertical-align: top;
width: 48%;

&:nth-last-child(1),
&:nth-last-child(2) {
margin-bottom: 0;
}

&:nth-child(even) {
margin-left: 4%;
}
}
}

Expand Down Expand Up @@ -479,6 +489,8 @@

.box-billing-address,
.box-shipping-address,
.box-address-billing,
.box-address-shipping,
.box-information {
.box-content {
&:extend(.abs-account-block-font-size all);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Catalog\Test\TestCase\Product\AddToCartCrossSellTest" summary="Promote Products as Cross-Sells" ticketId="MAGETWO-12390">
<variation name="AddToCartCrossSellTestVariation1" method="test">
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test</data>
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test, stable:no</data>
<data name="products" xsi:type="string">simple1::catalogProductSimple::product_with_category,simple2::catalogProductSimple::product_with_category,config1::configurableProduct::two_options_with_fixed_price</data>
<data name="promotedProducts" xsi:type="string">simple1:simple2,config1;config1:simple2</data>
<data name="navigateProductsOrder" xsi:type="string">simple1,config1,simple2</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Catalog\Test\TestCase\Product\NavigateRelatedProductsTest" summary="Promote Products as Related" ticketId="MAGETWO-12392">
<variation name="NavigateRelatedProductsTestVariation1" method="test">
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test</data>
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test, stable:no</data>
<data name="products" xsi:type="string">simple1::catalogProductSimple::product_with_category,simple2::catalogProductSimple::product_with_category,config1::configurableProduct::two_options_with_fixed_price</data>
<data name="selectable" xsi:type="string">simple1:yes,simple2:yes,config1:no</data>
<data name="promotedProducts" xsi:type="string">simple1:simple2,config1;config1:simple2</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Catalog\Test\TestCase\Product\NavigateUpSellProductsTest" summary="Promote Products as Up-Sells" ticketId="MAGETWO-12391">
<variation name="NavigateUpSellProductsTestVariation1" method="test">
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test</data>
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test, stable:no</data>
<data name="products" xsi:type="string">simple1::catalogProductSimple::product_with_category,simple2::catalogProductSimple::product_with_category,config1::configurableProduct::two_options_with_fixed_price</data>
<data name="promotedProducts" xsi:type="string">simple1:simple2,config1;config1:simple2</data>
<data name="navigateProductsOrder" xsi:type="string">simple1,config1,simple2</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function renderArrayDataProvider()
[
$addressAttributes,
AttributeDataFactory::OUTPUT_FORMAT_PDF,
"John Smith|\n\nGreen str, 67\n\n\n\n\nCityM,|\nAlabama, 75477|\nUnited States|\nT: 3468676|\n|\n|"
"John Smith|\n\nGreen str, 67|\n\n\n\nCityM, Alabama, 75477|\nUnited States|\nT: 3468676|\n|\n|"
],
[
$addressAttributes,
Expand Down Expand Up @@ -112,7 +112,7 @@ public function renderDataProvider()
[
$address,
AttributeDataFactory::OUTPUT_FORMAT_PDF,
"John Smith|\n\nGreen str, 67\n\n\n\n\nCityM,|\nAlabama, 75477|
"John Smith|\n\nGreen str, 67|\n\n\n\nCityM, Alabama, 75477|
United States|\nT: 3468676|\n|\n|"
],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function testFormPostInitNew($productData, $categoryData, $action, $reque
*/
public function testGetEntityStores($productData, $categoryData, $expectedStores)
{
$this->markTestSkipped('Skipped until MAGETWO-63018');
$args = [];
if ($productData) {
$args['product'] = $this->objectManager->create(
Expand All @@ -121,6 +122,7 @@ public function testGetEntityStores($productData, $categoryData, $expectedStores
*/
public function testGetEntityStoresProductStoresException()
{
$this->markTestSkipped('Skipped until MAGETWO-63018');
$args = [
'product' => $this->objectManager->create(
\Magento\Catalog\Model\Product::class,
Expand Down

0 comments on commit e0bb933

Please sign in to comment.