get_price_labels
Overview
This function looks-up the Price Labels associated to a product and returns the information in an array.
Accepted Parameters
Parameter | Values | Default | Description | Required | Sample |
---|---|---|---|---|---|
product_id | Positive Integer | The Internal ID Aurora uses to identify a Product. | Yes | 1 |
Data Returned
Field | Values | Description |
---|---|---|
price_type | String | A value of either: product_price, product_price_rrp or product_price_was. |
price_label | String | The user entered value for the Price Label, e.g. the name given to it such as "RRP" |
colour | String | The selected colour |
Example template code
You can add the following to the product details page: Â
{get_price_labels product_id=$product.id price_labels="price_label_output_variable"}
<h2>Price label</h2>
<pre>{$price_label_output_variable|@print_r}</pre>
Updated over 2 years ago