#IF(#INPUT.Page)
#ENDIF#IF(#INPUT.PageSize)
#ENDIF#IF(#INPUT.OrderBy)
#ENDIF#IF(#INPUT.OrderDesc)
#ENDIF
#IF(#FormError)
{InputError}
#IF(#FormErrors.Reason.ERROR_INVALIDPRODUCT)
{InvalidProduct}
#ELSE
{PleaseCorrectErrors}
#ENDIF
#ENDIF
#LOCAL("LocalCategoryProductMaps", #CategoryProductMaps)
#LOCAL("CountCategoryProductMaps",#COUNT(#LocalCategoryProductMaps))
#IF(#Class.Alias EQ "Category" AND #CountCategoryProductMaps AND #System.Child.Groups.Child.Everyone.ID != #ReadPermissionFor)
#REM #ENDREM
#LOCAL("GroupName","")
#WITH(#System.Child.Groups.Child.Registered)
#IF(#ReadPermissionFor EQ #ID)#SET("GroupName","{RegisteredUsersOnly}")#ENDIF
#ENDWITH
#WITH(#Shop.Child.Groups.Child.Merchants)
#IF(#ReadPermissionFor EQ #ID)#SET("GroupName","{AdministratorsOnly}")#ENDIF
#ENDWITH
#LOCAL("UserGroups", #GREP(#Shop.Child.Groups.ChildObjects, "Alias", "Merchants", "NE"))
#IF(#COUNT(#UserGroups) > 0)
#LOOP(#UserGroups)
#IF(#ReadPermissionFor EQ #ID)#SET("GroupName","{UserGroup}: ".#NameOrAlias)#ENDIF
#ENDLOOP
#ENDIF
#ENDLOCAL
{LimitedAccessToCategory} ({ReadPermissionFor}: "#GroupName")
{ProductAccessNotLimited}
#ENDLOCAL
#ENDIF
#BLOCK("PagerProducts", #LocalCategoryProductMaps)
#IF(NOT #DELETE)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions")
#ENDIF
#INCLUDE("INC-PagerHeader")
#IF(NOT #CountCategoryProductMaps)
|
#ELSE
|
{SKU} |
{Name} |
{ListPrice} |
{StockLevel} |
{Position} |
#ENDIF
|
#IF(NOT #CountCategoryProductMaps)
{NoCategoryProducts} |
|
|
#ELSE
#LOCAL("CurrencyID",#Shop.CurrencyID)
#LOOP(#Pager.Items)
|
#WITH(#Product)#LOCAL("ListPrice", #LISTPRICE(#Object, #Shop.CurrencyID, #Shop.InputTaxModel, 1))
#INCLUDE("INC-ProductIcon")
#Alias[slice:30,html] #INCLUDE("ProductAdditionalListInfo")
|
#IF(#IsNew OR #DefaultSubProduct.IsNew)
#ENDIF
|
|
#IF(#SuperProduct)(#JOIN(", ",#VariationTypeValues)#LOCAL("AttributeValue",#GET(#Attribute.Alias))#AttributeValue.ValueOrAlias#ENDLOCAL#ENDJOIN)#ELSE#Name#ENDIF |
#ListPrice[money] |
#IF(#DEFINED(#StockLevel))#IF(#StockLevel NE "")#StockLevel[float]#ELSE #ENDIF#ENDIF |
#ENDLOCAL#ENDWITH
#BLOCK("WITH_FORM_ERROR", #FormError)
#ENDBLOCK
|
#ENDLOOP
#ENDLOCAL
|
|
|
#ENDIF
#ENDBLOCK
#ENDLOCAL
#ENDLOCAL