6.4 Sign up page [VUC3]
Sign up component allows to create a custom page with forms for creating new company accounts in VUC. An example of the sign up is on our demo website callto.net
The demo of the sign up page is at https://beta.callto.net/Signup
Plans
Configuration is through the below section in the VUC's AppSettings.config file.
<!-- Signup Plan Config -->
<add key="SC:standardPlanId" value="10"/>
<add key="SC:premiumPlandId" value="11"/>
<add key="SC:planCountryId" value="-1"/>
A user can choose a plan during the signup process. Set the IDs of plans which will be shown. You can set only one ID, in this case only one plan will be shown on the page.
Currencies
To use multiple currencies you need to define plans per currency as per example below:
<!-- Signup Plan Config -->
<add key="PLN.SC:standardPlanId" value="10"/>
<add key="PLN.SC:premiumPlandId" value="11"/>
<!-- Signup Plan Config -->
<add key="USD.SC:standardPlanId" value="10"/>
<add key="USD.SC:premiumPlandId" value="11"/>
The plan keys are prefixed with the currency code. When you open the signup page (for example using a link from your website) add the country parameter with appropriate country code:
/Signup?country=PLN
or
/Signup?country=USD
For each of the requests different plans will be shown.
Free Trial Signup
In the AppSettings.conifg add the following key: PbxSignupPlanFreeId
For different countries you can add a country prefix as in the example below:
|
Confirmation email
The email template must contain the activation link:
/VUC/Signup?action=activate&token=[SIGNUP_TOKEN]
The location of the template is defined by the following key:
|
email_confirm.html - edit this file to include additional information in the email body.
|
Paid/Subscription Signup
To offer paid subscriptions you need to define a payment provider using the keys below:
|
NOTE: provider must support Recurring payments (subscriptions) and has to be supported by the OnlineShop module.
OnlineShop redirects.config
|
For different currencies you need to add keys for each currency and set the link to the onlineshop instance which is configured for this currency.
|
Customizacja:
Pliki sa edytowalne bez kompilacji. Błedy HTML moga powodować brak generowania widoku.
CSS: /Content/Signup/style.css
CSHTML (widoki) /Views/Signup/
Opis plików:
Index.cshtml - wczytuje paramtery requestu. Domyślnie renderuje jako partial _signup.cshml.
_signup.cshtml - widok signupu (partial page)
_summary.cshml - onlineshop transaction return (partial page)
_activate.cshtml - free trial link activation page (partial page)
_layout.cshtml - layout stron (master)
Przed updated nalezy zrobic backup modyfikowanych plikow i przywrocic po instalacji.
Addional Signup's
Zrobic kopie plików _signup.cshml np. _signupXX.cshml, _signupScript.cshml _signupScriptXX.cshml
W pliku Index.cshml doadc
|
W _SignupXX.cshml
Zmienic linie
|
na
|
W _signupScriptXX.cshml modyfikujemy wg wlanych wymagan wartosci :
np.
|
Dodatkowy signup dospteny z URL /Signup?action=NameOfYourAction
Problemy:
ERROR [CompanyTrialSignupController] System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Złe ID FreePlanPack
|
RROR [CompanyTrialSignupController] System.Exception: transaction is not a subscription
|