Skip to content

Instantly share code, notes, and snippets.

@philcon93
Created October 18, 2017 23:31
Show Gist options
  • Save philcon93/bef1b60ba6756394047f2c076ec3f708 to your computer and use it in GitHub Desktop.
Save philcon93/bef1b60ba6756394047f2c076ec3f708 to your computer and use it in GitHub Desktop.
Filter out product groups

Filter out product groups

B@se

Item Groups are used for specifying the minimum order quantity, the minimum spend amount and the minimum order multiplier for a group of products. You can add items to an item group from an items edit page.

But it can also be used to exclude from thumb_lists so it doesn't display on home/category pages. This could be useful as you might want a product to be only sold as a promotion or upsell. So you would want to hide ot from the home/category/search and then ensure on the product page for these products it doesn't have add to cart functionality.

Note that the Advanced Product addon must be activated in order for this to work.

To do this we need to add a parameter to our thumb_list, filter_itemgroup

Example

[%thumb_list type:'products' template:'main' limit:'4' sortby:'top_sellers' filter_itemgroup:'0,1,2'%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment