#LOCAL("HasPrice", 0)
{Name} | #LOCAL("CompProducts", #ComparisonProducts) #LOOP(#CompProducts)#IF(#SuperProduct OR NOT #DEFINED(#DefaultSubProduct)) #NameOrAlias #ELSE #NameOrAlias #ENDIF | #ENDLOOP
---|---|
{ItemNoShort} | #LOOP(#CompProducts)#Alias | #ENDLOOP
{Image} | #LOOP(#CompProducts)#ENDLOOP |
{Price} | #LOOP(#CompProducts) #LOCAL("DisplayPrice", "") #IF(#DefaultSubProduct AND NOT #SuperProduct) #SET("DisplayPrice", #DISPLAYPRICE(#DefaultSubProduct.Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #ELSE #SET("DisplayPrice", #DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #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(#ReferencePrice != #DisplayPrice) #RefAmount #IF(#RefUnit.Abbreviation)#RefUnit.Abbreviation#ELSE#RefUnit.NameOrAlias#ENDIF = #ReferencePrice[money]
#ENDIF
#ENDLOCAL
#IF(#IsDailyPrice)
{IsDailyPriceSF}
#ENDIF
|
#ENDLOCAL
#ENDLOOP
{Status} | #LOOP(#CompProducts)
#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 |
#ENDLOOP
#LOOP(#CompProducts) |
#IF(#DisplayDeliveryWeight AND #Weight)
{Weight}: #Weight[float] #WeightUnit.Abbreviation #ENDIF |
#ENDLOOP
#LOOP(#CompProducts) |
#IF(#SuperProduct OR NOT #DEFINED(#DefaultSubProduct))
#LOCAL("LinkOption","Icon")#INCLUDE("INC-BasketLink")#ENDLOCAL
#ELSIF(#DefaultSubProduct)
#ENDIF
|
#ENDLOOP
#Attribute.Name | #LOCAL("AttributeAlias", #Attribute.Alias)#LOCAL("MyAttributeID", #Attribute.ID) #LOOP(#Products)
#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(#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 |
#ENDLOOP
#ENDLOCAL#ENDLOCAL