Base Tag Library


Generates a list of random active & approved products


[%random_products category:'0' template:'' limit:'10'%]
    [%param *header%]
        <h4>Random Products</h4>
    [%param *footer%]


The random products tag generates a list of random products, based on the category parameter. By setting this to 0, the home category, it is random across your entire library.

For more information about the product templates, see the thumb list tag

random_products Parameters

Name Options Description
limit:'' Integer Limit the results
category:'' Category ID The ID of the category you'd like to draw the random product list from
template:'' Name of the template without the .template.html Loads the template specified. If there is no value, it will load the default product template
header HTML & b@se tags Renders a single usable space above the body
body* HTML & b@se tags Runs an array for result
footer HTML & b@se tags Renders a single usable space below the body
ifempty:'' HTML & b@se tags If the random_products returns no results, it'll load this block instead