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 2: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 12: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.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 1: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.
)
Secret Garden: An Inky Treasure Hunt and Coloring Book
$14.36
(As of: 2017/10/16 11: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 2: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 12: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.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 1: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.
)
Secret Garden: An Inky Treasure Hunt and Coloring Book
$14.36
(As of: 2017/10/16 11: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 2: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 10: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 10: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 2: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 11: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 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.
)

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 2: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 12: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.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 1: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.
)
Secret Garden: An Inky Treasure Hunt and Coloring Book
$14.36
(As of: 2017/10/16 11: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 2: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 10: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 10: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 2: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 11: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 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.
)

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)
structured_data string
  • "none" (None)
  • "json_ld" (JSON-LD format)
Structured Data. Include structured data at the end of the template
custom_css string
  • "none" (None)
  • "json_ld" (JSON-LD format)
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" /]
The North Face - Women's Resolve Jacket - Waterproof and Breathable Hiking Jacket, Aviator Navy, XL
Price: £100.00
(As of: 2023/05/07 9: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 £100.000 used
(* = affiliate link / image source: Amazon partner program)
De'Longhi ECAM 25.120.B Kaffeevollautomat mit Profi-Milchaufschäumdüse für Cappuccino, mit Espresso- und Kaffee Direktwahltasten und Drehregler, 2-Tassen-Funktion, Großer 1,8 Liter Wassertank, Schwarz
Preis: 290,76 €
(Stand von: 2023/05/07 3:00 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.
)
0 neu2 gebraucht von 290,76 €
(* = Affiliate-Link / Bildquelle: Amazon-Partnerprogramm)
Microsoft Surface Go 3, 10 Zoll 2-in-1 Tablet (Intel Pentium Gold, eMMC, Windows 11 Home S) Platin 4GB RAM + 64GB SSD
Preis: 283,49 €
(Stand von: 2023/05/04 9: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.
)
Sie sparen: 60,00 € (14%)
11 neu von 379,00 €20 gebraucht von 283,49 €
(* = Affiliate-Link / Bildquelle: Amazon-Partnerprogramm)
Canon EOS 2000D Spiegelreflexkamera (24,1 MP, DIGIC 4+, 7,5 cm (3,0 Zoll) LCD, Display, Full-HD, WIFI, APS-C CMOS-Sensor) mit 2 Objektiven EF-S 18-55mm IS II F3.5-5.6 IS II + EF 50mm F1.8 STM schwarz
Preis: 559,00 €
(Stand von: 2023/05/06 9: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: 78,86 € (12%)
7 neu von 559,00 €1 gebraucht von 599,99 €
(* = Affiliate-Link / Bildquelle: Amazon-Partnerprogramm)
LEGO 10 New Battle Droid Minifig Lot Star Wars Figures Minifigures Clone Guns
Price: £42.22
(As of: 2023/05/06 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.
)
7 new from £42.220 used
(* = affiliate link / image source: Amazon partner program)
LUDOS AURIS Kopfhörer In Ear Kopfhörer mit Kabel und Mikrofon, 5 Jahre Garantie, Sports, Headset mit Lautstärkeregler, Geräuschisolierung, Headphones für Handy, iPhone, iPad, Samsung, Huawei, PC
Preis: --
(Stand von: 2023/05/07 1:01 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)
Battery for Echo Dot 4th & 5th Generation - Portable Battery Wireless Battery Station (Without Speaker) (Blue Grey)
Price: £35.22
(As of: 2023/05/08 6: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.
)
1 new from £35.220 used
(* = affiliate link / image source: Amazon partner program)
Apple iPhone 12 Mini, 256GB, Purple - Unlocked (Renewed Premium)
Price: --
(As of: 2023/05/04 4:01 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)