#LOCAL("IsBundle", #IsLineItemProductBundle) #SET("LineItemNo", #LineItemNo + 1) #LineItemNo #Quantity[float] #OrderUnit.NameOrAlias #IF(#Product)
#WITH(#Product)#INCLUDE("INC-ProductIcon")#ENDWITH #IF(NOT #INPUT.PopUp) #IF(#IsLineItemDownloadProduct AND #COUNT(#Product.DownloadProductMaps)) #SKU #LOOP(#Product.DownloadProductMaps) #FileName #IF(#FileSize)(#FileSize[integer] kB)#ENDIF #IF(#DEFINED(#MaxDownloadCountString))#LOCAL("Count", #GET("MaxDownloadCounts.".#ID))
{MaxNoOfDownloads}: #IF(#DEFINED(#Count))#Count#ELSE#SPACE[0]0#ENDIF #ENDLOCAL#ENDIF
#ENDLOOP #IF(#EndDownloadTime){ActivatedUntil}: #LOCAL("DownloadTime", #ADD_DURATION(#EndDownloadTime, "-1"))#DownloadTime[date]#ENDLOCAL
#ENDIF
#ELSE #SKU #ENDIF #ELSE #SKU #ENDIF #IF(#IsBundle)
#WITH(#BundledProductContainer)
#LOOP(#LineItems) #IF(#IsLineItemDownloadProduct) #IF(#COUNT(#Product.DownloadProductMaps)) #SKU #ID #LOOP(#Product.DownloadProductMaps) #FileName #IF(#FileSize)(#FileSize[integer] kB)#ENDIF #IF(#DEFINED(#MaxDownloadCountString))#LOCAL("Count", #GET("MaxDownloadCounts.".#ID))
{MaxNoOfDownloads}: #IF(#DEFINED(#Count))#Count#ELSE#SPACE[0]0#ENDIF #ENDLOCAL#ENDIF
#ENDLOOP #IF(#EndDownloadTime){ActivatedUntil}: #LOCAL("DownloadTime", #ADD_DURATION(#EndDownloadTime, "-1"))#DownloadTime[date]#ENDLOCAL
#ENDIF

#ELSE #SKU #ENDIF #ELSE #SKU
#ENDIF #ENDLOOP
#ENDWITH #ENDIF
#ELSE
#SKU #IF(#IsBundle)
#WITH(#BundledProductContainer)
#LOOP(#LineItems) #SKU
#ENDLOOP
#ENDWITH #ENDIF
#ENDIF #IF(#Product)#Product.NameOrAlias#ELSIF(#Name)#Name#ELSE-#ENDIF #MENU("AdditionalProductInformation") #INCLUDE(#Template) #ENDMENU #IF(#IsBundle)
#WITH(#BundledProductContainer) #LOOP(#LineItems) #Quantity[float] #OrderUnit.NameOrAlias #Name
#ENDLOOP #ENDWITH #ELSE #IF(#LocalizedVariationString)
- #LocalizedVariationString#ENDIF
#ENDIF #IF(#DEFINED(#Product)) #IF(#Quantity == 0) #FUNCTION("FORMAT",#BasePrice * #Product.PriceQuantity, "money") #ELSIF(#Product.PriceQuantity == 1 OR #Product.PriceQuantity == 0) #BasePrice[money] #ELSE #FUNCTION("FORMAT",(#LineItemPrice + #Discount) / (#Quantity/#Product.PriceQuantity), "money") #ENDIF #LOCAL("TempOrderUnit","") #IF(#Product.OrderUnit.Abbreviation)#SET("TempOrderUnit",#Product.OrderUnit.Abbreviation) #ELSE#SET("TempOrderUnit",#Product.OrderUnit.NameOrAlias)#ENDIF #IF(#Product.PriceQuantity != 1)/ #Product.PriceQuantity[float] #TempOrderUnit#ENDIF#IF(#Product.OrderUnit.Alias NE "piece" AND #Product.PriceQuantity == 1)/ #TempOrderUnit#ENDIF #ENDLOCAL #ELSE #BasePrice[money] #IF(#OrderUnit)/ #OrderUnit.NameOrAlias#ENDIF #ENDIF #IF(NOT #ShowTaxRate)#IF(NOT #Shop.VATreleased)#CALCULATE(#TaxRate * 100)%#ENDIF#ENDIF #IF(#Discount)#Discount[money]#ENDIF #LineItemPrice[money] #ENDLOCAL