#IF(#SetDefault)

{Notification}

{PleaseSelectDefaultAttributeValues}

#LOOP(#UniqueUsedPreDefAttributes) #ENDLOOP #LOOP(#SetDefaultValueAttributes) #LOCAL("AttributeID", #ID)#LOCAL("ShowPreDefAttribute",0)

{PredefinedValueForAttribute}: #NameOrAlias

#LOOP(#PreDefAttributes) #LOCAL("TmpPreDefAttributeID", #ID) #LOOP(#UniqueUsedPreDefAttributes) #IF(#TmpPreDefAttributeID == #ID) #ENDIF #ENDLOOP #ENDLOCAL #ENDLOOP
#ENDLOCAL#ENDLOCAL #ENDLOOP
#IF(#INPUT.PopUp) #ENDIF
#ELSE
{VariationTypeDefinition} {SubProducts}
#IF(NOT #DELETE AND NOT #DELETEALL) #IF(#Shop.FeatureMaxValue.Variations) #IF(#INPUT.ProductVariationWizard)

{ProductVariationWizard}

{ProductVariationWizardSuccesful}
{ChangeAllSubProducts} ({EditProduktSettings})
{StartProductVariationWizardAgain} ({AddMoreVariations})

#ELSE

{ProductVariationWizard}

{ProductVariationWizardInfo}
{StartProductVariationWizard}

#ENDIF #ENDIF #ENDIF #IF(#FormError AND #FormErrors.Form.VariationTypes)

{InputError}

#IF(#FormErrors.Form.VariationTypes.Reason.ValueNotAvailforAllSubs)

{ValueNotAvailforAllSubs}

{SetDefaultValueMasterProduct} #ELSE {PleaseCorrectErrors} #ENDIF
#ENDIF #IF(#FormError AND #FormErrors.Form.NewSubProducts) #IF(#FormErrors.Form.NewSubProducts.Reason.VariationCombinationExists)

{Notification}

{VariationCombinationExists}
#ELSIF(#FormErrors.Form.NewSubProducts.Reason.SubProductsCountFeatureLimitExceeded)

{Notification}

{SubProductsCountFeatureLimitExceeded}
{SubProductsCount} #Shop.FeatureMaxValue.ProductMaxSubProducts #INCLUDE("FeaturePromotion")
#ELSE

{InputError}

{PleaseCorrectErrors}
#ENDIF #ENDIF #IF(#FormError AND #FormErrors.Form.SaveVariationTypes) #IF(#FormErrors.Form.SaveVariationTypes.Reason.PreDefAttributeUsedBySubProduct)

{Notification}

{VariationCombinationExists}
#ELSE

{InputError}

{PleaseCorrectErrors}
#ENDIF #ENDIF #IF(#DELETE)

{AcceptAction}

#ELSIF(#DELETEALL)

{Warning}

{AcceptDeleteAll}
#ENDIF

#LOCAL("COUNTPosVariationTypeValues",0) #BLOCK("LOOPPosVariationTypeValues",#Object ) #SET("COUNTPosVariationTypeValues", #COUNTPosVariationTypeValues + 1) #ENDBLOCK #IF(#COUNTPosVariationTypeValues == 0) #ENDIF
{VariationTypes} {PreDefAttributeValues}
#Attribute.NameOrAlias #IF(#COUNT(#PreDefAttributes) > 20)
{MultiSelect}
#ELSE #LOOP(#PreDefAttributes)
#IF(#IsUsed)
#ELSE
#ENDIF
#ENDLOOP #ENDIF
{NoPosVariationTypes}

#IF(#COUNTPosVariationTypeValues NNE 0)
#ENDIF #ENDLOCAL
#IF(#INPUT.Page) #ENDIF#IF(#INPUT.PageSize) #ENDIF #IF(#INPUT.OrderDesc) #ENDIF

#IF(NOT #DELETEALL) #IF(#AtLeastOneVariationHasAnOwnPrice AND NOT #DELETE)

{Notification}

{HowToShowFromPrice0} #LOCAL("ExamplePrice", 19.95) {Example}: {ExampleFromPrice}#ENDLOCAL

  1. {HowToShowFromPrice1} {ClickSave}
  2. {HowToShowFromPrice2} {EditVariation}
  3. {HowToShowFromPrice3} {EditFromText}
#ENDIF #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #ENDIF #INCLUDE("INC-PagerHeader") #IF(#DELETE) #LOOP(#VariationTypeValues) #ENDLOOP #ELSE #LOCAL("OrderBy",#INPUT.OrderBy)#IF(NOT #DEFINED(#OrderBy))#SET("OrderBy","")#ENDIF #IF(#OrderBy NE "Alias") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#OrderBy NE "Name") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #LOOP(#VariationTypeValues) #IF(#DEFINED(#Attribute.Alias) AND #OrderBy NE #Attribute.Alias . ".Value") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDLOOP #IF(#OrderBy NE "ListPrice") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#OrderBy NE "StockLevel") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#OrderBy NE "Position") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDLOCAL #ENDIF #LOCAL("CurrencyID",#Shop.CurrencyID) #IF(#DELETE) #LOOP(#DeleteObjects) #LOOP(#VariationTypeValues)#LOCAL("AttributeValue",#GET(#Attribute.Alias)) #ENDLOCAL#ENDLOOP #ENDLOOP #ELSIF(#COUNT(#SelectedVariations)) #LOCAL("SubProductID", #ID) #LOOP(#Pager.Items) #LOOP(#VariationTypeValues)#LOCAL("AttributeValue",#GET(#Attribute.Alias)) #ENDLOCAL#ENDLOOP #LOCAL("ListPrice", #LISTPRICE(#Object, #CurrencyID, #Shop.InputTaxModel, 1)) #IF(NOT #HasSubOwnPrices) #ENDLOOP #ENDLOCAL #LOOP(#VariationTypeValues)#BLOCK("WITH_FORM_ERROR", #FormError)#LOCAL("NewAttributeValueID", #FUNCTION("ERROR_VALUE", #NewAttributeValue, "")) #ENDLOCAL#ENDBLOCK#ENDLOOP #ELSE #ENDIF #ENDLOCAL
{SKUShort} {Name}#Attribute.NameOrAlias{Price} {StockLevel} {IsDefault} {Position}{SKUShort}{SKUShort}{SKUShort}{Name}{Name}{Name}#Attribute.NameOrAlias#Attribute.NameOrAlias#Attribute.NameOrAlias{ListPrice}{ListPrice}{ListPrice}{StockLevel}{StockLevel}{StockLevel}{IsDefault}{Position}{Position}{Position}
#IF(NOT #DELETE)#INCLUDE("Pager")#ENDIF
#Alias #Name#AttributeValue.ValueOrAlias #FORMAT(#LISTPRICE(#Object, #CurrencyID, #Shop.InputTaxModel, 1),"money")
#StockLevel[float]
#Position
#INCLUDE("INC-ProductIcon") #Alias #IF(#IsNew) #ENDIF
#Name #AttributeValue.ValueOrAlias #ListPrice[money] #ELSE
#ListPrice[money]
#ENDIF #ENDLOCAL
#StockLevel[float]
#SET("NewAlias", #NewAlias)
{NoSelectedVariations}
#ENDIF
#IF(#COUNT(#SelectedVariations)) #IF(#DELETE) #LOOP(#DeleteObjects)#ENDLOOP #ELSIF(#DELETEALL) #ELSE #ENDIF #ENDIF
#IF(NOT #INPUT.PopUp AND NOT #DELETE AND NOT #DELETEALL)

{RelatedTopics}

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