Private
Public Access
1
0

tested upgrade stuff, improved new user emails

This commit is contained in:
Sander Roosendaal
2019-05-16 10:53:26 +02:00
parent 8bd6373212
commit af0b03970a
6 changed files with 58 additions and 6 deletions

View File

@@ -241,7 +241,6 @@ def create_subscription(rower,data):
"payment_method_nonce": nonce_from_the_client
})
if result.is_success:
payment_method_token = result.payment_method.token
else:
@@ -252,6 +251,7 @@ def create_subscription(rower,data):
"plan_id": plan.external_id
})
if result.is_success:
rower.paidplan = plan
rower.planexpires = result.subscription.billing_period_end_date

View File

@@ -597,7 +597,7 @@ def process_request_code(manager,code):
if rekwest.team.manager != manager:
return (0,'You are not the manager of this team')
result = add_member(t.id,r)
result,comment = add_member(t.id,r)
if not result:
return (result,"The member couldn't be added")
@@ -622,7 +622,7 @@ def process_invite_code(user,code):
return (0,'The invitation has expired')
t = invitation.team
result = add_member(t.id,r)
result, comment = add_member(t.id,r)
if not result:
return (result,"The member couldn't be added")

View File

@@ -0,0 +1,42 @@
{% extends "emailbase.html" %}
{% block body %}
<p>Dear <strong>{{ first_name }}</strong>,</p>
<p>
Thank you for registering on rowsandall.com.
You can now login using the credentials you provided.
The first thing you should do is go to the
<a href="https://rowsandall.com/rowers/me/edit/">Settings page</a>
and make yourself familiar with the various options
available to personalize your experience on the website.
To get there, use the link in the email or click the user icon
in the upper right corner of the opening page.
</p>
<p>
As a new member on the free coach plan, you can start with your first training
group and invite athletes to join it.
For more information about training groups and managing athletes, please read
our explanation at
<a href="https://analytics.rowsandall.com/2019/02/24/managing-a-rowing-training-group-coaching-and-remote-coaching-on-rowsandall-com/">https://analytics.rowsandall.com/2019/02/24/managing-a-rowing-training-group-coaching-and-remote-coaching-on-rowsandall-com/</a>.
</p>
<p>
As long as you are on the free coach plan, you can only managing athletes who are
on one of the paid plans. To remove this limitation, upgrade to one of the paid
coaching plans:
<a href="https://rowsandall.com/rowers/paidplans">https://rowsandall.com/rowers/paidplans</a>
</p>
<p>
Oh, one more thing. The site is
developing fast. Bear with us. Don't hesitate to
contact me at info@rowsandall.com if anything is broken
or doesn't seem to work as advertised.
</p>
<p>
Best Regards, the Rowsandall Team
</p>
{% endblock %}

View File

@@ -250,6 +250,16 @@
{% endif %}
</button>
</td>
{% elif rower and rower.rowerplan == 'freecoach' %}
<td colspan="3">
<button style="width:100%">
{% if user|existing_customer %}
<a href="/rowers/upgrade/">UPGRADE NOW</a>
{% else %}
<a href="/rowers/billing/">BUY NOW</a>
{% endif %}
</button>
</td>
{% elif rower and rower.rowerplan == 'pro' %}
<td>&nbsp;</td>
<td colspan="2">

View File

@@ -10,8 +10,8 @@
<a href="https://rowsandall.com/rowers/me/edit/">Settings page</a>
and make yourself familiar with the various options
available to personalize your experience on the website.
To get there, use the link in the email or click the button
with your first name on it in the upper right corner of the opening page.
To get there, use the link in the email or click the user icon
in the upper right corner of the opening page.
</p>
<p>

View File

@@ -614,7 +614,7 @@ def freecoach_register_view(request):
d = {'first_name':theuser.first_name}
send_template_email(from_address,[fullemail],
subject,'registeremail.html',d)
subject,'coachregisteremail.html',d)
subject2 = "New Free Coach"