Context: Template Tag

Template Tags

CODE

Render value for a single product code (international product code). %CODE:NAME% Name represents code to display value for: ASIN EAN8 EAN13 UPC

COMPANY_PRODUCTS

Render product types and products for company. %COMPANY_PRODUCTS:MODE|COUNT.ORDER.TEMPLATE% Mode This parameter can take one of the following values: PRODUCTS – show list of products for each type TYPES – show only list of product types Settings 1st – number of products to show. default is 10. 2nd – sorting order for products: post_date, post_title. 3rd […]

MAIN_IMAGE / IMAGE

Render main image for the product. %IMAGE:SIZE|LINKED.LIGHTBOX.IMAGE% %MAIN_IMAGE:SIZE|LINKED.LIGHTBOX.IMAGE% Size¬†parameter can take one of the following values with default sizes: main: 224 x 224 side: 160 x 256 gallery: 160 x 160 grid: 192 x 192 list: 112 x 112 button: 64 x 64 thumb: 40 x 40 logo: 120 x 48 Also, you can use […]

TAXONOMIES

Render URL to a product. It can be current product, or any product by specified ID. %TAXONOMIES:MODE|TYPE.BLANK.NOTITLE% Mode is used to specify taxonomy to use. If you want to display terms for all taxonomies, mode should be ALL. If not, mode should be the name for the taxonomy. As for the settings, first one specifies […]

PRODUCT

Display product related elements. Depending on the mode, settings can be different. Right now only one mode is implemented. %PRODUCT:LINKS|LIST% Display list of links for the product pages. First setting LIST is used to determine rendering type for the list of links: LI or PIPE (default). Scope This tag works only with the single type […]

DISCUSSION

Render the discussion for the product. This function has no mode or settings. It uses topic ID from the product settings and calls function for rendering: gdpc_render_discussion. %DISCUSSION% Scope This tag works only with the single type templates.

RELATED

Render list of related products. There is no mode for this template, just optional settings %RELATED|TEMPLATE% Template is optional, it has to be for the single product template. Default value is: ‘simple-grid’; Scope This tag works only with the single type templates.

BUTTON

Render button with the product. %BUTTON:MODE% Mode determines the type of the button: COMPARE Scope This tag works only with the single type templates.