Skip to content
ms3ProductSets
ms3ProductSets
Dynamic product recommendations for MiniShop3. Manual links, auto rules, manager templates
  • MODX 3
  • PHP 8.1
  • miniShop3
  1. Extras
  2. ms3ProductSets
  3. Snippets
  4. mspsLexiconScript

Snippet mspsLexiconScript ​

Adds lexicon and config for productsets.js to the page.

After the call:

  • window.mspsLexicon: empty, added, add_failed, removed, set_added, go_catalog, error
  • window.mspsConfig: maxItems, lang, toastTimeout (4000), toastPosition (topRight)

Include before productsets.js.

Parameters ​

The snippet has no required parameters. It uses current cultureKey and setting ms3productsets.max_items.

Usage ​

fenom
{'mspsLexiconScript' | snippet}
modx
[[!mspsLexiconScript]]