App Lib v2 Settings

This is a list of all available settings in app lib v2.

1. List of all settings variables

boostPFSConfig

  • Settings of app lib, contains default settings
  • Declared in boost-pfs.js (in the minified library)

boostPFSAppConfig

  • Settings specififc to the store (domain, money format,...)
  • Declared in snippets/boost-pfs.liquid

boostPFSThemeConfig

  • Settings specific to the theme (product per row, layout list/grid)
  • Declared in sections/collection-template.liquid, templates/search.liquid

boostPFSFilterConfig

  • Settings for filter customization
  • Declared in assets/boost-pfs-filter.js

boostPFSInstantSearchConfig

  • Settings for instant search customization
  • Declared in assets/boost-pfs-instant-search.js

All settings will be merged into boostPFSConfig on app init, from top to bottom (the bottom ones will override the top).

You should only modify boostPFSThemeConfig, boostPFSFilterConfig, boostPFSInstantSearchConfig


2. Filter settings

You can set filter settings in boost-pfs-filter.js file, at the begining:

// Override Settings
var boostPFSFilterConfig = {
  general: {
    // Settings list
    limit: boostPFSThemeConfig.custom.products_per_page
    loadProductFirst: true,
    styleScrollToTop: 'style2'
  }
};

For the settings with Have setting in admin: Yes, please change the setting in admin.

2.1. Filter display settings

2.2. Filter API settings


3. Product List Settings


4. Instant Search Settings

You can set instant search settings in boost-pfs-instant-search.js file, at the begining:

// Override Settings
var boostPFSInstantSearchConfig = {
  search: {
    // Settings list
    suggestionPosition: 'left'
  }
};

For the settings with Have setting in admin: Yes, please change the setting in admin.

4.1. Instant Search display settings

4.2. Instant Search API settings