Skip to content
ms3ProductSets
ms3ProductSets
Dynamic product recommendations for MiniShop3 — manual links, auto rules, manager templates
  1. Extras
  2. ms3ProductSets
  3. System settings

System settings

All settings use the ms3productsets. prefix and are in namespace ms3productsets.

Where to edit: System → System Settings — filter by namespace ms3productsets.

Settings table

SettingDescriptionDefaultRecommendations
ms3productsets.max_itemsDefault product limit per set10Typically 6–20 for storefront blocks; snippet property max_items overrides. Used by the snippet, get_set connector, and mspsLexiconScript.
ms3productsets.cache_lifetimeSet cache TTL (seconds). 0 disables cache. Cache key: type, resource_id, category_id, set_id, limit, exclude_ids3600Production: > 0 (often 3600); debugging or frequent set edits — 0. Caches msps_get_products_by_type via cacheManager.
ms3productsets.auto_recommendationWhen 0, empty manual set returns empty (no auto similar, buy_together, etc.); when 1, fallback to the type’s auto logic10 — only manual links (admin/TV) and vip_set_* fallback for vip; category- and order-based auto are off.
ms3productsets.vip_set_1Product IDs for VIP set when set_id=1 (comma-separated, e.g. 12,34,56)''Fallback for type=vip when there are no manual links. More sets: add vip_set_2, vip_set_3, etc., and pass set_id in ms3ProductSets.

Area in the MODX manager

In the transport package all keys use area default (one group in System Settings). Logical grouping:

GroupKeys
Limitsmax_items
Cachecache_lifetime
Behaviorauto_recommendation
VIP setsvip_set_1 (optionally vip_set_2, vip_set_3, …)

Recommendations

  • max_items: product cards and similar blocks often 6–12; wider shelves up to 20.
  • cache_lifetime: align with how often sets change and with traffic; with 0 every request recomputes output.
  • auto_recommendation: use 0 when only explicit links and VIP settings should appear.
  • Multiple VIP sets: add system settings ms3productsets.vip_set_2, etc., same pattern as vip_set_1, and set &set_id on the snippet.