#LOCAL("ImageCounter", 0) #LOCAL("UniqueID", #UNIQUEID("ep-coverflow-id-")) #IF(#COUNT(#SubProducts))#LOCAL("HasPrice", 0)
#LOCAL("CurrentSubProductPath",#Path) #LOOP(#SubProducts) #IF(#IsVisible) #LOCAL("CoverFlowImage", "") #IF(#ImageMedium) #SET("CoverFlowImage", #ImageMedium) #ELSIF(#ImageSmall) #SET("CoverFlowImage", #ImageSmall) #ENDIF #IF(#CoverFlowImage) #LOCAL("BasketLink", "") #SET("BasketLink", "?ChangeObjectID=" . #ID . "&ChangeAction=AddToBasket&ViewObjectID=" . #INPUT.ObjectID . "&ViewAction=JSONViewResponse") #IF(#DEFINED(#INPUT.Page)) #SET("BasketLink", #BasketLink . "&Page=" . #INPUT.Page) #ENDIF
#DescriptionLine[html] #LOCAL("DescriptionLine", #NameOrAlias) #LOCAL("VariationString", "") #LOOP(#VariationTypeValues) #LOCAL("AttributeValue",#GET(#Attribute.Alias)) #SET("VariationString", #VariationString . " - " . #Attribute.NameOrAlias . ": " . #AttributeValue.ValueOrAlias) #ENDLOCAL #ENDLOOP #SET("DescriptionLine", #DescriptionLine . #VariationString) #ENDLOCAL #LOCAL("DisplayPrice", #DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object, 1 )) #IF(#DEFINED(#DisplayPrice)) #SET("HasPrice", 1) #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 #ENDLOCAL #LOCAL("BasketLink", "") #SET("BasketLink", "?ChangeObjectID=" . #ID . "&ChangeAction=AddToBasket&ViewObjectID=" . #INPUT.ObjectID . "&ViewAction=JSONViewResponse") #REM #ENDREM #ENDLOCAL #ENDLOCAL
#REM #ENDREM #SET("ImageCounter", #ImageCounter + 1) #ENDLOCAL #ENDIF #ENDLOCAL #ENDIF #ENDLOOP #ENDLOCAL
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM #SNIPPET("INC-Coverflow", "UniqueID,AddLightbox,ShowCoverflowBar,CoverflowBackground", #UniqueID,1,1,"dark") #IF(#HasPrice AND (#Shop.PriceTagInfoMultiProductGross OR #Shop.PriceTagInfoMultiProductNet OR #Shop.PriceTagInfoMultiProductTaxFree))
#INCLUDE("Explanation-INC-Product-Price")
#ENDIF#ENDLOCAL #ENDIF #ENDLOCAL #ENDLOCAL