#IF(#IsBundleProduct)
#IF(#FormError AND #FormErrors.Form.SaveBundleProductMaps)
#IF(#FormErrors.Reason.DifferentTaxClasses)

{Notification}

{DifferentTaxClasses} #ELSIF(#FormErrors.Reason.ERROR_INVALIDPRODUCT)

{InputError}

{InvalidProduct} #ELSIF(#FormErrors.Reason.TargetIsCustomizable)

{ErrorAssignCustomizableProduct}

#ELSE

{InputError}

{PleaseCorrectErrors} #ENDIF
#ELSE #IF( #IsVisible AND (NOT #CanAddToBasket) )

{BundelNotAvailable}

{BundelNotAvailableInfo} #LOOP(#BundleProductMaps) #IF( ( NOT #BundledProduct.IsAvailable ) OR ( #DEFINED(#BundledProduct.StockLevel) AND (#BundledProduct.StockLevel < #BundledQuantity) AND ( #Shop.ProductLowOnStockAction >= 2 ) ) )
#BundledProduct.NameOrAlias #ENDIF #ENDLOOP
#ENDIF #ENDIF #IF(#COUNT(#BundleProductMaps)) #LOOP(#BundleProductMaps) #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.SaveBundleProductMaps)) #ENDBLOCK #WITH(#BundledProduct) #ENDWITH #BLOCK("WITH_FORM_ERROR", #FormError AND #DEFINED(#FormErrors.Form.SaveBundleProductMaps)) #ENDBLOCK #ENDLOOP #LOCAL("BundledListPriceSum",#FUNCTION("BUNDLEDLISTPRICESUM", #Object, #Shop.CurrencyID, #Shop.InputTaxModel)) #IF(#BundledListPriceSum)#LOCAL("CurrencyID", #Shop.CurrencyID) #ENDLOCAL#ENDIF #LOCAL("CurrencyID", #Shop.CurrencyID) #LOCAL("ListPrice", #FUNCTION("LISTPRICE", #Object, #CurrencyID, #Shop.InputTaxModel, 1)) #ENDLOCAL #ENDLOCAL #ENDLOCAL #ELSE #ENDIF
{Quantity} {SKU} {Name} {ListPrice} {Position}
#BundledProduct.OrderUnit.Name #INCLUDE("INC-ProductIcon")#Alias #Name #LOCAL("CurrencyID", #Shop.CurrencyID) #LOCAL("ListPrice", #FUNCTION("LISTPRICE", #Object, #CurrencyID, #Shop.InputTaxModel, 1)) #IF(NOT #DEFINED(#ListPrice))#SET("ListPrice", 0)#ENDIF#SET("ListPrice", #ListPrice * #BundledQuantity)#ListPrice[money] #ENDLOCAL #ENDLOCAL
{BundledProductPrices} #BundledListPriceSum[money]
{PriceDifference} #IF(#DEFINED(#ListPrice) AND #BundledListPriceSum) #LOCAL("Difference",#CALCULATE(#ListPrice - #BundledListPriceSum)) #Difference[money] #ENDLOCAL #ENDIF
{BundlePrice} #IF(#DEFINED(#ListPrice))#ListPrice[money]#ENDIF
{NoBundledProducts}
#IF(#COUNT(#BundleProductMaps)) #ENDIF
#IF(NOT #INPUT.PopUp)

{RelatedTopics}

#ENDIF
#ELSE

#IF(#COUNT(#BundleProducts)) #LOOP(#BundleProducts) #ENDLOOP #ELSE #ENDIF
{SKU} {Name}
#INCLUDE("INC-ProductIcon")#Alias #Name
{NoBundledProducts}
#ENDIF #IF(#INPUT.PopUp)
#ENDIF