#IF(NOT(#INPUT.ViewAction EQ "View" AND #Class.Alias EQ "CustomerOrder"))
#LOCAL("ShopBasket", #GET("Session.User.Child.Baskets.Child." . #Shop.ID))
#LOCAL("CountProducts", #COUNT(#ShopBasket.LineItemContainer.LineItems))
#IF(#ShopBasket)
{Basket}
#ELSE
{Basket}
#ENDIF
#IF(0 == #CountProducts)
{BasketEmpty}
#ELSE#WITH(#ShopBasket)
#WITH(#LineItemContainer)#LOCAL("Alternate", 0)
#IF(10 < #CountProducts )
#SET("Alternate", 1 - #Alternate)
#CountProducts {Products} |
#LOCAL("LineItemsAndStaticsSubTotal",#CALCULATE(#LineItemsSubTotal + #LineItemStaticsSum))#LineItemsAndStaticsSubTotal[money]#ENDLOCAL |
#ELSE
#LOOP(#LineItems)
#INCLUDE("MiniContentLine")
#ENDLOOP
#ENDIF
#IF(#Shop.OrderProcess)
#LOOP(#Statics)
#INCLUDE("MiniContentLine")
#ENDLOOP
#LOOP(#Discounts)
#INCLUDE("MiniContentLine")
#ENDLOOP
#LOOP(#SalesDiscounts)
#INCLUDE("MiniContentLine")
#ENDLOOP
#SET("Alternate", 1 - #Alternate)
{LineItemsSubTotal} |
#LOCAL("LineItemsAndStaticsSubTotal",#CALCULATE(#LineItemsSubTotal + #LineItemStaticsSum + #DiscountsSum +#SalesDiscountsSum))#LineItemsAndStaticsSubTotal[money]#ENDLOCAL |
#ELSE
#LOOP(#SalesDiscounts)
#INCLUDE("MiniContentLine")
#ENDLOOP
#LOOP(#Discounts)
#INCLUDE("MiniContentLine")
#ENDLOOP
#IF(#Shipping)#WITH(#Shipping)
#INCLUDE("MiniContentLine")
#ENDWITH#ENDIF
#IF(#Payment)#WITH(#Payment)
#INCLUDE("MiniContentLine")
#ENDWITH#ENDIF
#IF(#DEFINED(#PaymentDiscount))#WITH(#PaymentDiscount)
#INCLUDE("MiniContentLine")
#ENDWITH#ENDIF
#LOOP(#Statics)
#INCLUDE("MiniContentLine")
#ENDLOOP
#IF(#TaxModel)
#SET("Alternate", 1 - #Alternate)
{GrandTotal} |
#GrandTotal[money] |
#ELSE
#SET("Alternate", 1 - #Alternate)
{GrandTotal} |
#TotalBeforeTax[money] |
#ENDIF
#ENDIF
#ENDLOCAL#ENDWITH
#MENU("MiniCheckoutButton")
#INCLUDE(#Template)
#ENDMENU
#MENU("MiniBasketDiscount")
#INCLUDE(#Template)
#ENDMENU
#ENDWITH
#ENDIF
#ENDLOCAL#ENDLOCAL
#ENDIF