#LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "DHL")) #IF(#DisplayFeature NE "NotVisible") #IF(#DisplayFeature NE "Allowed") #ELSE #LOCAL("DHLTOSAccepted","0") #LOOP(#Shop.ShippingMethods) #IF(#Class.Alias EQ "ShippingMethodDHL") #IF(#AcceptTOS EQ "1") #SET("DHLTOSAccepted","1") #ENDIF #ENDIF #ENDLOOP #IF(#DHLTOSAccepted EQ "1") #ELSE #ENDIF #ENDLOCAL #ENDIF #ENDIF #ENDLOCAL