Changes to make compatible with spree 2.0 and custom logic for total cost calculation