#IF(#FormError)
{InputError}
{PleaseCorrectErrors}
#ENDIF
#LOCAL("ViewProductsAvailable", #FeaturedActionAvailable(#Shop.Object, "MBO-ViewProducts", "Products"))
#LOCAL("ViewChildObjectsAvailable", #FeaturedActionAvailable(#Shop.Object, "MBO-ViewChildObjects", "Subcategories"))
|
{AssignedCategories} |
{Position} |
|
#LOCAL("Sum", 0)
#IF(#SuperProduct)
#LOCAL("SuperProductCategories", #SuperProduct.CategoryProductMaps)
#LOCAL("CountSuperProductCategories", #COUNT(#SuperProductCategories))
#LOOP(#SuperProductCategories)#SET("Sum", #Sum+1)
#WITH(#Category)
|
#IF(NOT #INPUT.PopUp)
#IF(#IsVisible)
#ELSE
#ENDIF
#JOIN("/", #PathFromSite)#NameOrAlias#ENDJOIN
#ELSE
#JOIN("/", #PathFromSite)#NameOrAlias#ENDJOIN
#ENDIF
#IF(#ViewProductsAvailable EQ "NotAssigned" OR #ViewProductsAvailable EQ "Allowed")
#ENDIF
#IF(#ViewChildObjectsAvailable EQ "NotAssigned" OR #ViewChildObjectsAvailable EQ "Allowed" AND #COUNT(#CONTENT_CHILD_CLASSES(#Shop.Object,#Class.Object,#Object)))
#ENDIF
#IF(#ItemNo == 0)({DisplayInBradcrumb})#ENDIF
|
#ENDWITH
|
#ENDLOOP
#LOCAL("ProductID", #ID)#LOOP(#CategoryProductMaps)#IF(#Product.ID == #ProductID)#SET("Sum", #Sum+1)
#WITH(#Category)
|
#IF(NOT #INPUT.PopUp)
#IF(#IsVisible)
#ELSE
#ENDIF
#JOIN("/", #PathFromSite)#NameOrAlias#ENDJOIN
#ENDIF
#IF(#ViewProductsAvailable EQ "NotAssigned" OR #ViewProductsAvailable EQ "Allowed")
#ENDIF
#IF(#ViewChildObjectsAvailable EQ "NotAssigned" OR #ViewChildObjectsAvailable EQ "Allowed" AND #COUNT(#CONTENT_CHILD_CLASSES(#Shop.Object,#Class.Object,#Object)))
#ENDIF
#IF((#ItemNo + #CountSuperProductCategories) == 0)({DisplayInBradcrumb})#ENDIF
|
#ENDWITH
#BLOCK("WITH_FORM_ERROR", #FormError)
#ENDBLOCK
|
#ENDIF#ENDLOOP#ENDLOCAL
#IF(NOT #CountSuperProductCategories AND NOT #COUNT(#SubProductCategories))
|
{ProductNotAssigned} |
|
#ENDIF
#ENDLOCAL
#ENDLOCAL
#ELSE
#LOOP(#CategoryProductMaps)#SET("Sum", #Sum+1)
#WITH(#Category)
|
#IF(#IsVisible)
#ELSE
#ENDIF
#JOIN("/", #PathFromSite)#NameOrAlias#ENDJOIN
#IF(#ViewProductsAvailable EQ "NotAssigned" OR #ViewProductsAvailable EQ "Allowed")
#ENDIF
#IF(#ViewChildObjectsAvailable EQ "NotAssigned" OR #ViewChildObjectsAvailable EQ "Allowed" AND #COUNT(#CONTENT_CHILD_CLASSES(#Shop.Object,#Class.Object,#Object)))
#ENDIF
#IF(#ItemNo == 0)({DisplayInBradcrumb})#ENDIF
|
#ENDWITH
#BLOCK("WITH_FORM_ERROR", #FormError)
#ENDBLOCK
|
#ENDLOOP
#IF(NOT #COUNT(#Categories))
|
{ProductNotAssigned} |
|
#ENDIF
#ENDIF
#IF(#Sum==1)#ENDIF
#ENDLOCAL
#IF(#Shop.CategoriesTotal < 51)
|
|
#ENDIF
#IF(NOT (#Shop.CategoriesTotal >= 51))
#ELSE
{CategoryBrowser}
#LOCAL("TempCategoryObject",0)
#LOCAL("ProductID", #ID)
#IF(#DEFINED(#ActiveCategory))#SET("TempCategoryObject",#ActiveCategory)
#ELSE#SET("TempCategoryObject",#Shop.Categories)
#ENDIF
#WITH(#TempCategoryObject)
{Path}: #JOIN("/", #PathFromSite) #NameOrAlias #ENDJOIN
#ENDWITH
#ENDLOCAL
#ENDLOCAL
#ENDIF
{TipsAndTricks}
{SortOrderInfo0}
- {SortOrderInfo1}
- {SortOrderInfo2}
#ENDLOCAL
#ENDLOCAL
#IF(#INPUT.PopUp)