File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ public function catalogProductGetFinalPrice(Varien_Event_Observer $observer)
23
23
{
24
24
$ product = $ observer ->getProduct ();
25
25
26
- if (!$ this ->_helper ->isExtensionEnabled () ||
27
- $ this ->_helper ->isProductInDisabledCategory ($ product ) ||
28
- $ this ->_helper ->isExtensionDisabledForProduct ($ product )
26
+ if (!$ this ->_helper ->isExtensionEnabled ()
27
+ || $ this ->_helper ->isProductInDisabledCategory ($ product )
28
+ || $ this ->_helper ->isExtensionDisabledForProduct ($ product )
29
29
) {
30
30
return $ this ;
31
31
}
@@ -81,12 +81,16 @@ protected function _calculateTierPrice($product)
81
81
*/
82
82
protected function _calculateTotalQuantity ($ product )
83
83
{
84
- return array_reduce ($ this ->_getAllVisibleItems (), function ($ total , $ item ) use ($ product ) {
85
- if ($ item ->getProductId () == $ product ->getId ()) {
86
- $ total += $ item ->getQty ();
84
+ return array_reduce (
85
+ $ this ->_getAllVisibleItems (),
86
+ function ($ total , $ item ) use ($ product ) {
87
+ if ($ item ->getProductId () == $ product ->getId ()) {
88
+ $ total += $ item ->getQty ();
89
+ }
90
+
91
+ return $ total ;
87
92
}
88
- return $ total ;
89
- });
93
+ );
90
94
}
91
95
92
96
/**
You can’t perform that action at this time.
0 commit comments