/
Registering customer from your website using Cloud Signup
Registering customer from your website using Cloud Signup
Problem:
I want to register client with email and password using Cloud Signup module directly from my website.
Solution:
1. In Cloud Signup module configuration (Settings → Modules → Plugins → Cloud Signup → Edit Configuration) enable option: Allow external signups
2. On your website, in the place you wish to register customers add / customize following form:
<form action="http://URL.TO.YOUR.HOSTBILL/?cmd=cloudsignup" method="post"> <input type="hidden" name="make" value="signup" /> <br/> E-mail address: <input type="email" name="username" placeholder="E-mail address" /><br/> Password: <input type="password" name="password" /><br/> <input type="submit" value="Sign Up" /> </form>
Replace: http://URL.TO.YOUR.HOSTBILL/ in code above with actual address of your HostBill installation
Pass other customer details into Cloud Signup
Optionally you can pass other customer details (like Firstname, Lastname, Address etc.) when posting data from external form into Cloud Signup.
To do so, pass additional details fields in HTML form, as per example below:
<form action="http://URL.TO.YOUR.HOSTBILL/?cmd=cloudsignup" method="post"> <input type="hidden" name="make" value="signup" /><br/> E-mail address: <input type="email" name="username" placeholder="E-mail address" /><br/> Password: <input type="password" name="password" /><br/><br/> Firstname: <input type="text" name="details[firstname]" /><br/> Lastname: <input type="text" name="details[lastname]" /><br/> Address: <input type="text" name="details[address1]" /><br/> City: <input type="text" name="details[city]" /><br/> State: <input type="text" name="details[state]" /><br/> Phone: <input type="text" name="details[phonenumber]" /><br/> Country Code: <input type="text" name="details[country]" placeholder="US" /><br/> Currency: <select name="details[currency]"> <option value="USD">USD</option> <option value="EUR">EUR</option> </select> <input type="submit" value="Sign Up" /> </form>
Note:
- All details fields are optional
- You can pass all fields in details array available in Registration Fields
- When entering the currency in the selecta option, please provide the values that exist in the HostBill installation. The value in options must be the ISO currency code.
, multiple selections available,
Related content
Cloud Signup Form
Cloud Signup Form
More like this
Posting form values to auto-added product through Cloud Signup
Posting form values to auto-added product through Cloud Signup
More like this
Log-in with Google
Log-in with Google
More like this
Registration Fields
Registration Fields
More like this
Log-in with Dropbox
Log-in with Dropbox
More like this
Email Verification
Email Verification
More like this