Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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_id]">
        	{foreach from=$currencies item=currency}
            	<option value="{$currency.id}">{$currency.code}</option>
        	{/foreach}
    	  </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



  • No labels