Skip to content

Sortable_table

Sortable_table example

The managed template "Sortable_table" is specialized for displaying multiple products in a sortable table. It works perfectly with ASA 2 collections or smart collections. It is customizable in general and per shortcode.

Main features

  • Specialized for rendering sortable tables with multiple products
  • Responsive design
  • Customizable without programming skills

INFO

Template "Sortable_table" does not yet work with AJAX mode.

Demo page

To see this template in action with different examples, please refer to the demo page:

🚀 Sortable_Table Demo & Examples

Example

Example shortcode:

twig
[asa2_smart_collection tpl="Sortable_table" cat_slug="no-contract-cell-phones" orderby="rating" limit="5" /]

Global Options

On ASA 2's admin page "Templates" you can open a customization context window for each managed template. Just hover the mouse cursor over a template row and click the link "Customize" to open it. These settings will effect the appearance of this template.

INFO

The globally applied options can be dynamically overwritten via shortcode options <#shortcode-options>.

The following screenshot illustrates the options window by means of the "Book" template:

Template customization

Shortcode Options

In addition to the global options <#global-options> mentioned above, it is also possible to overwrite these settings dynamically in a WordPress shortcode, like this:

html
// general syntax:
[asa2 option="value"]ASIN[/asa2]

Take a look at other examples <#shortcode-options-examples>.

Complete Options List

Complete list of all options available for this template:

Shortcode Options Examples

twig
// to show the medium image instead the generally configured
[asa2_smart_collection tpl="Sortable_table" image_size="medium" cat_slug="demo-products" /]

// to link the shop button to the buy page instead of the generally configured shop page
[asa2_smart_collection tpl="Sortable_table" button_target="buy" cat_slug="demo-products" /]

ASA2 - The Amazon Affiliate Plugin for WordPress