File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,17 @@ class Helper
13
13
public static function isConsistentCart ($ cart )
14
14
{
15
15
$ totals = self ::totals ($ cart );
16
- if ( ! isset ($ cart ['order_total_without_tax ' ])) {
17
- $ cart ['order_total_without_tax ' ] = $ totals ['without_tax ' ];
18
- }
19
-
20
- return $ cart ['order_total_without_tax ' ] == $ totals ['without_tax ' ] && $ cart ['order_total_with_tax ' ] == $ totals ['with_tax ' ];
16
+ return $ cart ['order_total_with_tax ' ] == $ totals ['with_tax ' ];
21
17
}
22
18
23
19
public static function totals ($ cart )
24
20
{
25
- $ total_without_tax = $ total_with_tax = 0 ;
21
+ $ total_with_tax = 0 ;
26
22
foreach ($ cart ['items ' ] as $ item ) {
27
- $ total_without_tax += isset ($ item ['total_without_tax ' ]) ? $ item ['total_without_tax ' ] : $ item ['total_with_tax ' ];
28
23
$ total_with_tax += $ item ['total_with_tax ' ];
29
24
}
30
25
31
- return array ('without_tax ' => $ total_without_tax , ' with_tax ' => $ total_with_tax );
26
+ return array ('with_tax ' => $ total_with_tax );
32
27
}
33
28
34
29
public static function removeNulls ($ data )
@@ -74,4 +69,4 @@ public static function sign($value, $pass)
74
69
75
70
return sha1 ($ value . $ pass );
76
71
}
77
- }
72
+ }
You can’t perform that action at this time.
0 commit comments