Columns layout

On this page, ASA’s managed template “Columns_layout” is used. It is specialized for displaying multiple products in columns. It works perfectly with ASA 2 collections or smart collections. It is customizable in general and per shortcode.

Contents

Main features

  • Specialized for rendering multiple products in columns
  • Responsive design
  • Adjustable columns count per screen width
  • Customizable without programming skills

Example

This first example is built with the following shortcode:

[asa2_smart_collection cat_slug="demo-products" limit="4" tpl="Columns_layout" orderby="rand" /]
Minions (Blu-ray + DVD + DIGITAL HD)
$9.99
(As of: 2017/10/16 12:45 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Jurassic World [Blu-ray]
$11.99
(As of: 2017/10/16 10:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
The Lord of the Rings: The Motion Picture Trilogy [Blu-ray]
$59.98
(As of: 2017/10/16 11:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Secret Garden: An Inky Treasure Hunt and Coloring Book
$14.36
(As of: 2017/10/16 9:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)

Customization

On ASA 2’s admin page “Templates” you can customize the general options of template “Columns_layout“. These settings will effect every usage of this template.

Shortcode options

Besides the general settings, it is possible to overwrite template options per shortcode.

For example, to show 6 columns on large devices instead the generally configured amount, this shortcode would make the difference:

[asa2_smart_collection tpl="Columns_layout" cols_lg="6" cat_slug="demo-products" /]
Minions (Blu-ray + DVD + DIGITAL HD)
$9.99
(As of: 2017/10/16 12:45 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Jurassic World [Blu-ray]
$11.99
(As of: 2017/10/16 10:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
The Lord of the Rings: The Motion Picture Trilogy [Blu-ray]
$59.98
(As of: 2017/10/16 11:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Secret Garden: An Inky Treasure Hunt and Coloring Book
$14.36
(As of: 2017/10/16 9:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
10-Day Green Smoothie Cleanse
$10.17
(As of: 2017/10/16 12:45 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
If I Can Dream
$9.32
(As of: 2017/10/16 8:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
What's Inside: Songs From Waitress
$9.66
(As of: 2017/10/16 8:45 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Abbey Road
$14.58
(As of: 2017/10/16 12:30 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
The Martian
$10.79
(As of: 2017/10/16 9:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Played in Space: The Best of Something Corporate
$7.39
(As of: 2017/10/16 9:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)

Or to render 2 columns on extra small devices instead of the generally configured amount, use option “cols_sm”:

[asa2_smart_collection tpl="Columns_layout" cols_xs="2" cat_slug="demo-products" /]
Minions (Blu-ray + DVD + DIGITAL HD)
$9.99
(As of: 2017/10/16 12:45 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Jurassic World [Blu-ray]
$11.99
(As of: 2017/10/16 10:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
The Lord of the Rings: The Motion Picture Trilogy [Blu-ray]
$59.98
(As of: 2017/10/16 11:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Secret Garden: An Inky Treasure Hunt and Coloring Book
$14.36
(As of: 2017/10/16 9:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
10-Day Green Smoothie Cleanse
$10.17
(As of: 2017/10/16 12:45 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
If I Can Dream
$9.32
(As of: 2017/10/16 8:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
What's Inside: Songs From Waitress
$9.66
(As of: 2017/10/16 8:45 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Abbey Road
$14.58
(As of: 2017/10/16 12:30 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
The Martian
$10.79
(As of: 2017/10/16 9:00 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
Played in Space: The Best of Something Corporate
$7.39
(As of: 2017/10/16 9:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)

Following you find a list of all available shortcode options for template “Columns_layout”:

item_tpl string custom text Name of the template to use for rendering the single items.
cols_xs int 1 between 99 Number of columns on extra small devices (Phones, <768px)
cols_sm int 1 between 99 Number of columns on small devices (Tablets, ≥768px)
cols_md int 1 between 99 Number of columns on medium devices (Desktops, ≥992px)
cols_lg int 1 between 99 Number of columns on large devices (Desktops, ≥1200px)
gap_xs int 0 between 999 Columns gap in pixels on extra small devices (Phones, <768px)
gap_sm int 0 between 999 Columns gap in pixels on small devices (Tablets, ≥768px)
gap_md int 0 between 999 Columns gap in pixels on medium devices (Desktops, ≥992px)
gap_lg int 0 between 999 Columns gap in pixels on large devices (Desktops, ≥1200px)
custom_css int 0 between 999 Custom CSS. Custom CSS that is applied to all occurrences of this template on a page and is only included once in the source code.

More examples

You can use any template to render the single items. Use option “item_tpl” to set a custom item template.

[asa2_smart_collection tpl="Columns_layout" orderby="rand" limit="6" item_tpl="Horizontal_box" border_width="4" image_size="medium" show_description="no" main_image_slideshow="no" /]
LEGO 75257 Star Wars Millennium Falcon Starship Construction Set &  75300 Star Wars Imperial TIE Fighter Toy with Stormtrooper and Pilot Minifigures
Price: --
(As of: 2023/05/08 12:30 am - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.
)
0 new0 used
(* = affiliate link / image source: Amazon partner program)
Reading People: How Seeing the World through the Lens of Personality Changes Everything
Price: $10.39
(As of: 2017/10/16 1:15 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.com/ at the time of purchase will apply to the purchase of this product.
)
You save: $4.60
32 new from $10.1419 used from $9.52
(* = affiliate link / image source: Amazon partner program)
Eurobike Road Bike 21 Speed Road Bicycle 700C 32 Spoke Wheels Mens Road Bikes Dual Disc Brake Bicycle For Women (49cm Frame)
Price: --
(As of: 2023/05/08 5:00 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.
)
0 new0 used
(* = affiliate link / image source: Amazon partner program)
Knochenschall Kopfhörer, Bluetooth 5.2 Wireless Bone Conduction Kopfhörer, IP67 Wasserfeste Sport Kopfhörer, Open Ear Kopfhörer mit Mikrofon, Knochenschall Kopfhörer für Joggen, Laufen, Radfahren
Preis: 45,56 €
(Stand von: 2023/05/06 8:30 pm - Details
×
Produktpreise und -verfügbarkeit sind zum angegebenen Datum / Uhrzeit korrekt und können sich ändern. Alle Preis- und Verfügbarkeitsinformationen auf https://www.amazon.de/ zum Zeitpunkt des Kaufs gelten für den Kauf dieses Produkts.
)
1 neu von 48,99 €1 gebraucht von 45,56 €
(* = Affiliate-Link / Bildquelle: Amazon-Partnerprogramm)
Myste Technic Star Destroyer Building Blocks for Venator-Class Republic Attack Cruiser, MOC Warship Spaceship Model Construction Set Compatible with Lego Star Wars - 960 Pieces
Price: --
(As of: 2023/01/07 8:30 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.
)
0 new0 used
(* = affiliate link / image source: Amazon partner program)
Das neue Fire HD 8 Kids Pro-Tablet, 8-Zoll-HD-Display, für Kinder von 6 bis 12 Jahren, 30 % schnellerer Prozessor, 13 Stunden Akkulaufzeit, kindgerechte Hülle, 32 GB (2022), Cyber-Welt-Design
Preis: 114,99 €
(Stand von: 2023/05/04 1:30 pm - Details
×
Produktpreise und -verfügbarkeit sind zum angegebenen Datum / Uhrzeit korrekt und können sich ändern. Alle Preis- und Verfügbarkeitsinformationen auf https://www.amazon.de/ zum Zeitpunkt des Kaufs gelten für den Kauf dieses Produkts.
)
Sie sparen: 45,00 € (28%)
1 neu von 114,99 €0 gebraucht
(* = Affiliate-Link / Bildquelle: Amazon-Partnerprogramm)
Mystea Technic Star Destroyer Warship Building Blocks for Imperial Star Destroyer,MOC Spaceship Model Construction Set Compatible with Lego Star Wars - 891 Pieces,35 x 25.5 x 7cm,N00X2ZS1JWJ15K06D48R
Price: £52.98
(As of: 2023/05/07 11:30 pm - Details
×
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on https://www.amazon.co.uk/ at the time of purchase will apply to the purchase of this product.
)
1 new from £52.980 used
(* = affiliate link / image source: Amazon partner program)
Apple 2021 iPad Pro (11", Wi-Fi + Cellular, 1 TB) - Space Grau (3. Generation)
Preis: --
(Stand von: 2023/05/04 6:30 am - Details
×
Produktpreise und -verfügbarkeit sind zum angegebenen Datum / Uhrzeit korrekt und können sich ändern. Alle Preis- und Verfügbarkeitsinformationen auf https://www.amazon.de/ zum Zeitpunkt des Kaufs gelten für den Kauf dieses Produkts.
)
0 neu0 gebraucht
(* = Affiliate-Link / Bildquelle: Amazon-Partnerprogramm)