Function __global->find_product_details
Definitions
sources/ecommerce.php
- Find product info row and other details.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$search | ID_TEXT | Yes | No | required parameter | N/A | N/A | The product codename (passed by reference; semantic codes could be modified by ecommerce hooks) |
Returns
- A triple: The product info row, the product object (all will be null if not found)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find product info row and other details.
*
* @param ID_TEXT $search The product codename (passed by reference; semantic codes could be modified by ecommerce hooks)
* @return array A triple: The product info row, the product object (all will be null if not found)
*/
function find_product_details(string &$search) : array
* Find product info row and other details.
*
* @param ID_TEXT $search The product codename (passed by reference; semantic codes could be modified by ecommerce hooks)
* @return array A triple: The product info row, the product object (all will be null if not found)
*/
function find_product_details(string &$search) : array

