Function __global->get_shipping_name_fields
Definitions
sources/ecommerce_shipping.php
- Get form fields for a shipping/invoice name.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $shipping_firstname | string | No | No | required parameter | N/A | N/A | First name |
| $shipping_lastname | string | No | No | required parameter | N/A | N/A | Last name |
| $require_all_details | boolean | No | No | True | N/A | N/A | Whether to require all details to be input |
Returns
- Name fields
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get form fields for a shipping/invoice name.
*
* @param string $shipping_firstname First name
* @param string $shipping_lastname Last name
* @param boolean $require_all_details Whether to require all details to be input
* @return Tempcode Name fields
*/
function get_shipping_name_fields(string $shipping_firstname, string $shipping_lastname, bool $require_all_details = true) : object
* Get form fields for a shipping/invoice name.
*
* @param string $shipping_firstname First name
* @param string $shipping_lastname Last name
* @param boolean $require_all_details Whether to require all details to be input
* @return Tempcode Name fields
*/
function get_shipping_name_fields(string $shipping_firstname, string $shipping_lastname, bool $require_all_details = true) : object
