#IF(#INPUT.ChangeAction EQ "End")
{Ended}
#ENDIF
#IF(#Listing_OK)
{Listed}
#ELSIF(#Listing_NOK)
{ListingFailed}
{PleaseVerifyAccess}
#ENDIF
#IF(#OnlineStatus == 1)
#IF(#DEFINED(#ErrorMessages))
{ListingFailed}
{PleaseCorrectErrors}
#IF(#DEFINED(#ErrorMessage))
#ENDIF
#ENDIF
#ENDIF
#IF(NOT #PortalConfig.IsSettingsComplete)
#ENDIF
#REM Only regular products or child products can be assigned #ENDREM
#IF((NOT #COUNT(#Product.SubProducts)) OR (#Product.SuperProduct))
#INCLUDE("AssignForm")
#ELSE
#ENDIF
#REM Show detail form for super products and PSIN-assigned regular products. #ENDREM
#IF (#PSIN OR ((#COUNT(#Product.SubProducts)) AND NOT(#Product.SuperProduct)))
#INCLUDE("DetailForm")
#ENDIF
#ENDWITH_ERROR