#LOCAL("ShoppingListQuantity", #Shop.FeatureMaxValue.UnityWishListShowQuantity)

{WishList}

#IF(#DEFINED(#ShoppingList))
#LOCAL("Counter", 0) #WITH(#ShoppingList) #IF(#ShoppingListQuantity) #ENDIF #IF(#COUNT(#CHILDREN(#Object))) #LOOP(#CHILDREN(#Object)) #LOCAL("CanAddProductToBasket", 1) #LOCAL("DisplayPrice", "") #WITH(#Product) #SET("DisplayPrice", #DISPLAYPRICE(#Object, #Shop.CurrencyID, #Shop.TaxModel, #Session.User.Object, 1)) #ENDWITH #IF(NOT #Product.CanAddToBasket OR NOT #DEFINED(#DisplayPrice)) #SET("CanAddProductToBasket", 0) #ENDIF #IF(#ShoppingListQuantity) #ENDIF #SET("Counter", #Counter + 1) #ENDLOCAL #REM #ENDREM #ENDLOCAL #REM #ENDREM #ENDLOOP #REM #ENDREM #ENDIF #REM #ENDREM #LOCAL("LocalizedWebUrlUnitySSL",#AddLanguageToUnitySfURL(#WebUrlUnitySSL, #LanguageID, 0, #Session.User.Object)) #ENDLOCAL
{Item} {Price}{Quantity}{PossibleActions}
#LOCAL("LocalizedProductURL", #AddLanguageToUnitySfURL(#Product.WebUrlUnitySSL, #Shop.LanguageID, 0, #Session.User.Object)) #Product.NameOrAlias[html]

#Product.NameOrAlias

#IF(#Product.SuperProduct)

#JOIN(", ",#Product.SuperProduct.VariationTypeValues)#Attribute.NameOrAlias#SPACE[0]: #FORMAT(#GET("Product.".#Attribute.Alias.".ValueOrAlias"),"html")#ENDJOIN

#ENDIF #IF(#CustomizedTextUnity) #LOCAL("CustomizableHeadlineText", #Product.CustomizableHeadlineText) #IF(NOT #DEFINED(#CustomizableHeadlineText)) #SET("CustomizableHeadlineText", #Shop.CustomizableProductHeadlineDefaultText) #ENDIF #CustomizableHeadlineText: #CustomizedTextUnity
#ENDLOCAL #ENDIF
#ENDLOCAL #IF(NOT #ShoppingListQuantity) #ENDIF
#WITH(#Product) #DisplayPrice[money] #IF(#DISPLAYFREETAXINFO(#Object, #Session.User.Object) AND #Shop.PriceTagInfoMultiProductTaxFree) {MandatoryStar}{MandatoryStar} #ELSIF(#PriceTagInfo) {MandatoryStar} #ENDIF #ENDWITH #IF(#CanAddProductToBasket) #ELSE #ENDIF
{EmptyShoppingList}
#IF(#COUNT(#CHILDREN(#Object))) #SET("Counter", 0) #LOOP(#CHILDREN(#Object)) #LOCAL("CanAddProductToBasket", 1) #LOCAL("DisplayPrice", "") #WITH(#Product) #SET("DisplayPrice", #DISPLAYPRICE(#Object, #Shop.CurrencyID, #Shop.TaxModel, #Session.User.Object, 1)) #ENDWITH #IF(NOT #Product.CanAddToBasket OR NOT #DEFINED(#DisplayPrice)) #SET("CanAddProductToBasket", 0) #ENDIF

#Product.NameOrAlias[html]

#Product.NameOrAlias

#IF(#Product.SuperProduct)

#JOIN(", ",#Product.SuperProduct.VariationTypeValues)#Attribute.NameOrAlias#SPACE[0]: #FORMAT(#GET("Product.".#Attribute.Alias.".ValueOrAlias"),"html")#ENDJOIN

#ENDIF #IF(#CustomizedTextUnity) #LOCAL("CustomizableHeadlineText", #Product.CustomizableHeadlineText) #IF(NOT #DEFINED(#CustomizableHeadlineText)) #SET("CustomizableHeadlineText", #Shop.CustomizableProductHeadlineDefaultText) #ENDIF #CustomizableHeadlineText: #CustomizedTextUnity
#ENDLOCAL #ENDIF

{Price}
#WITH(#Product) #DisplayPrice[money] #IF(#DISPLAYFREETAXINFO(#Object, #Session.User.Object) AND #Shop.PriceTagInfoMultiProductTaxFree) {MandatoryStar}{MandatoryStar} #ELSIF(#PriceTagInfo) {MandatoryStar} #ENDIF #ENDWITH
#IF(#ShoppingListQuantity)
{Quantity}
#ELSE #ENDIF
{PossibleActions}
#IF(#CanAddProductToBasket) #ELSE #ENDIF
#SET("Counter", #Counter + 1) #ENDLOCAL #REM #ENDREM #ENDLOCAL #REM #ENDREM #ENDLOOP #REM #ENDREM #ENDIF #REM #ENDREM
#LOCAL("LocalizedWebUrlUnitySSL",#AddLanguageToUnitySfURL(#WebUrlUnitySSL, #LanguageID, 0, #Session.User.Object))

{EmptyShoppingList}

#ENDLOCAL
#IF(#COUNT(#CHILDREN(#Object)))
#ENDIF #ENDWITH #ENDLOCAL #REM #ENDREM
#ELSE
#LOCAL("LocalizedWebUrlUnitySSL",#AddLanguageToUnitySfURL(#WebUrlUnitySSL, #LanguageID, 0, #Session.User.Object))

{EmptyShoppingList}

#ENDLOCAL
#ENDIF #REM #ENDREM
#IF(#DEFINED(#ShoppingList)) #ENDIF #REM #ENDREM #ENDLOCAL #REM #ENDREM