#IF(NOT #IsMobile) #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "TrustedShops")) #IF(#DisplayFeature NE "NotVisible" AND #System.TrustedShops_ShowTrustbadge AND #Shop.TrustedShopsShowTrustbadge) #LOCAL("Certificate", #Shop.TrustedShopsCertificate) #LOCAL("HasValidCertificate", 0) #IF(#DEFINED(#Certificate) AND #IS_TSID_STATUS_SHOWABLE_AT_SF(#Certificate.CertificateStatus)) #SET("HasValidCertificate", 1) #ENDIF #REM #ENDREM #IF(#HasValidCertificate AND NOT(#INPUT.IsEditorModeEnabled) AND #Certificate.IsExcellence) #SET("HasValidCertificate", 0) #LOOP(#Certificate.ProtectionItems) #IF(#CurrencyID EQ #INPUT.Currency)#SET("HasValidCertificate", 1)#ENDIF #ENDLOOP #ENDIF #IF(#HasValidCertificate OR #INPUT.IsEditorModeEnabled) #ENDIF #ENDLOCAL #ENDLOCAL #ENDIF #ENDLOCAL #ENDIF