#LOOP(#ProductsLoop)
#LOCAL("CoverFlowImage", "")
#IF(#ImageMedium)
#SET("CoverFlowImage", #ImageMedium)
#ELSIF(#ImageHotDeal)
#SET("CoverFlowImage", #ImageHotDeal)
#ENDIF
#IF(#CoverFlowImage)
#LOCAL("DescriptionLine", #NameOrAlias)

#LOCAL("DisplayPrice", #UNDEF)
#IF(#SuperProduct)
#SET("DisplayPrice",#DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object, 1))
#ELSE
#SET("DisplayPrice",#DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object, 0))
#ENDIF
#IF(#DEFINED(#DisplayPrice))
#SET("DescriptionLine", #DescriptionLine . " ")
#IF(#IsMaster AND NOT #DEFINED(#SuperProduct))
#IF(#CANDISPLAYFROMPRICE(#Object) AND NOT #DEFINED(#SNIPPET.NoVariationPriceFromText))
#SET("DescriptionLine", #DescriptionLine . #Shop.VariationPriceFromText . " ")
#ENDIF
#ENDIF
#SET("DescriptionLine", #DescriptionLine . #DisplayPrice[money])
#ENDIF
#LOCAL("TempOrderUnit", #OrderUnit.NameOrAlias)
#IF(#OrderUnit.Abbreviation)#SET("TempOrderUnit",#OrderUnit.Abbreviation)#ENDIF
#IF(#DEFINED(#PriceQuantity) AND #PriceQuantity != 1)
#SET("DescriptionLine", #DescriptionLine . " / " . #PriceQuantity . #TempOrderUnit)
#ENDIF
#IF(#DEFINED(#OrderUnit.Alias) AND #OrderUnit.Alias NE "piece" AND #DEFINED(#PriceQuantity) AND #PriceQuantity == 1)
#SET("DescriptionLine", #DescriptionLine . " / " . #TempOrderUnit)
#ENDIF
#ENDLOCAL
#IF(#DEFINED(#DisplayPrice))
#IF(NOT #IsAppointment)
#IF(#DISPLAYFREETAXINFO(#Object, #Session.User.Object) AND #Shop.PriceTagInfoMultiProductTaxFree)
#SET("DescriptionLine", #DescriptionLine . " **")
#ELSIF(#DISPLAYPRICETAGINFOGROSS(#Object, #Shop.TaxModel, #Session.User.Object))
#IF(#Shop.PriceTagInfoMultiProductGross)
#SET("DescriptionLine", #DescriptionLine . " *")
#ENDIF
#ELSIF(#Shop.PriceTagInfoMultiProductNet)
#SET("DescriptionLine", #DescriptionLine . " *")
#ENDIF
#ENDIF
#ENDIF
#LOCAL("ReferencePrice",#REFERENCEPRICE(#Object, #DisplayPrice, #INPUT.Currency))
#LOCAL("LowestReferencePrice",#LOWESTREFERENCEPRICEFORMASTER(#Object, #INPUT.Currency, #Shop.TaxModel))
#IF(#IsMaster AND #DEFINED(#LowestReferencePrice))
#SET("ReferencePrice", #LowestReferencePrice)
#ENDIF
#IF(#DEFINED(#ReferencePrice) AND #ReferencePrice != #DisplayPrice)
#SET("DescriptionLine", #DescriptionLine . " (".#RefAmount)
#IF(#DEFINED(#RefUnit.Abbreviation))
#SET("DescriptionLine", #DescriptionLine . #RefUnit.Abbreviation)
#ELSE
#SET("DescriptionLine", #DescriptionLine . #RefUnit.NameOrAlias)
#ENDIF
#SET("DescriptionLine", #DescriptionLine . " = " . #ReferencePrice[money].")")
#ENDIF
#ENDLOCAL
#ENDLOCAL
#ENDLOCAL
#REM #ENDREM
#ENDLOCAL
#REM #ENDREM
#SET("ImageCounter", #ImageCounter + 1)
#ENDIF
#ENDLOCAL
#ENDLOOP