Skip to content

Commit

Permalink
Do not reset the shippingPrice if amount has already been set
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Aug 9, 2016
1 parent e836175 commit 8c7ba44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/shoppingcart_cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@
countMethods++;
}

ShoppingCart.shippingPrice = 0.00;
if (!ShoppingCart.shippingPrice) {
ShoppingCart.shippingPrice = 0.00;
}

if (countMethods === 0) {
ShoppingCart.renderCart();
Expand Down

0 comments on commit 8c7ba44

Please sign in to comment.