Retrieve product by a given field from the product table.
- Full name:
get_product_by - Defined in:
cms/core/Shared/Helpers/product.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$field |
string | The field to retrieve the product with |
| (id = product_id, sku = product_sku, slug = product_slug). | ||
$value |
string | A value for $field (product_id, product_sku, product_slug). |
Return Value
false|object