#INCLUDE("Content-PrintButton")

{ProductComparison}

#LOCAL("MaxItemNo", 8) #IF(#COUNT(#ComparisonProducts)) #IF(#COUNT(#ComparisonProducts) > #MaxItemNo)

{Notification}

{TooManyComparisonProducts}
#ENDIF #LOCAL("HasPrice", 0)
#REM#ENDREM #LOCAL("CompProducts", #ComparisonProducts) #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #LOOP(#CompProducts)#LOCAL("CurrencyID", #INPUT.Currency) #IF(#ItemNo < #MaxItemNo) #LOCAL("DisplayPrice",#FUNCTION("DISPLAYPRICE", #Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #ENDLOCAL #ENDIF #ENDLOCAL#ENDLOOP #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #REM#ENDREM #LOOP(#ComparisonAttributes) #LOCAL("AttributeAlias", #Attribute.Alias)#LOCAL("MyAttributeID", #Attribute.ID) #LOOP(#Products) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #ENDLOCAL#ENDLOCAL #ENDLOOP #REM#ENDREM #IF(#Shop.FeatureMaxValue.ProductRating) #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #ENDIF #IF(#Site.ShoppingListVisible) #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #ENDIF #IF(#Site.ShoppingListVisible) #LOOP(#CompProducts) #IF(#ItemNo < #MaxItemNo) #ENDIF #ENDLOOP #ENDIF #ENDLOCAL


#IF(#IsNew){New}#ENDIF #IF(#ImageSmall) #IF(#SuperProduct OR NOT #DEFINED(#DefaultSubProduct)) #NameOrAlias #ELSE #NameOrAlias #ENDIF #ELSE
#ENDIF

#IF(#SuperProduct OR NOT #DEFINED(#DefaultSubProduct)) #NameOrAlias #ELSE #NameOrAlias #ENDIF

#LOCAL("TempOrderUnit","") #IF(#OrderUnit.Abbreviation)#SET("TempOrderUnit",#OrderUnit.Abbreviation) #ELSE#SET("TempOrderUnit",#OrderUnit.NameOrAlias)#ENDIF #LOCAL("ManufacturerPrice", #FUNCTION("MANUFACTURERPRICE", #Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #IF(#DEFINED(#ManufacturerPrice)) #IF(#Shop.ReferencePriceText)#Shop.ReferencePriceText[0]#ENDIF #IF(#Shop.CancelReferencePrice)#ManufacturerPrice[money]#ELSE #ManufacturerPrice[money]#ENDIF
#ENDIF #ENDLOCAL #SNIPPET("INC-DisplayPrice", "OrderUnitDisplayOption,EnableAsterisk", "Short", "1") #IF(NOT #IsAppointment AND #DisplayPrice)#SET("HasPrice", 1)#ENDIF #ENDLOCAL #LOCAL("ReferencePrice",#FUNCTION("REFERENCEPRICE", #Object, #DisplayPrice, #INPUT.Currency)) #IF(#DEFINED(#DisplayPrice) AND #ReferencePrice != #DisplayPrice)
#RefAmount #IF(#RefUnit.Abbreviation)#RefUnit.Abbreviation#ELSE#RefUnit.NameOrAlias#ENDIF = #ReferencePrice[money]
#ENDIF #ENDLOCAL #IF(#IsDailyPrice)
{IsDailyPriceSF}
#ENDIF

#IF(#IsAvailable AND (#SuperProduct OR NOT #DEFINED(#DefaultSubProduct))) #INCLUDE("INC-ProductStockLevelIcon") #ENDIF #IF(NOT #IsDeliveryTimeLonger AND #CanAddToBasket AND #DeliveryPeriod AND NOT #DeliveryPeriod == 0)

{DeliveryPeriod}: #DeliveryPeriod {DaysFuzzy}

#ENDIF  
#IF(#DisplayDeliveryWeight AND #Weight)

{Weight}: #Weight[float] #WeightUnit.Abbreviation

#ENDIF
#Attribute.Name #LOCAL("AttributeValue", #GET(#AttributeAlias))#LOCAL("PathToFiles", #WebPath) #LOOP(#Class.Attributes)#IF(#ID == #MyAttributeID) #IF(#Attribute.Type EQ "PreDefMultiString" OR #Attribute.Type EQ "PreDefMultiLocalizedString") #LOOP(#AttributeValue) #ValueOrAlias
#ENDLOOP #ELSIF(#Attribute.Type EQ "PreDefCustomerString") #LOCAL("LastAttributeValueNo", #COUNT(#AttributeValue) - 1) #LOOP(#AttributeValue) #IF(#ItemNo)#IF(#ItemNo == #LastAttributeValueNo){or}#ELSE,#ENDIF #ENDIF#ValueOrAlias #ENDLOOP#ENDLOCAL #ELSIF(#Attribute.Type EQ "Boolean") #IF(#AttributeValue.Value.ValueOrAlias) {yes}#ELSE {no}#ENDIF #ELSIF(#Attribute.Type EQ "PreDefString" OR #Attribute.Type EQ "PreDefLocalizedString" ) #AttributeValue.Value.ValueOrAlias #ELSIF((#Attribute.Type EQ "File" OR #Attribute.Type EQ "LocalizedFile" )AND #DEFINED(#AttributeValue)AND(#AttributeValue.Value.ValueOrAlias NE "")) {Download} #ELSIF(#Attribute.Type EQ "Money") #AttributeValue[money] #ELSIF(#Attribute.IsHTML) #AttributeValue.Value.ValueOrAlias[0] #ELSIF(#Attribute.Type EQ "Date") #AttributeValue[date] #ELSIF(#Attribute.Type EQ "Time") #AttributeValue[time] #ELSE #AttributeValue.Value.ValueOrAlias #ENDIF #ENDIF#ENDLOOP #ENDLOCAL#ENDLOCAL  
{CustomerProductRating} #IF(#RatingAverage)
#IF(#RatingAverage > 0) #ELSE #ENDIF #IF(#RatingAverage > 1.5) #ELSE #ENDIF #IF(#RatingAverage > 2.5) #ELSE #ENDIF #IF(#RatingAverage > 3.5) #ELSE #ENDIF #IF(#RatingAverage > 4.5) #ELSE #ENDIF
#ENDIF #IF(#RatingAverage) #ENDIF
#IF(NOT #Shop.ExclusiveAddToBasketButton)
#LOCAL("LinkOption","Icon")#INCLUDE("INC-BasketLink")#ENDLOCAL
#ENDIF
{AddToShoppingList}  
#IF(#Site.ShoppingListVisible) #ENDIF {CopyComparisonToShoppingList}
#IF(#HasPrice) #IF(#FUNCTION("DISPLAYPRICETAGINFOGROSS", #Object, #Shop.TaxModel, #Session.User.Object)) #IF( #Shop.PriceTagInfoMultiProductGross)
* #Shop.PriceTagInfoMultiProductGross[0]
#ENDIF #ELSIF(#Shop.PriceTagInfoMultiProductNet)
* #Shop.PriceTagInfoMultiProductNet[0]
#ENDIF #ENDIF
#IF(#Shop.ShowPrintLink)
{PrintView}
#ENDIF #ENDLOCAL
#ELSE

{Notification}

{NoProductsInComparisonList}


#LOCAL("Target", #Shop.Categories)#IF(#DEFINED(#Target)){DisplayHomepage}
#ENDIF#ENDLOCAL #IF(#Shop.FeatureMaxValue.DetailedSearch) {SearchProducts} #ENDIF

#ENDIF #ENDLOCAL