
ms3ProductSets
Dynamic product sets for MiniShop3


This page helps choose the right type and understand where products in the set come from.
ms3_product_sets.type runs.hideIfEmpty=true → empty stringhideIfEmpty=false → emptyTpl is rendered| Type | Where to show | When no manual links |
|---|---|---|
buy_together | Product card | Auto by product category |
similar | Product card | Similar from same category |
popcorn | Compact blocks | Auto by category, then general auto |
cart_suggestion | Cart / checkout | Auto by category_id or product category |
auto_sales | Card / cart | By order stats, then similar |
vip | Promo blocks | ms3productsets.vip_set_{set_id} |
auto | Homepage / landings | Auto by category or catalog |
buy_together {'ms3ProductSets' | snippet : [
'type' => 'buy_together',
'resource_id' => $_modx->resource.id,
'max_items' => 6
]}[[!ms3ProductSets?
&type=`buy_together`
&resource_id=`[[*id]]`
&max_items=`6`
]]similar exclude_ids.{'ms3ProductSets' | snippet : [
'type' => 'similar',
'resource_id' => $_modx->resource.id,
'exclude_ids' => $_modx->resource.id,
'max_items' => 8
]}[[!ms3ProductSets?
&type=`similar`
&resource_id=`[[*id]]`
&exclude_ids=`[[*id]]`
&max_items=`8`
]]popcorn {'!ms3ProductSets' | snippet : [
'type' => 'popcorn',
'resource_id' => $_modx->resource.id,
'max_items' => 8,
'tpl' => 'tplPopcorn',
]}[[!ms3ProductSets?
&type=`popcorn`
&resource_id=`[[*id]]`
&max_items=`4`
&tpl=`tplPopcorn`
]]cart_suggestion category_id.{'!ms3ProductSets' | snippet : [
'type' => 'cart_suggestion',
'category_id' => 5,
'resource_id' => 0,
'max_items' => 6
]}[[!ms3ProductSets?
&type=`cart_suggestion`
&category_id=`5`
&resource_id=`0`
&max_items=`6`
]]auto_sales ms3_order_product + ms3_order, statuses 2,4,5).similar.{'!ms3ProductSets' | snippet : [
'type' => 'auto_sales',
'resource_id' => $_modx->resource.id,
'max_items' => 6
]}[[!ms3ProductSets?
&type=`auto_sales`
&resource_id=`[[*id]]`
&max_items=`6`
]]vip vip_set_{set_id}.{'!ms3ProductSets' | snippet : [
'type' => 'vip',
'set_id' => 1,
'max_items' => 8,
'tpl' => 'tplSetVIP'
]}[[!ms3ProductSets?
&type=`vip`
&set_id=`1`
&max_items=`8`
&tpl=`tplSetVIP`
]]auto resource_id=0).{'!ms3ProductSets' | snippet : [
'type' => 'auto',
'category_id' => 5,
'resource_id' => 0,
'max_items' => 12
]}[[!ms3ProductSets?
&type=`auto`
&category_id=`5`
&resource_id=`0`
&max_items=`12`
]]also-bought, cross-sell, custom are supported and handled as auto.