productPropertyFilter
For eCommerce, the productPropertyFilter tqTag enables site visitors to filter products by property.
productPropertyFilter - Syntax
<tqtag name="propertyFilterName" type="productPropertyFilter" title="propertyFilterTitle" maxItems="100" dynamicGrow productListTag="product0" >
...
</tqtag>
productPropertyFilter - Parameters
| Parameter Name |
Type |
Mandatory |
Strict | Transitional |
Case Sensitive |
Description |
| type |
Text |
+ |
S |
+ |
must be productPropertyFilter |
| name |
Text |
+ |
S |
+ |
should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed |
| title |
Alpha Numeric |
+ |
S |
- |
The title of the tqtag. This title will be presented only at the back-end system. no spaces/commas/single quote/double quotes allowed |
| dynamicGrow |
|
- |
T |
+ |
dynamicGrow tells the system to copy the tqtag for each item retrieved maxItems numbers of times. |
| maxItems |
Number |
- |
S |
|
The max number of filter values to display |
| productListTag |
|
- |
T |
+ |
Tells the system to use the autopilot assigned to the productList tag.
This gives you the option to create several product properties filter to different productList tags in the same page. |
productPropertyFilter - Local Variables
| Name |
Type |
Size |
Description |
| itemsCount |
number |
6 |
Number of items will be shown after applying the filter |
| link |
text |
~100 |
Url to filter by the specific property |
| productTypeID |
number |
6 |
Database product id of the filter |
| productTypeTitle |
text |
30 |
Product type name |
| propertTypeTitle |
text |
30 |
Property name |
| propertyAvatar |
text |
1024 |
Url of the avatar of the property |
| propertyTypeID |
number |
6 |
Database property id number |
| propertyValueAvatar |
text |
1024 |
Url of the property value avatar |
| propertyValueID |
number |
6 |
Database id of the property value |
| propertyValueTitle |
text |
30 |
The name of the property value name |
| stockAffected |
text |
3 |
Returns on if the property is stock affected or off if the product is not stock affected |
| theValue |
|
|
|
productPropertyFilter - Examples
Example 1 - using of productPropertyFilter tqtag + showing how to call it via the productList tqtag
<tqtag name="propertyFilterName" type="productPropertyFilter" maxItems="100" title="propertyFilterTitle" productListTag="product0" >
<tqoption type="head" alternative0="">{!<div><span>@propertTypeTitle@</span>!}0</tqoption>
[<a href="@link@">@propertyValueTitle@</a>]
<tqoption type="tail" alternative0="">{!</div>!}0</tqoption>
</tqtag>
<tqtag name="product0" type="productList" maxItems="6" dynamicGrow >
<tr class="@evenOrOdd@">
<td>@lineItemCatalogID@</td>
<td>@productName@</td>
<td nowrap>@propertyFilterName@</td>
</tr>
</tqtag>
productPropertyFilter - tqOptions
With the productPropertyFilter tqTag, you can use the following tqoptions:
head,
if,
lastItemInRow,
tail.