Options
Fast Simon AC support customization options via JS variable object __fast_options
.
Available Options
Option | Description | Type |
---|---|---|
"with_product_attributes" | Include product attributes | boolean |
"with_product_variants" | Include product variants | boolean |
"max_ac_products_mobile" | Set max products at AC on mobile | number |
"max_ac_products_tablet" | Set max products at AC on tablet | number |
"max_ac_products_desktop" | Set max products at AC on desktop | number |
"display_popular_on_empty_term" | Display popular on empty term | boolean |
"display_popular_on_no_results" | Display popular on no results | boolean |
"mobileMedieaQuery" | Set mobile breakpoint | {maxWidth: number} |
"tabletMedieaQuery" | Set tablet breakpoint | {minWidth: number, maxWidth: number} |
"desktopMedieaQuery" | Set desktop breakpoint | {minWidth: number} |
"full_spa" | Set full spa | boolean |
"forceOpenAlways" | Set open always | boolean |
"is_chatbot" | Query if chatbot | boolean |
"fs_avoid_inject_on_interaction" | Inject AC script immediately or on interaction (just for Shopify) | boolean |
How to add custom options:
Add the __fast_options variable to your HTML head within a script tag, for example:
<script>
var __fast_options = __fast_options || {};
__fast_options.max_ac_products_desktop = 5;
__fast_options.max_ac_products_tablet = 3;
__fast_options.max_ac_products_mobile = 2;
__fast_options.with_product_attributes = true;
</script>