-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from magento-troll/MAGETWO-49205
[Troll] Add scope selector on Category Page
- Loading branch information
Showing
16 changed files
with
255 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...nhtml/Magento/backend/Magento_Staging/web/css/source/module/_scheduled-changes-modal.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// /** | ||
// * Copyright © 2015 Magento. All rights reserved. | ||
// * See COPYING.txt for license details. | ||
// */ | ||
|
||
// | ||
// Scheduled changes modal | ||
// _____________________________________________ | ||
|
||
// | ||
// Slide modal panel with store switcher | ||
// --------------------------------------------- | ||
|
||
.scheduled-changes-modal-slide { | ||
.page-actions { | ||
.lib-vendor-prefix-display(flex); | ||
width: 100%; | ||
|
||
.store-switcher { | ||
.lib-vendor-prefix-order(-1); | ||
-ms-flex: 1; | ||
-webkit-flex: 1; | ||
flex: 1; | ||
|
||
.admin__action-dropdown { | ||
font-size: @action-dropdown__font-size; | ||
letter-spacing: -.025em; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...sts/integration/testsuite/Magento/Catalog/_files/products_with_unique_input_attribute.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
require __DIR__ . '/unique_input_attribute.php'; | ||
|
||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); | ||
|
||
/** @var $product \Magento\Catalog\Model\Product */ | ||
$product = $objectManager->create('Magento\Catalog\Model\Product'); | ||
$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE) | ||
->setAttributeSetId(4) | ||
->setName('Simple Product with unique input attribute') | ||
->setSku('simple product with unique input attribute') | ||
->setPrice(10) | ||
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH) | ||
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED) | ||
->setWebsiteIds([1]) | ||
->setStockData(['qty' => 100, 'is_in_stock' => 1]) | ||
->setData($attribute->getAttributeCode(), 'unique value') | ||
->save(); |
42 changes: 42 additions & 0 deletions
42
dev/tests/integration/testsuite/Magento/Catalog/_files/unique_input_attribute.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* "Input" fixture of product EAV attribute. | ||
* | ||
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
/** @var \Magento\Eav\Model\Entity\Type $entityType */ | ||
$entityType = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\Eav\Model\Entity\Type'); | ||
$entityType->loadByCode('catalog_product'); | ||
$defaultSetId = $entityType->getDefaultAttributeSetId(); | ||
/** @var \Magento\Eav\Model\Entity\Attribute\Set $defaultSet */ | ||
$defaultSet = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( | ||
'Magento\Eav\Model\Entity\Attribute\Set' | ||
); | ||
$defaultSet->load($defaultSetId); | ||
$defaultGroupId = $defaultSet->getDefaultGroupId(); | ||
|
||
/** @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */ | ||
$attribute = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( | ||
'Magento\Catalog\Model\ResourceModel\Eav\Attribute' | ||
); | ||
$attribute->setAttributeCode( | ||
'unique_input_attribute' | ||
)->setEntityTypeId( | ||
$entityType->getEntityTypeId() | ||
)->setAttributeGroupId( | ||
$defaultGroupId | ||
)->setAttributeSetId( | ||
$defaultSetId | ||
)->setFrontendInput( | ||
'text' | ||
)->setFrontendLabel( | ||
'Unique Input Attribute' | ||
)->setBackendType( | ||
'varchar' | ||
)->setIsUserDefined( | ||
1 | ||
)->setIsUnique( | ||
1 | ||
)->save(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.