#IF(#FormError)
{InputError}
#IF(#FormErrors.Reason.CanNotDeleteDefault)
{CanNotDeleteDefault}
#ELSIF(#OBJECT_EXISTS)
{ObjectExists}
#ELSIF(#FormErrors.Reason.SETTINGS_INCOMPLETE)
{PaymentSettingsIncomplete}
#ELSE
{PleaseCorrectErrors}
#ENDIF
#ENDIF
#IF(#DELETE)
{AcceptAction}
#LOOP(#DeleteObjects)
#ENDLOOP
#ELSE
#IF(#FeatureMaxValueReached)
#IF(#DEFINED(#FeatureName) AND #FeatureName EQ "PaymentMethods")
{Notification}
{NoNewPaymentMethod}
{FeatureMaxValuePaymentMethods} #Shop.FeatureMaxValue.PaymentMethods
#INCLUDE("FeaturePromotion")
#ELSE
{CouldNotCreatepaymentMethod}
#ENDIF
#ELSIF(#COUNT(#PaymentMethods) >= #Shop.FeatureMaxValue.PaymentMethods)
{Notification}
{FeatureMaxValueReached}
{FeatureMaxValuePaymentMethods} #Shop.FeatureMaxValue.PaymentMethods
#INCLUDE("FeaturePromotion")
#ELSIF(#NoSecondInstanceAllowed)
{Notification}
{NoSecondInstanceAllowed}
#ENDIF
#ENDIF
#IF(#INVISIBLE_DEFAULT)
{DeactivateDefault}
#ENDIF
#IF(NOT #DELETE)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions",1)
#ENDIF
|
{Provider} |
{PaymentMethod} |
{NameInShop} |
{IsDefault} |
{Position} |
|
#IF(#DELETE)
#LOOP(#DeleteObjects)
|
#IF(#PaymentType.Icon)
#ELSE
#ENDIF
#IF(#PaymentType.Provider) #PaymentType.Provider #ELSE #PaymentType.NameOrAlias #ENDIF
|
#REM#ENDREM
#IF(#Class.Package[substr:0:23] EQ "DE_EPAGES::PaymentTypes")#NameOrAlias#ELSE#Alias#ENDIF
|
#NameOrAlias |
|
#Position |
#ENDLOOP
#ELSE
#LOOP(#PaymentMethods)
|
#LOCAL("PaymentName","")
#IF(#PaymentType.Provider) #SET("PaymentName",#PaymentType.Provider) #ELSE #SET("PaymentName",#PaymentType.NameOrAlias) #ENDIF
#IF(#PaymentType.Icon)
#ELSE
#LOCAL("PaymentNameInUse","")
#IF(#PaymentName EQ #Alias)
#SET("PaymentNameInUse",#PaymentName)
#ELSE
#SET("PaymentNameInUse",#Alias)
#ENDIF
#ENDLOCAL
#ENDIF
#IF(#PaymentType.Provider) #PaymentType.Provider #ELSE #PaymentType.NameOrAlias #ENDIF
#ENDLOCAL
|
#REM#ENDREM
#IF(#Class.Package[substr:0:23] EQ "DE_EPAGES::PaymentTypes")#NameOrAlias#ELSE#Alias#ENDIF
#IF(NOT #UsableAtStorefront)
{DoComplete}
#ENDIF
#IF(#COUNT(#CustomerGroups))
#ENDIF
#IF(#Region)
#ENDIF
|
#NameOrAlias |
|
|
#ENDLOOP
#LOCAL("CantAddNewMethod", 1)
#IF(#COUNT(#PaymentMethods) < #Shop.FeatureMaxValue.PaymentMethods)
#SET("CantAddNewMethod", 0)
#ENDIF
|
|
#LOCAL("MyNewPaymentTypeID",#NewPaymentTypeID OR #INPUT.NewPaymentTypeID)
#ENDLOCAL
|
|
|
|
#ENDLOCAL
#ENDIF
#IF(#DELETE)
#ELSE
#ENDIF
#ENDBLOCK