File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ public function catalogProductGetFinalPrice(Varien_Event_Observer $observer)
2323 {
2424 $ product = $ observer ->getProduct ();
2525
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 )
2929 ) {
3030 return $ this ;
3131 }
@@ -81,12 +81,16 @@ protected function _calculateTierPrice($product)
8181 */
8282 protected function _calculateTotalQuantity ($ product )
8383 {
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 ;
8792 }
88- return $ total ;
89- });
93+ );
9094 }
9195
9296 /**
You can’t perform that action at this time.
0 commit comments