shop:signup
The shop:signup action is designed for creating the Customer Signup page. The action processes the signup form data, creates a customer account and sends an email notification to the customer. Please read the Creating the Customer Registration page article for examples of the action usage.
Supported form field names
- first_name – customer first name
- last_name – customer last name
- email – customer email
- signup – a name of a submit button element for the POST (non AJAX) form submit method.
- company - customer's company name
- phone - customer phone
- billing_state_id - an identifier of the customer billing state
- billing_country_id- an identifier of the customer billing country
- billing_street_addr - billing street address
- billing_city - billing city name
- billing_zip - billing ZIP/Postal code
- redirect - an URL to redirect the visitor's browser after the signup. Note: if your copy of LemonStand is installed in a subdirectory, you need to use the root_url() function to generate correct URLs referring to LemonStand pages.
- flash - a message to display on the target redirection page. Use the flash_message() function on the target page to display the message.
Supported AJAX handlers
- shop:on_signup – processes the customer signup form. Use this handler for creating the Signup link or button on the Signup form. Example:
<a href="#" onclick="return $(this).getForm().sendRequest('shop:on_signup')">Signup</a>
Next: shop:payment_profiles
Previous: shop:search
Return to Reference

