Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
620d14d
Binding to event collapsible scroll
daniel-mindmagnet Oct 14, 2018
0872577
Binding to event collapsible scroll
daniel-mindmagnet Oct 14, 2018
12b7e08
Set cache id prefix on installation
schmengler Oct 16, 2018
6c1d07e
Changed get product way in blocks with related products
Oct 19, 2018
53b5b49
performance improvements
apasare Oct 23, 2018
308ac7e
MAGETWO-95853: Can't flush Images cache in admin
Oct 24, 2018
a14244e
MAGETWO-95853: Can't flush Images cache in admin
Oct 24, 2018
7e74d4e
MAGETWO-95853: Can't flush Images cache in admin
Oct 24, 2018
ea180c8
MAGETWO-95853: Can't flush Images cache in admin
Oct 24, 2018
1c820be
Merge pull request #1 from magento/2.3-develop
saphaljha Oct 24, 2018
8248518
MAGETWO-95853: Can't flush Images cache in admin
Oct 24, 2018
c05cbea
MAGETWO-95853: Can't flush Images cache in admin
Oct 24, 2018
bf0030f
Update blocks
ronak2ram Oct 25, 2018
4eac0fc
Added warning log
ronak2ram Oct 26, 2018
8ea303b
Merge pull request #2 from magento/2.3-develop
saphaljha Oct 27, 2018
cd24396
#18192, Fixed rating issue website wise
Oct 27, 2018
cbbaf12
updated code as per given instruction
Oct 27, 2018
b0240f1
Clean Up Magento/ImportExport/Controller/Adminhtml/History/Download
denispapec Oct 28, 2018
611969d
code modification
Oct 29, 2018
774164c
core modified as per instructions
Oct 30, 2018
2ea37a8
updated code
Oct 30, 2018
970a746
Update _module.less
Karlasa Oct 30, 2018
fc23d99
Merge pull request #1 from Karlasa/Karlasa-clean-up-multiwishlist
Karlasa Oct 30, 2018
c7aa2f7
Update _module.less
Karlasa Oct 30, 2018
b0fca1d
Update _widgets.less
Karlasa Oct 30, 2018
b198d34
Update _minicart.less
Karlasa Oct 30, 2018
b48b95f
Update _minicart.less
Karlasa Oct 30, 2018
69107f4
Merge pull request #2 from Karlasa/Karlasa-clean-up-multiwishlist
Karlasa Oct 30, 2018
ecaabe4
Update _module.less
Karlasa Oct 30, 2018
a02c49f
Update _module.less
Karlasa Oct 30, 2018
59a88f3
Update _extends.less
Karlasa Oct 30, 2018
8485195
Update _toolbar.less
Karlasa Oct 30, 2018
bbc7517
Code clean up
Karlasa Oct 31, 2018
0d5150f
Code clean up
Karlasa Oct 31, 2018
93af836
code clean up
Karlasa Oct 31, 2018
6e7d5bc
ENGCOM-3342: LESS code clean up #18957
magento-engcom-team Oct 31, 2018
03416c2
ENGCOM-3352: Changed get product way in blocks with related products …
magento-engcom-team Oct 31, 2018
fe82167
magento/magento2#17638: [Forwardport]Bundle Special Prices not correc…
p-bystritsky Nov 1, 2018
f4c9477
ENGCOM-3361: magento/magento2#17638: [Forwardport] Bundle Special Pri…
magento-engcom-team Nov 1, 2018
a5ac2dc
MAGETWO-96024: Invalid element declared for AdminProductGridSection s…
droed89 Nov 1, 2018
71e6f40
Removed method annotation without argument from PHPDoc
VoronoyAlexandr Nov 2, 2018
effd4cd
missing use statement in layout generator
adeptofvoltron Nov 2, 2018
1662590
import class to the use statement
adeptofvoltron Nov 2, 2018
5224958
Add-validation-new-from-date-less-than-new-to-date-in-SCV-product-import
Nov 2, 2018
43eaf70
ENGCOM-3374: missing use statement in layout generator #19009
magento-engcom-team Nov 2, 2018
c333367
#13157 - Last Ordered Items block - bad js code
omiroshnichenko Nov 2, 2018
4a945f2
fixed-18887-notifications-counter
abrarpathan19 Nov 3, 2018
518b4d4
magento-engcom/import-export-improvements#126: update the download co…
dmanners Nov 5, 2018
f0d8c3c
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
droed89 Nov 5, 2018
ca90fef
MAGETWO-96024: Invalid element declared for AdminProductGridSection s…
droed89 Nov 5, 2018
4803537
#13157 - Last Ordered Items block - bad js code
omiroshnichenko Nov 6, 2018
54bf314
ENGCOM-3406: Add-validation-new-from-date-less-than-new-to-date-in-SC…
magento-engcom-team Nov 7, 2018
1f1ec54
Cleanup with static test
VoronoyAlexandr Nov 10, 2018
ae61da5
19082-Fatal-error-Uncaught-Error-Cannot-call-abstract-method-Magento-…
Nov 10, 2018
1bde3b5
ENGCOM-3437: small performance improvement on product listing #18773
magento-engcom-team Nov 12, 2018
29a86a3
magento/magento2#16887: [Forwardport] Fix blocked a frame with origin.
p-bystritsky Nov 12, 2018
87a8a98
ENGCOM-3440: magento/magento2#16887: [Forwardport] Fix blocked a fram…
magento-engcom-team Nov 12, 2018
0e59e8c
code updated as per instructions
Nov 13, 2018
e697698
Fix addExpressionFieldToSelect method generated columns get overwrite…
Aug 24, 2018
3050d23
Fix integration test
Sep 4, 2018
99ea195
Fix variable name in test class too long
Sep 4, 2018
09692bc
ENGCOM-3449: [Forwardport] Fix/add expresion #19180
magento-engcom-team Nov 13, 2018
1050136
Adding integration tests for wrong captcha on login and forgotpasswor…
eduard13 Nov 13, 2018
d22a4b5
ENGCOM-3435: 19082-Fatal-error-Uncaught-Error-Cannot-call-abstract-me…
magento-engcom-team Nov 13, 2018
cbe6a44
Adding integration tests for wrong captcha on customer create page
eduard13 Nov 13, 2018
8f9a1ba
ENGCOM-3451: [Captcha ] Integration tests for wrong captcha #19183
magento-engcom-team Nov 13, 2018
c9b5250
Fixing the customer subscribing from different stores
eduard13 Nov 13, 2018
3b84172
Small refactoring
eduard13 Nov 13, 2018
7c9de8e
#13157 - Last Ordered Items block - bad js code
omiroshnichenko Nov 13, 2018
eaaed4b
Merge branch '2.3-develop' of github.com:magento/magento2 into 13157
omiroshnichenko Nov 13, 2018
0382fb1
ENGCOM-3460: [Newsletter] Fixing the customer subscribing from differ…
magento-engcom-team Nov 13, 2018
a9bdbdb
magento/magento2#13095: [Forwardport] No locale for Swedish (Finland).
p-bystritsky Nov 14, 2018
fbf1e26
ENGCOM-3461: magento/magento2#13095: [Forwardport] No locale for Swed…
magento-engcom-team Nov 14, 2018
ace1005
ENGCOM-3449: Fix/add expresion.
nmalevanec Oct 31, 2018
88a8763
Fix selection of all items which are not visible in ui grid
progreg Nov 14, 2018
ee50fcb
ENGCOM-3449: Fixed static test.
p-bystritsky Nov 14, 2018
dc94194
Merge branch '2.3-develop' into ENGCOM-3449-magento-magento2-19180
p-bystritsky Nov 14, 2018
e90bc28
Fix static analysis errors
progreg Nov 14, 2018
ec040af
Fix dependency between Elasticsearch configuration fields
ajardin Nov 14, 2018
1fa7162
ENGCOM-3465: Fix dependency between Elasticsearch configuration field…
magento-engcom-team Nov 14, 2018
7e07b87
ENGCOM-3329: Clean Up Magento/ImportExport/Controller/Adminhtml/Histo…
magento-engcom-team Nov 15, 2018
5c67f0f
Merge branch '2.3-develop' into ENGCOM-3451-magento-magento2-19183
p-bystritsky Nov 15, 2018
5ef851a
ENGCOM-3435: 19082-Fatal-error-Uncaught-Error-Cannot-call-abstract-me…
nmalevanec Nov 16, 2018
09937b6
Merge branch '2.3-develop' into ENGCOM-3449-magento-magento2-19180
p-bystritsky Nov 16, 2018
469330e
ENGCOM-3417: Removed method annotation without argument from PHPDoc #152
magento-engcom-team Nov 16, 2018
6a68a18
ENGCOM-3291: Set cache id prefix on installation #18641
slavvka Nov 16, 2018
3ccd55e
ENGCOM-3291: Set cache id prefix on installation #18641
slavvka Nov 16, 2018
f14949c
ENGCOM-3291: Set cache id prefix on installation #18641
slavvka Nov 16, 2018
18ad5eb
ENGCOM-3291: Set cache id prefix on installation #18641
magento-engcom-team Nov 16, 2018
571af25
MAGETWO-93425: Permanent Redirect for old URL missing via API or no d…
Nov 16, 2018
ac25e3a
Merge branch '2.3-develop' of github.com:magento/magento2ce into MAGE…
Nov 16, 2018
46d533e
Fixed child items showing on My Account order view
rogyar Sep 2, 2018
e441c9c
ENGCOM-3484: [Forwardport] Fixed child items showing on My Account or…
magento-engcom-team Nov 17, 2018
026fb0a
ENGCOM-3378: #13157 - Last Ordered Items block - bad js code #19039
magento-engcom-team Nov 18, 2018
b9790c6
Fixed code style issues
Nov 18, 2018
6edc017
ENGCOM-3486: Fixed rating issue website wise #18888
magento-engcom-team Nov 18, 2018
62bc03f
Fix the issue: Content overlaps the "close" button #19263
dmytro-ch Nov 18, 2018
7cdb2c8
Merge branch '2.3-develop' of github.com:magento/magento2ce into MAGE…
Nov 19, 2018
26fe40a
ENGCOM-3489: Fix the issue: Content overlaps the 'close' button #19264
magento-engcom-team Nov 19, 2018
740c0c6
MAGETWO-93425: Permanent Redirect for old URL missing via API or no d…
Nov 19, 2018
cb466f1
MAGETWO-93425: Permanent Redirect for old URL missing via API or no d…
Nov 19, 2018
a05602b
Merge branch '2.3-develop' into ENGCOM-3451-magento-magento2-19183
p-bystritsky Nov 19, 2018
61938e9
Merge branch '2.3-develop' into ENGCOM-3449-magento-magento2-19180
p-bystritsky Nov 19, 2018
9e9c74c
Update _notifications.less
VladimirZaets Nov 19, 2018
85f04aa
ENGCOM-3379: Magento backend Notifications counter round icon small …
magento-engcom-team Nov 19, 2018
52fabb9
MAGETWO-93425: Permanent Redirect for old URL missing via API or no d…
Nov 19, 2018
70b3f59
ENGCOM-3463: [UI] Fix selection of all items which are not visible in…
magento-engcom-team Nov 19, 2018
31030b7
ENGCOM-3489: Fix the issue: Content overlaps the "close" button #19264
VladimirZaets Nov 19, 2018
8863613
ENGCOM-3484: [Forwardport] Fixed child items showing on My Account or…
VladimirZaets Nov 19, 2018
0ea6794
ENGCOM-3461: magento/magento2#13095: [Forwardport] No locale for Swed…
VladimirZaets Nov 19, 2018
dc79f04
ENGCOM-3440: magento/magento2#16887: [Forwardport] Fix blocked a fram…
VladimirZaets Nov 19, 2018
b8d84d3
ENGCOM-3437: small performance improvement on product listing #18773
VladimirZaets Nov 19, 2018
e575a1f
ENGCOM-3435: 19082-Fatal-error-Uncaught-Error-Cannot-call-abstract-me…
VladimirZaets Nov 19, 2018
6832736
ENGCOM-3374: missing use statement in layout generator #19009
VladimirZaets Nov 19, 2018
7abf025
ENGCOM-3361: magento/magento2#17638: [Forwardport] Bundle Special Pri…
VladimirZaets Nov 19, 2018
d4a2a6d
ENGCOM-3342: LESS code clean up #18957
VladimirZaets Nov 19, 2018
4a8d578
ENGCOM-3463: [UI] Fix selection of all items which are not visible in…
VladimirZaets Nov 19, 2018
5016ad6
Remove checkout edit link extra space
VincentMarmiesse Nov 20, 2018
0a2a61a
Fix static tests
nmalevanec Nov 20, 2018
95c8b2a
ENGCOM-3501: Remove cart edit link extra space #19277
magento-engcom-team Nov 20, 2018
aa8e5d5
Fix static tests
nmalevanec Nov 20, 2018
2aa7ad2
Fix static tests
nmalevanec Nov 20, 2018
0e6409d
Fix static tests
nmalevanec Nov 20, 2018
4950da4
Merge branch '2.3-develop' into 2.3-develop-prs
nmalevanec Nov 20, 2018
fd5c2ca
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
droed89 Nov 21, 2018
a35c21f
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
droed89 Nov 21, 2018
969f2c2
Fix the issue with repetitive "tbody" tag for order items table
dmytro-ch Nov 21, 2018
07510d8
[EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Nov 21, 2018
dd91e57
ENGCOM-3510: Binding to event collapsible scroll #18609
magento-engcom-team Nov 21, 2018
a3261f8
ENGCOM-3511: Fix styling issue for order items table #19299
magento-engcom-team Nov 21, 2018
ba006c0
Removed $this->setShowGlobalIcon();
sreichel Nov 21, 2018
d28709f
ENGCOM-3512: Removed $this->setShowGlobalIcon(); #19309
magento-engcom-team Nov 21, 2018
bf346d1
Changed schema input and output, fixed bug with uniq type
VoronoyAlexandr Nov 21, 2018
38c1c33
fix: remove old code in tabs, always set tabindex to 0 when tabs are …
Nov 22, 2018
b92df0c
ENGCOM-3520: fix: remove old code in tabs, always set tabindex to 0 w…
magento-engcom-team Nov 22, 2018
365e400
Merge pull request #3475 from magento-engcom/2.3-develop-prs
VladimirZaets Nov 22, 2018
15acd09
ENGCOM-3520: fix: remove old code in tabs, always set tabindex to 0 w…
Nov 22, 2018
df8cc98
ENGCOM-3512: Removed $this->setShowGlobalIcon(); #19309
Nov 22, 2018
82c2e44
ENGCOM-3511: Fix styling issue for order items table #19299
Nov 22, 2018
33a48a6
ENGCOM-3510: Binding to event collapsible scroll #18609
Nov 22, 2018
4c35bc2
ENGCOM-3501: Remove cart edit link extra space #19277
Nov 22, 2018
b1822ce
ENGCOM-3486: Fixed rating issue website wise #18888
Nov 22, 2018
6db210f
ENGCOM-3465: Fix dependency between Elasticsearch configuration field…
Nov 22, 2018
717f615
ENGCOM-3460: [Newsletter] Fixing the customer subscribing from differ…
Nov 22, 2018
3bbe7f9
ENGCOM-3451: [Captcha ] Integration tests for wrong captcha #19183
Nov 22, 2018
49c93c1
ENGCOM-3449: [Forwardport] Fix/add expresion #19180
Nov 22, 2018
74549e7
ENGCOM-3417: Removed method annotation without argument from PHPDoc #152
Nov 22, 2018
3a643ce
ENGCOM-3406: Add-validation-new-from-date-less-than-new-to-date-in-SC…
Nov 22, 2018
9e783b3
ENGCOM-3379: Magento backend Notifications counter round icon small …
Nov 22, 2018
e31635a
ENGCOM-3378: #13157 - Last Ordered Items block - bad js code #19039
Nov 22, 2018
342b571
ENGCOM-3352: Changed get product way in blocks with related products …
Nov 22, 2018
1c253b8
ENGCOM-3329: Clean Up Magento/ImportExport/Controller/Adminhtml/Histo…
Nov 22, 2018
10dacaa
ENGCOM-3291: Set cache id prefix on installation #18641
Nov 22, 2018
dd4077c
Merge branch '2.3-develop' of github.com:magento/magento2ce into MAGE…
Nov 22, 2018
60f91ee
Merge remote-tracking branch 'origin/2.3-develop' into Fixed-218
Nov 22, 2018
5c6f20f
Merge branch 'Fixed-218' of github.com:ronak2ram/graphql-ce into Fixe…
Nov 22, 2018
922d398
GraphQL-176: Show only active CMS Blocks
Nov 22, 2018
6d984eb
GraphQL-176: Show only active CMS Blocks
Nov 22, 2018
6e32307
GraphQL-260: Fixed bug with uniq type
Nov 22, 2018
d3a22e9
GraphQL-176: Show only active CMS Blocks
Nov 22, 2018
772d4da
GraphQL-176: Show only active CMS Blocks
Nov 22, 2018
f1adf63
ENGCOM-3536: Fixed #176 - Show only active CMS Blocks #221
magento-engcom-team Nov 22, 2018
b0fa475
ENGCOM-3537: [260] Fixed bug with uniq type #262
magento-engcom-team Nov 22, 2018
4536863
ENGCOM-3537: [260] Fixed bug with uniq type #262
Nov 22, 2018
afd2dbe
ENGCOM-3536: Fixed #176 - Show only active CMS Blocks #221
Nov 22, 2018
492e264
magento-engcom/magento2ce#2354: Fixed Code Style Issues
Nov 22, 2018
909591d
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
Nov 22, 2018
4439971
[EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Nov 22, 2018
40b423d
Merge branch 'MAGETWO-95853' of github.com:magento-tango/magento2ce i…
Nov 23, 2018
9eb4b1f
Merge branch 'MAGETWO-93425' of github.com:magento-tango/magento2ce i…
Nov 23, 2018
da89b6f
Merge branch 'MAGETWO-96024' of github.com:magento-tango/magento2ce i…
Nov 23, 2018
48f8e0a
Merge pull request #3478 from magento-engcom/graphql-develop-prs
Nov 23, 2018
a157fd8
Merge branch '2.3-develop' of github.com:magento/magento2ce into PR-2311
Nov 23, 2018
89bd63a
MAGETWO-96024: PR stabilization
droed89 Nov 23, 2018
7755eef
Merge pull request #3480 from magento-tango/PR-2311
dhorytskyi Nov 23, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/code/Magento/Backend/Block/Widget/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected function _construct()
parent::_construct();

$this->setDestElementId('edit_form');
$this->setShowGlobalIcon(false);
}

/**
Expand Down
6 changes: 5 additions & 1 deletion app/code/Magento/Backend/Block/Widget/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @api
* @deprecated 100.2.0 in favour of UI component implementation
* @method string getRowClickCallback() getRowClickCallback()
* @method \Magento\Backend\Block\Widget\Grid setRowClickCallback() setRowClickCallback(string $value)
* @method \Magento\Backend\Block\Widget\Grid setRowClickCallback(string $value)
* @SuppressWarnings(PHPMD.TooManyFields)
* @since 100.0.2
*/
Expand Down Expand Up @@ -150,7 +150,10 @@ public function __construct(
}

/**
* Internal constructor, that is called from real constructor
*
* @return void
*
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
protected function _construct()
Expand Down Expand Up @@ -709,6 +712,7 @@ public function getGridUrl()

/**
* Grid url getter
*
* Version of getGridUrl() but with parameters
*
* @param array $params url parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ public function __construct(
parent::__construct($context, $registry, $formFactory, $data);
}

/**
* Construct block
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setShowGlobalIcon(true);
}

/**
* Prepares form
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*/
namespace Magento\Catalog\Block\Product\ProductList;

/**
* Crosssell block for product
*/
class Crosssell extends \Magento\Catalog\Block\Product\AbstractProduct
{
/**
Expand All @@ -25,7 +28,7 @@ class Crosssell extends \Magento\Catalog\Block\Product\AbstractProduct
*/
protected function _prepareData()
{
$product = $this->_coreRegistry->registry('product');
$product = $this->getProduct();
/* @var $product \Magento\Catalog\Model\Product */

$this->_itemCollection = $product->getCrossSellProductCollection()->addAttributeToSelect(
Expand All @@ -43,6 +46,7 @@ protected function _prepareData()

/**
* Before rendering html process
*
* Prepare items collection
*
* @return \Magento\Catalog\Block\Product\ProductList\Crosssell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ public function __construct(
}

/**
* Prepare data
*
* @return $this
*/
protected function _prepareData()
{
$product = $this->_coreRegistry->registry('product');
$product = $this->getProduct();
/* @var $product \Magento\Catalog\Model\Product */

$this->_itemCollection = $product->getRelatedProductCollection()->addAttributeToSelect(
Expand All @@ -103,6 +105,8 @@ protected function _prepareData()
}

/**
* Before to html handler
*
* @return $this
*/
protected function _beforeToHtml()
Expand All @@ -112,6 +116,8 @@ protected function _beforeToHtml()
}

/**
* Get collection items
*
* @return Collection
*/
public function getItems()
Expand Down
23 changes: 22 additions & 1 deletion app/code/Magento/Catalog/Block/Product/ProductList/Upsell.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ public function __construct(
}

/**
* Prepare data
*
* @return $this
*/
protected function _prepareData()
{
$product = $this->_coreRegistry->registry('product');
$product = $this->getProduct();
/* @var $product \Magento\Catalog\Model\Product */
$this->_itemCollection = $product->getUpSellProductCollection()->setPositionOrder()->addStoreFilter();
if ($this->moduleManager->isEnabled('Magento_Checkout')) {
Expand All @@ -121,6 +123,8 @@ protected function _prepareData()
}

/**
* Before to html handler
*
* @return $this
*/
protected function _beforeToHtml()
Expand All @@ -130,6 +134,8 @@ protected function _beforeToHtml()
}

/**
* Get items collection
*
* @return Collection
*/
public function getItemCollection()
Expand All @@ -145,6 +151,8 @@ public function getItemCollection()
}

/**
* Get collection items
*
* @return \Magento\Framework\DataObject[]
*/
public function getItems()
Expand All @@ -156,6 +164,8 @@ public function getItems()
}

/**
* Get row count
*
* @return float
*/
public function getRowCount()
Expand All @@ -164,6 +174,8 @@ public function getRowCount()
}

/**
* Set column count
*
* @param string $columns
* @return $this
*/
Expand All @@ -176,6 +188,8 @@ public function setColumnCount($columns)
}

/**
* Get column count
*
* @return int
*/
public function getColumnCount()
Expand All @@ -184,6 +198,8 @@ public function getColumnCount()
}

/**
* Reset items iterator
*
* @return void
*/
public function resetItemsIterator()
Expand All @@ -193,6 +209,8 @@ public function resetItemsIterator()
}

/**
* Get iterable item
*
* @return mixed
*/
public function getIterableItem()
Expand All @@ -204,6 +222,7 @@ public function getIterableItem()

/**
* Set how many items we need to show in upsell block
*
* Notice: this parameter will be also applied
*
* @param string $type
Expand All @@ -219,6 +238,8 @@ public function setItemLimit($type, $limit)
}

/**
* Get item limit
*
* @param string $type
* @return array|int
*/
Expand Down
14 changes: 13 additions & 1 deletion app/code/Magento/Catalog/Controller/Product/Compare.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace Magento\Catalog\Controller\Product;

use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\Data\Form\FormKey\Validator;
use Magento\Framework\View\Result\PageFactory;

Expand All @@ -15,7 +16,7 @@
* @SuppressWarnings(PHPMD.LongVariable)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class Compare extends \Magento\Framework\App\Action\Action
abstract class Compare extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface
{
/**
* Customer id
Expand Down Expand Up @@ -139,4 +140,15 @@ public function setCustomerId($customerId)
$this->_customerId = $customerId;
return $this;
}

/**
* @inheritdoc
*/
public function execute()
{
$resultRedirect = $this->resultRedirectFactory->create();
$resultRedirect->setPath('catalog/product_compare');

return $resultRedirect;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,28 @@
<conditionalClick selector="{{AdminProductGridTableHeaderSection.id('descend')}}" dependentSelector="{{AdminProductGridTableHeaderSection.id('ascend')}}" visible="false" stepKey="sortById"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
</actionGroup>

<!--Disabled a product by filtering grid and using change status action-->
<actionGroup name="ChangeStatusProductUsingProductGridActionGroup">
<arguments>
<argument name="product"/>
<argument name="status" defaultValue="Enable" type="string" />
</arguments>
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPage"/>
<waitForPageLoad time="60" stepKey="waitForPageLoadInitial"/>
<conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial"/>
<click selector="{{AdminProductGridFilterSection.filters}}" stepKey="openProductFilters"/>
<fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillProductSkuFilter"/>
<click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/>
<see selector="{{AdminProductGridSection.productGridCell('1', 'SKU')}}" userInput="{{product.sku}}" stepKey="seeProductSkuInGrid"/>
<click selector="{{AdminProductGridSection.multicheckDropdown}}" stepKey="openMulticheckDropdown"/>
<click selector="{{AdminProductGridSection.multicheckOption('Select All')}}" stepKey="selectAllProductInFilteredGrid"/>

<click selector="{{AdminProductGridSection.bulkActionDropdown}}" stepKey="clickActionDropdown"/>
<click selector="{{AdminProductGridSection.bulkActionOption('Change status')}}" stepKey="clickChangeStatusAction"/>
<click selector="{{AdminProductGridSection.changeStatus('status')}}" stepKey="clickChangeStatusDisabled" parameterized="true"/>
<see selector="{{AdminMessagesSection.success}}" userInput="A total of 1 record(s) have been updated." stepKey="seeSuccessMessage"/>
<waitForLoadingMaskToDisappear stepKey="waitForMaskToDisappear"/>
<conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial2"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
<element name="productGridNameProduct" type="input" selector="//tbody//tr//td//div[contains(., '{{var1}}')]" parameterized="true" timeout="30"/>
<element name="productGridContentsOnRow" type="checkbox" selector="//*[@id='container']//tr[{{row}}]/td" parameterized="true"/>
<element name="selectRowBasedOnName" type="input" selector="//td/div[text()='{{var1}}']" parameterized="true"/>
<element name="changeStatus" type="button" selector="//div[contains(@class,'admin__data-grid-header-row') and contains(@class, 'row')]//div[contains(@class, 'action-menu-item')]//ul/li/span[text() = '{{status}}']" parameterized="true"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

<!--Step5. Open *Advanced Inventory* pop-up. Set *Enable Qty Increments* to *Yes*. Fill *.5* in *Qty Increments*-->
<click selector="{{AdminProductFormSection.advancedInventoryLink}}" stepKey="clickOnAdvancedInventoryLink2"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<scrollTo selector="{{AdminProductFormAdvancedInventorySection.enableQtyIncrements}}" stepKey="scrollToEnableQtyIncrements"/>
<click selector="{{AdminProductFormAdvancedInventorySection.enableQtyIncrementsUseConfigSettings}}" stepKey="clickOnEnableQtyIncrementsUseConfigSettingsCheckbox"/>
<click selector="{{AdminProductFormAdvancedInventorySection.enableQtyIncrements}}" stepKey="clickOnEnableQtyIncrements"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Magento\Catalog\Model\Attribute\ScopeOverriddenValue;
use Magento\Catalog\Model\Locator\LocatorInterface;
use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\Product\Type as ProductType;
use Magento\Catalog\Model\ResourceModel\Eav\Attribute as EavAttribute;
use Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory as EavAttributeFactory;
use Magento\Catalog\Ui\DataProvider\CatalogEavValidationRules;
Expand Down Expand Up @@ -419,7 +420,7 @@ public function modifyData(array $data)

foreach ($attributes as $attribute) {
if (null !== ($attributeValue = $this->setupAttributeData($attribute))) {
if ($attribute->getFrontendInput() === 'price' && is_scalar($attributeValue)) {
if ($this->isPriceAttribute($attribute, $attributeValue)) {
$attributeValue = $this->formatPrice($attributeValue);
}
$data[$productId][self::DATA_SOURCE_DEFAULT][$attribute->getAttributeCode()] = $attributeValue;
Expand All @@ -430,6 +431,32 @@ public function modifyData(array $data)
return $data;
}

/**
* Obtain if given attribute is a price
*
* @param \Magento\Catalog\Api\Data\ProductAttributeInterface $attribute
* @param string|integer $attributeValue
* @return bool
*/
private function isPriceAttribute(ProductAttributeInterface $attribute, $attributeValue)
{
return $attribute->getFrontendInput() === 'price'
&& is_scalar($attributeValue)
&& !$this->isBundleSpecialPrice($attribute);
}

/**
* Obtain if current product is bundle and given attribute is special_price
*
* @param \Magento\Catalog\Api\Data\ProductAttributeInterface $attribute
* @return bool
*/
private function isBundleSpecialPrice(ProductAttributeInterface $attribute)
{
return $this->locator->getProduct()->getTypeId() === ProductType::TYPE_BUNDLE
&& $attribute->getAttributeCode() === ProductAttributeInterface::CODE_SPECIAL_PRICE;
}

/**
* Resolve data persistence
*
Expand Down
Loading