Skip to content

Commit b850bbf

Browse files
author
Robert He
committed
Merge branch 'FearlessKiwis-MAGETWO-51259-fixed_cart_discount' of https://github.corp.magento.com/magento-fearless-kiwis/magento2ce into develop
2 parents 4b500a7 + b05fb86 commit b850bbf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/code/Magento/SalesRule/Model/Rule/Metadata/ValueProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getMetadataValues(\Magento\SalesRule\Model\Rule $rule)
7878
$applyOptions = [
7979
['label' => __('Percent of product price discount'), 'value' => Rule::BY_PERCENT_ACTION],
8080
['label' => __('Fixed amount discount'), 'value' => Rule::BY_FIXED_ACTION],
81-
['label' => __('Fixed amount discount for whole cart'), 'value' => Rule::BY_PERCENT_ACTION],
81+
['label' => __('Fixed amount discount for whole cart'), 'value' => Rule::CART_FIXED_ACTION],
8282
['label' => __('Buy X get Y free (discount amount is Y)'), 'value' => Rule::BUY_X_GET_Y_ACTION]
8383
];
8484

app/code/Magento/SalesRule/Test/Unit/Model/Rule/Metadata/_files/MetaData.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
27
return [
38
'rule_information' =>
49
[
@@ -101,7 +106,7 @@
101106
],
102107
[
103108
'label' => __('Fixed amount discount for whole cart'),
104-
'value' => 'by_percent',
109+
'value' => 'cart_fixed',
105110
],
106111
[
107112
'label' => __(

0 commit comments

Comments
 (0)