Finally fixing the same as billing address checkbox?

This commit is contained in:
Will Marshall
2014-03-13 11:41:46 +11:00
parent e7bed58616
commit 1ba720481f
4 changed files with 9 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ angular.module("Checkout").controller "CheckoutCtrl", ($scope, $rootScope, order
# Here we default to the first shipping method if none is selected
$scope.order.shipping_method_id ||= Object.keys(order.shipping_methods)[0]
$scope.order.ship_address_same_as_billing = true if $scope.order.ship_address_same_as_billing == null
$scope.require_ship_address = $scope.order.shipping_methods[$scope.order.shipping_method_id]
$scope.shippingMethodChanged = ->