Просмотр исходного кода

copy coupon code over when switching to student

Henry Oswald 11 лет назад
Родитель
Сommit
631e84f5d6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/public/coffee/main/new-subscription.coffee

+ 1 - 1
services/web/public/coffee/main/new-subscription.coffee

@@ -9,7 +9,7 @@ define [
 		$scope.plans = MultiCurrencyPricing.plans
 
 		$scope.switchToStudent = ()->
-			window.location = "/user/subscription/new?planCode=student_free_trial_7_days&currency=#{$scope.currencyCode}"
+			window.location = "/user/subscription/new?planCode=student_free_trial_7_days&currency=#{$scope.currencyCode}&cc=#{$scope.data.coupon}"
 
 
 		$scope.paymentMethod = "credit_card"