Generates a list of recently viewed products in a session


[%product_history limit:'10' template:'default'%]
    [%param header%]
        <h4>Browsing History</h4>
    [%param footer%]


The product_history tag generates a list of products that the user has viewed the product page of during their session based on the limit. The limit paramater must be in place for the tag to work and the session length will depend on a number of different factors. Sessions are also tied to the user account, so this tag will persist through different sessions if the user views items while logged in.

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

product_history Parameters

Name Options Description
limit:'' Integer The limit of products stored in the history, the limit must be at least 1
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 product_history returns no results, it'll load this block instead

Was this article useful?

Be notified when this page is updated. Optional.