Permalink
Browse files

fixed pricing provider when no pricing context supplied

  • Loading branch information...
theodorDiaconu authored and iampersistent committed Jan 28, 2013
1 parent e1b85fd commit e264fc05a488fba4aff6a84e5f9911bff2e1d3c2
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/ImmersiveLabs/Pricing/Provider/OrderPricingProvider.php
@@ -26,7 +26,7 @@ public function determineOrderPrices(OrderInterface $order, PricingContextInterf
{
// not implemented
if ($pricingContext === null) {
- $pricingContext = $this->createPricingContext();
+ $pricingContext = new PricingContext();
}
if (!$orderPricingSet = $order->getPricing()) {
@@ -48,6 +48,7 @@ public function determineOrderPrices(OrderInterface $order, PricingContextInterf
}
$orderPricingSet->set('totalNet', $itemsTotalNet);
+ $orderPricingSet->set('totalValue', $itemsTotalNet);
// if pricing context has taxation enabled we calculate the taxes with the percentage set

0 comments on commit e264fc0

Please sign in to comment.