Skip to main content

Options

Fast Simon AC support customization options via JS variable object __fast_options.

Available Options

OptionDescriptionType
"with_product_attributes"Include product attributesboolean
"with_product_variants"Include product variantsboolean
"max_ac_products_mobile"Set max products at AC on mobilenumber
"max_ac_products_tablet"Set max products at AC on tabletnumber
"max_ac_products_desktop"Set max products at AC on desktopnumber
"display_popular_on_empty_term"Display popular on empty termboolean
"display_popular_on_no_results"Display popular on no resultsboolean
"mobileMedieaQuery"Set mobile breakpoint{maxWidth: number}
"tabletMedieaQuery"Set tablet breakpoint{minWidth: number, maxWidth: number}
"desktopMedieaQuery"Set desktop breakpoint{minWidth: number}
"full_spa"Set full spaboolean
"forceOpenAlways"Set open alwaysboolean
"is_chatbot"Query if chatbotboolean
"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>