#set ( $item = $storeeditor.getCurrentItem() ) #set ( $distributor = $userprofile.distributor ) #set ( $searcher = $store.getProductSearcher() ) #set ( $query = $searcher.createSearchQuery() ) #set ( $null = $query.addMatches("distributor",$distributor)) #set ( $null = $query.addNot("producttype","coupon")) #set ( $null = $query.addMatches("active","true")) #set ( $types = $searcher.search($query))