Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #515 from elcodi/fix/fixed-switch-shipping-method
Browse files Browse the repository at this point in the history
Fixed shipping method switch
  • Loading branch information
mmoreram committed Jun 13, 2015
2 parents 68f8f52 + 912608e commit 41019df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Elcodi/Store/CartBundle/Controller/CheckoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,12 @@ public function applyShippingMethodAction(CartInterface $cart, $shippingMethod)
/**
* Desired shipping method
*/
$shippingMethods = $this
$shippingMethodObject = $this
->get('elcodi.wrapper.shipping_methods')
->getOneById($cart, $shippingMethod);

if ($shippingMethods instanceof ShippingMethod) {
$cart->setShippingMethod($shippingMethods);
if ($shippingMethodObject instanceof ShippingMethod) {
$cart->setShippingMethod($shippingMethod);
$this
->get('elcodi.object_manager.cart')
->flush($cart);
Expand Down

0 comments on commit 41019df

Please sign in to comment.