#REM Parameters: #SNIPPET.PagerSetting... name of the pagersetting e.g. "SF_ProductsFourColumns" #SNIPPET.ItemLayoutTemplate... layout template name of the productlistitems #SNIPPET.ShowOnStartPage... layout could be used on startpage Example: #SNIPPET("SNIPPET-FacetsSearchResults", "PagerSetting,ItemLayout,ShowOnStartPage", "SF_ProductsFourColumns", "INC-ListProductFourColumns", 1) #ENDREM #IF(#DEFINED(#SNIPPET.ShowOnStartPage) AND #SNIPPET.ShowOnStartPage AND #Class.Alias EQ "StartPage") #LOCAL("ProductsLoop", #VisibleProducts) #IF(#COUNT(#ProductsLoop))
#LOOP(#ProductsLoop) #INCLUDE(#SNIPPET.ItemLayoutTemplate) #ENDLOOP
#IF(#Shop.PriceTagInfoMultiProductGross OR #Shop.PriceTagInfoMultiProductNet)
* #IF(#DISPLAYPRICETAGINFOGROSS(#Object, #Shop.TaxModel, #Session.User.Object)) #Shop.PriceTagInfoMultiProductGross[0] #ELSE #Shop.PriceTagInfoMultiProductNet[0] #ENDIF
#ENDIF #ENDIF #ENDLOCAL #ELSE #LOCAL("PagerSetting", #PAGER_SETTING(#Shop.Object, #SNIPPET.PagerSetting)) #IF(#Pager.CountOfItems > 0) #INCLUDE("INC-ChangeListOrder") #IF(#Pager.CountOfPages > 1)
#INCLUDE("Pager")
#ENDIF
#LOOP(#Pager.Items) #INCLUDE(#SNIPPET.ItemLayoutTemplate) #ENDLOOP
#IF(#Shop.PriceTagInfoMultiProductGross OR #Shop.PriceTagInfoMultiProductNet)
* #IF(#DISPLAYPRICETAGINFOGROSS(#Object, #Shop.TaxModel, #Session.User.Object)) #Shop.PriceTagInfoMultiProductGross[0] #ELSE #Shop.PriceTagInfoMultiProductNet[0] #ENDIF
#ENDIF #IF(#Pager.CountOfPages > 1) #INCLUDE("Pager")
{PageThis}
#ENDIF
#ENDIF #ENDLOCAL #ENDIF