#IF(#Shop.FeatureMaxValue.ItemEntryForm) #LOCAL("Add2BasketLinkVersion", "AddToBasket") #IF(NOT #Session.User OR #Session.User.IsAnonymous) #IF(#Shop.LoginRequired2Order) #SET("Add2BasketLinkVersion", "RegistrationLink") #ENDIF #ELSE #LOCAL("Customer", #FUNCTION("GetCustomerForUserID", #Session.User.ID, #Shop.ID)) #IF(NOT #Customer) #IF(#Shop.LoginRequired2Order) #SET("Add2BasketLinkVersion", "RegistrationLink") #ENDIF #ELSIF(NOT #Customer.IsDoOrderAllowed) #SET("Add2BasketLinkVersion", "NotAllowForCustomer") #ENDIF #ENDLOCAL #ENDIF #IF(#Add2BasketLinkVersion EQ "RegistrationLink") #REM #ENDREM {AddToBasketNotAllowedForUnregistered}
{RegisterNow}
#ELSIF(#Add2BasketLinkVersion EQ "NotAllowForCustomer") #REM #ENDREM {AddToBasketNotAllowedForAccount} #ELSE #REM #ENDREM #ENDIF #ENDLOCAL #ELSE #ENDIF