ASA2 - The Amazon Affiliate Plugin for WordPress Logo
1.20.0

Preparations

  • Introduction
  • Requirements
  • Installation
  • Kickstarter Guide for ASA2 Switchers
  • First steps

Main Menu

  • Dashboard
  • Products
  • Shops

Subsections

  • Setup
  • Options
  • Templates
  • Collections
  • Notifications
  • Testsuite
  • Ratings
  • Keywords
  • Import
  • Widgets

Embed Products

  • Product Picker
  • Shortcodes

Templates

  • Managed Templates
    • Administration
    • Book
    • Carousel
      • Main features
      • Demo page
      • Example
      • Global Options
      • Shortcode Options
        • Complete Options List
        • Shortcode Options Examples
    • Columns_layout
    • Flat_box_horizontal
    • Flat_box_vertical
    • Flex_1
    • Horizontal_box
    • Image_Layout_1
    • Image_Layout_Polaroid
    • Movie
    • Music
    • Robust
    • Sortable_table
    • Sortable_table_2
    • Vertical_box
  • Template Syntax
  • Placeholders

Advanced

  • Cronjobs
  • Caching
  • Local images
  • Internationalization (i18n)
  • PHP functions
  • Appendix
ASA2 - The Amazon Affiliate Plugin for WordPress
  • Managed Templates
  • Carousel
  • Back to ASA2

Carousel¶

Table of contents

  • Main features

  • Demo page

  • Example

  • Global Options

  • Shortcode Options

    • Complete Options List

    • Shortcode Options Examples

Carousel example

The managed template “Carousel” is specialized for displaying multiple products in a carousel style. It works perfectly with ASA 2 Collections or smart collections ([asa2_smart_collection]). It is customizable in general and per shortcode.

Main features¶

  • Specialized for rendering multiple products in a carousel style

  • Responsive design

  • Adjustable carousel options

  • Customizable without programming skills

Demo page¶

Carousel gif

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

Carousel demo page

Example¶

Example shortcode:

This example shortcode shows 10 items of category “Coffee maker” filtered by availability in carousel layout.

[asa2_smart_collection cat_slug="coffee-maker" limit="10" tpl="Carousel" is_available_main="true" /]
Carousel example

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.

Note

The globally applied options can be dynamically overwritten via 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 mentioned above, it is also possible to overwrite these settings dynamically in a WordPress shortcode, like this:

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

Take a look at other examples.

Complete Options List¶

Complete list of all options available for the template “Carousel”:

Layout
OptionTypeValuesDescription
adaptiveHeight bool "yes" / "no" Adaptive height. Adapts slider height to the current slide.
centerMode bool "yes" / "no" Center mode. Enables centered view with partial prev/next slides. Use with odd numbered slides counts.
centerPadding string custom text Center padding. Slide padding when in center mode (px or %).
cssEase string custom text CSS3 easing. Utilizes the CSS transition property.
variableWidth bool "yes" / "no" Variable width. Disables automatic slide width calculation.
rtl bool "yes" / "no" RTL. Change the slider's direction to become right-to-left.
Slides
OptionTypeValuesDescription
slidesToShow int 1 between 99 Number of slides to show at a time
slidesToScroll int 1 between 99 Number of slides to scroll at a time
initialSlide int 0 between 999 Initial slide. The slide to start on.
speed int 100 between 9999 Slide transition speed. In milliseconds.
Price
OptionTypeValuesDescription
show_price_disclaimer bool "yes" / "no" Show price disclaimer. "Details" link next to date of last update.
last_update_format string custom text Last item update date format. Used in price disclaimer. Supports PHP date function format. Example: d.m.Y H:i:s
Image
OptionTypeValuesDescription
img_min_height string custom text Image minimum height. CSS value like "100px". Can be used to adjust all items to the same height.
Title
OptionTypeValuesDescription
title_length int 0 between 999 Title max length. Limits the title to a maximum length of characters. 0 for unlimited.
Navigation
OptionTypeValuesDescription
arrows bool "yes" / "no" Next/Prev arrows. Enable Next/Prev navigation arrows.
nav_arrows string
  • "1" (Style 1)
  • "2" (Style 2)
  • "3" (Style 3)
Navigation arrows style
dots bool "yes" / "no" Dots. Show the current slide indicator dots.
infinite bool "yes" / "no" Infinite looping
pauseOnFocus bool "yes" / "no" Pause on focus. Pauses autoplay when slider is focussed.
pauseOnHover bool "yes" / "no" Pause on hover. Pauses autoplay on hover.
pauseOnDotsHover bool "yes" / "no" Pause on dots hover. Pauses autoplay when a dot is hovered.
autoplay bool "yes" / "no" Autoplay. Enables auto play of slides.
autoplaySpeed int 100 between 99999 Auto play change interval. In milliseconds.
Accessibility
OptionTypeValuesDescription
accessibility bool "yes" / "no" Accessibility. Enables tabbing and arrow key navigation.
swipe bool "yes" / "no" Swipe. Enables touch swipe.
touchMove bool "yes" / "no" Touch move. Enables slide moving with touch.
Misc
OptionTypeValuesDescription
lazyLoad string
  • "ondemand" (on demand)
  • "progressive" (progressive)
Lazy load. Accepts "ondemand" or "progressive" for lazy load technique. "ondemand" will load the image as soon as you slide to it, "progressive" loads one image after the other when the page loads.
carousel_behavior string
  • "slick-carousel" (slick carousel)
Carousel behavior. This can not be changed yet.
custom_css string
  • "slick-carousel" (slick carousel)
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.

Shortcode Options Examples¶

// to activate autoplay:
[asa2_smart_collection autoplay="yes" cat_slug="demo-products" tpl="Carousel" /]

// to show 6 slides instead the preset 3 slides
[asa2_smart_collection slidesToShow="6" cat_slug="demo-products" tpl="Carousel" /]
Next Previous

Get ASA2

 

© Copyright 2024, getasa2.com.

Sphinx theme provided by Read the Docs