shop:customer_profile CMS action
Defined in |
/modules/shop/classes/shop_actions.php, lines 3152-3162 |
Author |
LemonStand eCommerce Inc. |
Supported form field details
¶
submit_profile form field
A name for the submit button for saving the payment profile.
The Save submit button should have name submit_profile if you are implementing a regular POST form.
Alternatively you can use the shop:on_updateCustomerProfile handler.
¶
first_name form field
Specifies the customer first name. Required.
¶
last_name form field
Specifies the customer last name. Required.
¶
email form field
Specifies the customer email. Required.
¶
company form field
Specifies the customer's company name.
¶
phone form field
Specifies the phone number.
¶
billing_state_id form field
An identifier of the customer billing state.
¶
billing_country_id form field
An identifier of the customer billing country.
¶
billing_street_addr form field
Specifies the billing street address.
¶
billing_city form field
Specifies the billing city name.
¶
billing_zip form field
Specifies the billing ZIP/Postal code.
¶
shipping_first_name form field
Specifies the customer shipping first name. Required.
¶
shipping_last_name form field
Specifies the customer shipping last name. Required.
¶
shipping_company form field
Specifies the customer's sipping company name.
¶
shipping_phone form field
Specifies the phone shipping number.
¶
shipping_state_id form field
An identifier of the customer shipping state.
¶
shipping_country_id form field
An identifier of the customer shipping country.
¶
shipping_street_addr form field
Specifies the shipping street address.
¶
shipping_city form field
Specifies the shipping city name.
¶
shipping_zip form field
Specifies the shipping ZIP/Postal code.
¶
redirect form field
An optional URL to redirect the visitor's browser after updating the profile.
Note that if your copy of LemonStand is installed in a subdirectory, you need to use the root_url() function
in the redirect field value.
¶
flash form field
A message to display on the target redirection page.
Use the flash_message() function on the target page to display the message.
Generated PHP variable details
¶
countries variable
A collection of countries for populating the Billing Country and Shipping Country lists.
Each element in the collection is an object of the Shop_Country class.
¶
billing_states variable
A collection of states for populating the Billing State list.
Each element in the collection is an object of the Shop_CountryState class
¶
shipping_states variable
A collection of states for populating the Shipping State list.
Each element in the collection is an object of the Shop_CountryState class
Built-in AJAX handlers details
¶
shop:on_updateCustomerProfile AJAX handler
Updates the customer profile.
|