SGA-7 fix of the calculation and compatibility check with magento 1.8.0.0 +review CR
sga-7 small refactoring +review CR-1023
sga-7 fix for cart calculation +review CR-1023