Jamroom Logo
Newsletter
Member Spotlight
63971
Ranking Argentino de Bandas
"“Ranking Argentino de Bandas” is the official community for argentinian bands looking to share their music with everyone. Jamroom was the solution we were waiting for - the admin interface lets us customize the site completely, and modifying the templates was a quick learning process. The customer support forum is a fantastic way to ask questions and get in touch with other Jamroom users. We are proud to use Jamroom as our music platform."
Follow Jamroom on Twitter!

This document applies to Jamroom 3 only!
For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.

{jr_advert} Index {jr_array}

{jr_also_bought}

Overview:

The {jr_also_bought} template function is used for embedding a "Also Bought" section into your Jamroom templates - i.e. a small area that shows what other Vault Items user's have purchased along with the given Vault ID (i.e. displayed Vault Item).

Usage:

Place the {jr_also_bought} function, along with any additional parameters into a Jamroom Template.

Parameters:

Name Type Required Default Description
vault_id number yes n/a The "vault_id" parameter tells Jamroom which vault_id from the Jamroom Vault Items table it should look for.
template string yes false

The "template" parameter tells Jamroom which skin template to use for creating the output.

cache_seconds number no "20" The "cache_seconds" parameter tells Jamroom how long the generated output will be cached.  Default is "20" meaning 20 seconds.
show number yes n/a The "show" parameter tells Jamroom how many "also bought items" will be displayed.
order_dir string no DESC The "order_dir" parameter allows you to define how the results are ordered.  Default is "DESC" which means "descending", and will order the Also Bought items by the number of total purchases (i.e. how popular the Vault Item is) from highest to lowest.  Use "ASC" to order from lowest to highest.
assign string no n/a The "assign" parameter allows you to have the generated output assigned to a template variable instead of being displayed, to allow for further processing.

Examples:

embedded {jr_also_bought} function call in Jamroom Skin template:

{jr_also_bought vault_id="5" show="5" template="also_bought.tpl" cache_seconds="60"}

{jr_advert} page 127 of 185 {jr_array}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom Core
Jamroom Addons
Jamroom Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2012 Talldude Networks, LLC.