1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-17 09:29:08 +00:00

Set new_user param for sign up redirections

release of CC#2597

redirect users who want to buy something to sign up instead of sign in - where they then have to click sign up anyway

reduces friction
This commit is contained in:
davegson 2023-01-23 10:44:29 +01:00
parent b79c8a84f8
commit 4a0c1f7e13
2 changed files with 10 additions and 2 deletions

View file

@ -60,6 +60,7 @@ title: Safing Portmaster - Pricing
</div>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="9" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/circle-big.png" alt="">
@ -111,6 +112,7 @@ title: Safing Portmaster - Pricing
</form>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="1" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/triangle-big.png" alt="">
@ -189,6 +191,7 @@ title: Safing Portmaster - Pricing
</div>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="10" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/circle-big.png" alt="">
@ -240,6 +243,7 @@ title: Safing Portmaster - Pricing
</form>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="2" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/triangle-big.png" alt="">
@ -448,7 +452,7 @@ title: Safing Portmaster - Pricing
</span>
</div>
<div class="card-package-bottom">
<a class="btn-secondary justify-center less-round" href="https://account.safing.io/charges/checkout?charge[plan_id=9]" style="background-color: #2a2a2a; width: 80%; border-radius: 7px !important; padding-top: 1.2rem; padding-bottom: 1.2rem;">Buy Package</a>
<a class="btn-secondary justify-center less-round" href="https://account.safing.io/charges/checkout?charge[plan_id=9]&new_user=true" style="background-color: #2a2a2a; width: 80%; border-radius: 7px !important; padding-top: 1.2rem; padding-bottom: 1.2rem;">Buy Package</a>
</div>
</div>
@ -514,7 +518,7 @@ title: Safing Portmaster - Pricing
</span>
</div>
<div class="card-package-bottom">
<a class="btn-secondary justify-center less-round" href="https://account.safing.io/charges/checkout?charge[plan_id=1]" style=" width: 80%; border-radius: 7px !important; padding-top: 1.2rem; padding-bottom: 1.2rem;">Buy Package</a>
<a class="btn-secondary justify-center less-round" href="https://account.safing.io/charges/checkout?charge[plan_id=1]&new_user=true" style=" width: 80%; border-radius: 7px !important; padding-top: 1.2rem; padding-bottom: 1.2rem;">Buy Package</a>
</div>
</div>
</div>

View file

@ -178,6 +178,7 @@ layout: page
</div>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="9" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/circle-big.png" alt="">
@ -228,6 +229,7 @@ layout: page
</form>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="1" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/triangle-big.png" alt="">
@ -306,6 +308,7 @@ layout: page
</div>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="10" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/circle-big.png" alt="">
@ -359,6 +362,7 @@ layout: page
</form>
<form class="new_charge" id="new_charge" action="https://account.safing.io/charges/checkout" accept-charset="UTF-8" method="get">
<input value="2" autocomplete="off" type="hidden" name="charge[plan_id]" id="charge_package_id">
<input type="hidden" name="new_user" value="true" autocomplete="off" >
<div class="card-package darkmode mt-0" style="height: 650px;">
<div class="absolute -top-8 -right-11 hidden xl:block">
<img src="{{ site.img_url }}page-specific/pricing/package-icons/triangle-big.png" alt="">