Sfoglia il codice sorgente

copy coupon code over when switching to student

Henry Oswald 11 anni fa
parent
commit
631e84f5d6

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

@@ -9,7 +9,7 @@ define [
 		$scope.plans = MultiCurrencyPricing.plans
 		$scope.plans = MultiCurrencyPricing.plans
 
 
 		$scope.switchToStudent = ()->
 		$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"
 		$scope.paymentMethod = "credit_card"