Commit 4748c89b authored by Birin Sanchez's avatar Birin Sanchez

Fix pending cart URL with None in it.

Signed-off-by: Birin Sanchez's avatarBirin Sanchez <birin.sanchez@puri.sm>
parent a33b35fc
......@@ -119,12 +119,15 @@ class CartRegistrationView(RegistrationView):
else:
# go to WooCommerce cart URL
if hasattr(user, 'chosenreward'):
user_reward = user.chosenreward.reward
else:
user_reward = 1
url = '{}/{}/{}/{}&reauth=1'.format(
settings.WOO_URL,
'wp-login.php?redirect_to=',
settings.WOO_CART_BILLING_PATH,
self.reward
user_reward
)
return url
......
......@@ -32,7 +32,10 @@ SPDX-License-Identifier: AGPL-3.0
Your registration is pending.
</p>
<p>
To complete the registration process please visit <a href="{{complete_signup_url}}">{{complete_signup_url}}</a>
If you haven't already completed the billing process please visit:
</p>
<p>
<a href="{{complete_signup_url}}">{{complete_signup_url}}</a>
</p>
<p>
Pending registrations are removed after 12 hours.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment