#LOCAL("DisablePromotionalProducts", 0)#IF(NOT #Shop.FeatureMaxValue.PromotionProducts OR NOT #EXISTSCHILD(#Shop.Categories.Object, "SpecialOffers"))#SET("DisablePromotionalProducts", 1)#ENDIF
#LOCAL("DisableStartPageProducts", 0) #IF(#Shop.Categories.ProductCount NEQ 0 AND NOT #FB_PageID)#SET("DisableStartPageProducts", 1)#ENDIF
#LOCAL("ShowOnStartPage", 1)
#IF(#FB_PageID AND NOT #FacebookStartPageProducts)#SET("ShowOnStartPage", 0)#ENDIF
#IF(#DisableStartPageProducts AND NOT #DisablePromotionalProducts)#SET("ShowOnStartPage", 0)#ENDIF