Skip to content

Commit 73f2d45

Browse files
🔃 [Magento Community Engineering] Community Contributions - 2.2-develop
Accepted Community Pull Requests: - #23058: [Backport] Checkout totals order in specific store (by @abrarpathan19) Fixed GitHub Issues: - #22380: Checkout totals order in specific store (reported by @daniel-ifrim) has been fixed in #23058 by @abrarpathan19 in 2.2-develop branch Related commits: 1. 02f8aa6 2. ead8e63
2 parents 27207cf + 35bd546 commit 73f2d45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Checkout/Model/Layout/AbstractTotalsProcessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Checkout\Model\Layout;
78

89
use Magento\Framework\App\Config\ScopeConfigInterface;
10+
use Magento\Store\Model\ScopeInterface;
911

1012
/**
1113
* Abstract totals processor.
@@ -35,12 +37,14 @@ public function __construct(
3537
}
3638

3739
/**
40+
* Sort total information based on configuration settings.
41+
*
3842
* @param array $totals
3943
* @return array
4044
*/
4145
public function sortTotals($totals)
4246
{
43-
$configData = $this->scopeConfig->getValue('sales/totals_sort');
47+
$configData = $this->scopeConfig->getValue('sales/totals_sort', ScopeInterface::SCOPE_STORES);
4448
foreach ($totals as $code => &$total) {
4549
//convert JS naming style to config naming style
4650
$code = str_replace('-', '_', $code);

0 commit comments

Comments
 (0)