#LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "Accessory"))#IF(#DisplayFeature NE "NotVisible") #IF(#Shop.FeatureMaxValue.Accessory) #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "Accessory"))#IF(#DisplayFeature NE "NotVisible") {Accessory} #IF(#SuperProduct) (#CALCULATE(#COUNT(#SuperProduct.Accessory)+#COUNT(#SubProductAccessory))) #ELSE (#COUNT(#Accessory)) #ENDIF #ENDIF#ENDLOCAL #ELSE #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "Accessory"))#IF(#DisplayFeature NE "NotVisible") {Accessory} #ENDIF#ENDLOCAL #ENDIF #ENDIF#ENDLOCAL #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "ManualCrossSelling"))#IF(#DisplayFeature NE "NotVisible") #IF(#Shop.FeatureMaxValue.ManualCrossSelling) {Complementaries} #IF(#SuperProduct) (#CALCULATE(#COUNT(#SuperProduct.CrossSelling)+#COUNT(#SubProductCrossSelling))) #ELSE (#COUNT(#CrossSelling)) #ENDIF #ELSE {Complementaries} #ENDIF #ENDIF#ENDLOCAL #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "ProductComparison"))#IF(#DisplayFeature NE "NotVisible") #IF(#Shop.FeatureMaxValue.ProductComparison) {ProductComparison} #IF(#SuperProduct) (#CALCULATE(#COUNT(#SuperProduct.ProductComparison)+#COUNT(#SubProductComparison))) #ELSE (#COUNT(#ProductComparison)) #ENDIF #ELSE {ProductComparison} #ENDIF #ENDIF#ENDLOCAL {References} (#CALCULATE(#COUNT(#IncludedInBundles) + #COUNT(#IncludedInAccessory) + #COUNT(#IncludedInComplementary) + #COUNT(#IncludedInProductComparison)))
#IF(#FormError AND #FormErrors.Form.Accessory) #IF(#FormErrors.Reason.ERROR_INVALIDPRODUCT)

{InputError}

{InvalidProduct}
#ELSE

{InputError}

{PleaseCorrectErrors}
#ENDIF #ENDIF
#IF(#SuperProduct) #LOOP(#SuperProduct.Accessory) #WITH(#TargetProduct) #ENDWITH #ENDLOOP #LOOP(#SubProductAccessory) #WITH(#TargetProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.Accessory)) #ENDBLOCK #ENDLOOP #IF ((#COUNT(#SubProductAccessory) + #COUNT(#SuperProduct.Accessory)) == 0) #ENDIF #ELSE #LOOP(#Accessory) #WITH(#TargetProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.Accessory)) #ENDBLOCK #ENDLOOP #IF (#COUNT(#Accessory) == 0) #ENDIF #ENDIF
{SKU} {Name} {Remark} {Position}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #LOOP(#Shop.Languages) #WITH_LANGUAGE(#LanguageID)
#Native
#ENDWITH_LANGUAGE #ENDLOOP
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #LOOP(#Shop.Languages) #WITH_LANGUAGE(#LanguageID)
#Native
#ENDWITH_LANGUAGE #ENDLOOP
{NoAccessory}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #LOOP(#Shop.Languages) #WITH_LANGUAGE(#LanguageID)
#Native
#ENDWITH_LANGUAGE #ENDLOOP
{NoAccessory}
{BubbleHelpBothWayRefAccessory}
#IF(#FormError AND #FormErrors.Form.CrossSelling) #IF(#FormErrors.Reason.ERROR_INVALIDPRODUCT)

{InputError}

{InvalidProduct}
#ELSE

{InputError}

{PleaseCorrectErrors}
#ENDIF #ENDIF
#IF(#SuperProduct) #LOOP(#SuperProduct.CrossSelling) #WITH(#TargetProduct) #ENDWITH #ENDLOOP #LOOP(#SubProductCrossSelling) #WITH(#TargetProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.CrossSelling)) #ENDBLOCK #ENDLOOP #IF ((#COUNT(#SubProductCrossSelling) + #COUNT(#SuperProduct.CrossSelling)) == 0) #ENDIF #ELSE #LOOP(#CrossSelling) #WITH(#TargetProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.CrossSelling)) #ENDBLOCK #ENDLOOP #IF (#COUNT(#CrossSelling) == 0) #ENDIF #ENDIF
{SKU} {Name} {Remark} {Position}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #LOOP(#Shop.Languages) #WITH_LANGUAGE(#LanguageID)
#Native
#ENDWITH_LANGUAGE #ENDLOOP
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #LOOP(#Shop.Languages) #WITH_LANGUAGE(#LanguageID)
#Native
#ENDWITH_LANGUAGE #ENDLOOP
{NoComplementary}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #LOOP(#Shop.Languages) #WITH_LANGUAGE(#LanguageID)
#Native
#ENDWITH_LANGUAGE #ENDLOOP
{NoComplementary}
{BubbleHelpBothWayRefComplementary}
#IF(#FormError AND #FormErrors.Form.ProductComparison) #IF(#FormErrors.Reason.ERROR_INVALIDPRODUCT)

{InputError}

{InvalidProduct}
#ELSE

{InputError}

{PleaseCorrectErrors}
#ENDIF #ENDIF
#IF(#SuperProduct) #LOOP(#SuperProduct.ProductComparison) #WITH(#TargetProduct) #ENDWITH #ENDLOOP #LOOP(#SubProductComparison) #WITH(#TargetProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.ProductComparison)) #ENDBLOCK #ENDLOOP #IF ((#COUNT(#SubProductComparison) + #COUNT(#SuperProduct.Comparison)) == 0) #ENDIF #ELSE #LOOP(#ProductComparison) #WITH(#TargetProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.ProductComparison)) #ENDBLOCK #ENDLOOP #IF (#COUNT(#ProductComparison) == 0) #ENDIF #ENDIF
{SKU} {Name} {ProductType} {Position}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name
#TargetProduct.Class.NameOrAlias
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #TargetProduct.Class.NameOrAlias
{NoComparison}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name #TargetProduct.Class.NameOrAlias
{NoComparison}
{BubbleHelpBothWayRefComparison}
#IF(#FormError AND #FormErrors.Form.References)

{InputError}

{PleaseCorrectErrors}
#ENDIF

{ReferencesInfo}


#LOCAL("Alternate",0) #LOOP(#IncludedInAccessory) #SET("Alternate", 1 - #Alternate) #ENDLOOP #LOOP(#IncludedInComplementary) #SET("Alternate", 1 - #Alternate) #ENDLOOP #LOOP(#IncludedInProductComparison) #SET("Alternate", 1 - #Alternate) #ENDLOOP #LOOP(#IncludedInBundles) #SET("Alternate", 1 - #Alternate) #ENDLOOP #ENDLOCAL #IF (#COUNT(#IncludedInBundles) == 0 AND #COUNT(#IncludedInProductComparison) == 0 AND #COUNT(#IncludedInComplementary) == 0 AND #COUNT(#IncludedInAccessory) == 0) #ENDIF
{SKU} {Name} {ReferenceType}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name {Accessory}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name {Complementary}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name {ProductComparisonItem}
#IF(NOT #INPUT.PopUp) #INCLUDE("INC-ProductIcon")#Alias #ELSE #INCLUDE("INC-ProductIcon")#Alias #ENDIF #Name {ProductBundle}
{NotIncluded}
#LOCAL("ShowRelatedTopics",0)#MENU("RelatedTopic")#SET("ShowRelatedTopics",1)#ENDMENU #IF(#FeaturedActionAvailable(#Shop.Object, #UNDEF, "AutoCrossSelling") EQ "NotVisible")#SET("ShowRelatedTopics",0)#ENDIF #IF(NOT #DELETE AND NOT #INPUT.PopUp AND #ShowRelatedTopics)

{RelatedTopics}

#ENDIF #ENDLOCAL #IF(#INPUT.PopUp)
#ENDIF