Function Hook_ecommerce_custom->_get_fields
Definitions
sources/hooks/systems/ecommerce/custom.php
- Get fields for adding/editing one of these.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$hidden | Tempcode | required parameter | N/A | N/A | Hidden fields |
$name_suffix | string | Blank (empty string) | N/A | N/A | What to place onto the end of the field name |
$title | SHORT_TEXT | Blank (empty string) | N/A | N/A | Title |
$description | LONG_TEXT | Blank (empty string) | N/A | N/A | Description |
$image_url | URLPATH | Blank (empty string) | N/A | N/A | Image URL |
$enabled | BINARY | 1 | N/A | N/A | Whether it is enabled |
$price | ?REAL | Null | N/A | N/A | The price (null: not set) |
$tax_code | ID_TEXT | 0% | N/A | N/A | The tax code |
$shipping_cost | REAL | 0 | N/A | N/A | The shipping_cost |
$price_points | ?integer | Null | N/A | N/A | The price in points (null: not set) |
$one_per_member | BINARY | 0 | N/A | N/A | Whether it is restricted to one per member |
$mail_subject | SHORT_TEXT | Blank (empty string) | N/A | N/A | Confirmation mail subject |
$mail_body | LONG_TEXT | Blank (empty string) | N/A | N/A | Confirmation mail body |
Return
- The fields
- Type: Tempcode
- Set: N/A
- Range: N/A