Function __global->get_product_details_url
Definitions
sources/ecommerce.php
- Get a URL to a product.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type_code | ID_TEXT | No | No | required parameter | N/A | N/A | The product codename |
| $post_purchase_access_url | boolean | No | No | False | N/A | N/A | Access a post-purchase URL appropriate to the buyer |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Member ID that this is for (null: unknown) |
| $email_safe | boolean | No | No | False | N/A | N/A | Whether to avoid keep_* parameters as it's going in an e-mail |
Returns
- Product URL
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a URL to a product.
*
* @param ID_TEXT $type_code The product codename
* @param boolean $post_purchase_access_url Access a post-purchase URL appropriate to the buyer
* @param ?MEMBER $member_id Member ID that this is for (null: unknown)
* @param boolean $email_safe Whether to avoid keep_* parameters as it's going in an e-mail
* @return Tempcode Product URL
*/
function get_product_details_url(string $type_code, bool $post_purchase_access_url = false, ?int $member_id = null, bool $email_safe = false) : object
* Get a URL to a product.
*
* @param ID_TEXT $type_code The product codename
* @param boolean $post_purchase_access_url Access a post-purchase URL appropriate to the buyer
* @param ?MEMBER $member_id Member ID that this is for (null: unknown)
* @param boolean $email_safe Whether to avoid keep_* parameters as it's going in an e-mail
* @return Tempcode Product URL
*/
function get_product_details_url(string $type_code, bool $post_purchase_access_url = false, ?int $member_id = null, bool $email_safe = false) : object
