Skip to content

Commit

Permalink
magento#20906: Magento backend catalog "Cost" without currency symbol
Browse files Browse the repository at this point in the history
magento#20472: Special Price shown without currency symbol in magento backoffice
  • Loading branch information
jtomka committed Feb 11, 2019
1 parent b2f1417 commit 4308114
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/code/Magento/Catalog/Ui/Component/Listing/Columns/Cost.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Ui\Component\Listing\Columns;

/**
* @api
* @since 100.0.2
*/
class Cost extends Price
{
/**
* Column name
*/
const NAME = 'column.cost';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Ui\Component\Listing\Columns;

/**
* @api
* @since 100.0.2
*/
class SpecialPrice extends Price
{
/**
* Column name
*/
const NAME = 'column.special_price';
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,20 @@
<label translate="true">Websites</label>
</settings>
</column>
<column name="special_price" class="Magento\Catalog\Ui\Component\Listing\Columns\SpecialPrice" sortOrder="110">
<settings>
<addField>true</addField>
<filter>textRange</filter>
<label translate="true">Special Price</label>
</settings>
</column>
<column name="cost" class="Magento\Catalog\Ui\Component\Listing\Columns\Cost" sortOrder="120">
<settings>
<addField>true</addField>
<filter>textRange</filter>
<label translate="true">Cost</label>
</settings>
</column>
<actionsColumn name="actions" class="Magento\Catalog\Ui\Component\Listing\Columns\ProductActions" sortOrder="200">
<settings>
<indexField>entity_id</indexField>
Expand Down

0 comments on commit 4308114

Please sign in to comment.