{MyAccount} {ShoppingLists} #Alias


#IF(#FormError AND NOT #FormErrors.Form.Login.ErrorCount)
#JOIN("
",#FormErrors.Errors)#IF(#Reason EQ "ProductCanNotAddToBasket") {ProductCanNotAddToBasket} #Product.NameOrAlias.#ELSIF(#Name EQ "Quantity") {InputError} #ELSIF(#Reason EQ "NoShipping") {ProductCanNotAddToBasket} ({WrongShippingSettings}) #ELSIF(#Reason EQ "ExclusiveShippingMethod") {ExclusiveShippingMethod} #ELSIF(#Reason EQ "NoPayment") {ProductCanNotAddToBasket} ({WrongPaymentSettings}) #ELSE {UnknownError} #Reason #Name #ENDIF #ENDJOIN

#ENDIF #IF(#DEFINED(#INPUT.ChangeAction) AND #INPUT.ChangeAction EQ "AddContainerItemsToShoppingList")
#IF (#DEFINED(#INPUT.Source) AND #INPUT.Source EQ "Order")

{OrderToShoppingListInfo}

{OrderToShoppingListInfoText} #ELSE

{BasketToShoppingListInfo}

{BasketToShoppingListInfoText} #ENDIF

#ENDIF #LOCAL("PriceTagInfo", 0) #LOOP(#Session.User.Customers)#IF(#TaxModel AND #Shop.PriceTagInfoMultiProductGross)#SET("PriceTagInfo", 1)#ELSIF(NOT #TaxModel AND #Shop.PriceTagInfoMultiProductNet)#SET("PriceTagInfo", 2)#ENDIF#ENDLOOP #LOCAL("ListItems", #Items) #LOCAL("Alternate", 0) #IF(#COUNT(#ListItems)) #SET("ShoppingListID",#ObjectID) #LOOP(#ListItems) #SET("Alternate", 1 - #Alternate)#WITH_ERROR(#FormError) #ENDWITH_ERROR #ENDLOOP #ELSE #ENDIF #ENDLOCAL
{Quantity} {Product} {Actions}
#Product.OrderUnit.NameOrAlias #IF(#Shop.ShowThumbnailsInBasket AND (#Product.ImageThumbnail OR #Product.ImageSmall)) #ENDIF #IF(#Product AND #Product.IsVisible) #WITH(#Product) #NameOrAlias #IF(#Shop.IsProductNoVisible)
{ItemNoShort}: #Alias #ENDIF #IF(#SuperProduct)
(#JOIN(", ",#Product.VariationTypeValues)#Attribute.NameOrAlias#SPACE[0]: #FORMAT(#GET("Product.".#Attribute.Alias.".ValueOrAlias"),"html")#ENDJOIN) #ENDIF #IF(NOT #IsVisible)
({ProductNotVisible}) #ELSIF(NOT #CanAddToBasket) #IF(NOT #IsAvailable AND #AvailabilityComment)
#AvailabilityComment[0] #ELSE
(#Shop.ProductNoAddToBasketText) #ENDIF #ENDIF
#ENDWITH #ELSE #IF(#Product) #Product.NameOrAlias #ELSE #NameOrAlias #ENDIF
(#Shop.ProductNoAddToBasketText) #ENDIF #IF(#Product AND #Product.IsVisible) #WITH(#Product) #LOCAL("DisplayPrice", #FUNCTION("DISPLAYPRICE", #Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #DisplayPrice[money] #ENDLOCAL #IF(#PriceTagInfo){MandatoryStar}#ENDIF
#IF(#DisplayDeliveryWeight AND #Weight) {Weight}: #Weight[float] #WeightUnit.Abbreviation #ENDIF #ENDWITH
#ENDIF
#IF(#DEFINED(#Product) AND #DEFINED(#LISTPRICE(#Product.Object, #INPUT.Currency)) AND #Shop.FeatureMaxValue.Basket AND #Product.CanAddToBasket) #IF(#Product.IsAppointment) #ELSE #ENDIF #ENDIF  
{ShoppingListEmpty}
#IF(#PriceTagInfo)
#IF(#PriceTagInfo == 1){MandatoryStar} #Shop.PriceTagInfoMultiProductGross[0]
#ELSIF(#PriceTagInfo == 2){MandatoryStar} #Shop.PriceTagInfoMultiProductNet[0]
#ENDIF
#ENDIF #IF(#Shop.FeatureMaxValue.Basket) #LOCAL("Customer", #FUNCTION("GetCustomerForUserID", #Session.User.ID, #Shop.ID)) #LOCAL("ProductCount", #COUNT(#GREP(#ListItems, "Product.IsAppointment", 0))) #IF(#Customer.IsDoOrderAllowed) #IF(#ProductCount)
#ENDIF #IF(#COUNT(#Session.User.Baskets)) #LOCAL("CountLineItems", 0) #LOOP(#Session.User.Baskets) #SET("CountLineItems", #COUNT( #LineItemContainer.LineItems )) #ENDLOOP #IF (#CountLineItems) #ENDIF #ENDLOCAL #ENDIF #ENDIF #ENDLOCAL#ENDLOCAL #ENDIF
#ENDLOCAL #ENDLOCAL