Function __global->get_next_purchase_step
Definitions
sources/ecommerce.php
- Find the next step for the purchasing module.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $product_object | object | No | No | required parameter | N/A | N/A | The product object |
| $type_code | ID_TEXT | No | No | required parameter | N/A | N/A | The product type |
| $step_before | ID_TEXT | No | No | required parameter | N/A | N/A | The step prior to the next step |
Returns
- The next step (null: error)
- Type: ?ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the next step for the purchasing module.
*
* @param object $product_object The product object
* @param ID_TEXT $type_code The product type
* @param ID_TEXT $step_before The step prior to the next step
* @return ?ID_TEXT The next step (null: error)
*/
function get_next_purchase_step(object $product_object, string $type_code, string $step_before) : ?string
* Find the next step for the purchasing module.
*
* @param object $product_object The product object
* @param ID_TEXT $type_code The product type
* @param ID_TEXT $step_before The step prior to the next step
* @return ?ID_TEXT The next step (null: error)
*/
function get_next_purchase_step(object $product_object, string $type_code, string $step_before) : ?string
