Function __global->get_default_ecommerce_fields
Definitions
sources/ecommerce.php
- Fetch default eCommerce fields for a form (returns by reference).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $default_to_store | boolean | No | No | False | N/A | N/A | Default to the store address if we don't know the shipping address. Useful for a default tax calculation. |
| $do_checking | boolean | No | No | True | N/A | N/A | Check for accuracy of data. If $default_to_store is false, you probably want to set this to false also, as data may not be set properly. |
Preview
Code (PHP)
/**
* Fetch default eCommerce fields for a form (returns by reference).
*
* @param boolean $default_to_store Default to the store address if we don't know the shipping address. Useful for a default tax calculation.
* @param boolean $do_checking Check for accuracy of data. If $default_to_store is false, you probably want to set this to false also, as data may not be set properly.
*/
function get_default_ecommerce_fields(bool $default_to_store = false, bool $do_checking = true)
* Fetch default eCommerce fields for a form (returns by reference).
*
* @param boolean $default_to_store Default to the store address if we don't know the shipping address. Useful for a default tax calculation.
* @param boolean $do_checking Check for accuracy of data. If $default_to_store is false, you probably want to set this to false also, as data may not be set properly.
*/
function get_default_ecommerce_fields(bool $default_to_store = false, bool $do_checking = true)

