File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Checkout/Model/Layout Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Checkout \Model \Layout ;
7
8
8
9
use Magento \Framework \App \Config \ScopeConfigInterface ;
10
+ use Magento \Store \Model \ScopeInterface ;
9
11
10
12
/**
11
13
* Abstract totals processor.
@@ -35,12 +37,14 @@ public function __construct(
35
37
}
36
38
37
39
/**
40
+ * Sort total information based on configuration settings.
41
+ *
38
42
* @param array $totals
39
43
* @return array
40
44
*/
41
45
public function sortTotals ($ totals )
42
46
{
43
- $ configData = $ this ->scopeConfig ->getValue ('sales/totals_sort ' , \ Magento \ Store \ Model \ ScopeInterface::SCOPE_STORES );
47
+ $ configData = $ this ->scopeConfig ->getValue ('sales/totals_sort ' , ScopeInterface::SCOPE_STORES );
44
48
foreach ($ totals as $ code => &$ total ) {
45
49
//convert JS naming style to config naming style
46
50
$ code = str_replace ('- ' , '_ ' , $ code );
You can’t perform that action at this time.
0 commit comments