{MyAccount} {OrderTracking}

#LOCAL("Alternate", 0) #LOCAL("ThisShop", #Shop) #LOOP(#CustomerOrders) #IF(#Shop.ID == #ThisShop.ID) #IF(#DEFINED(#Parent.Alias) AND #Parent.Alias NE "EditableOrders") #SET("Alternate", 1 - #Alternate) #ENDIF #ENDIF #ENDLOOP #IF(NOT #COUNT(#CustomerOrders)) #ENDIF #ENDLOCAL #ENDLOCAL
{OrderNo} {CreationDate} {GrandTotal} {Status}
#Alias #CreationDate[date_tz] #LineItemContainer.GrandTotal[money] #IF(#DEFINED(#LastStatus)) #IF(#LastStatus.Alias EQ "ViewedOn") {ViewedOn}#ELSIF(#LastStatus.Alias EQ "CancelledOn") {CancelledOn}#ELSIF(#LastStatus.Alias EQ "InProcessOn") {InProcessOn}#ELSIF(#LastStatus.Alias EQ "PendingOn") {PendingOn}#ELSIF(#LastStatus.Alias EQ "ReadyForShippingOn") {ReadyForShippingOn}#ELSIF(#LastStatus.Alias EQ "PartlyDispatchedOn") {PartlyDispatchedOn}#ELSIF(#LastStatus.Alias EQ "DispatchedOn") {DispatchedOn}#ELSIF(#LastStatus.Alias EQ "ShippedOn") {ShippedOn}#ELSIF(#LastStatus.Alias EQ "PartlyInvoicedOn") {PartlyInvoicedOn}#ELSIF(#LastStatus.Alias EQ "InvoicedOn") {InvoicedOn}#ELSIF(#LastStatus.Alias EQ "PartlyPaidOn") {PartlyPaidOn}#ELSIF(#LastStatus.Alias EQ "PaidOn") {Paid}#ELSIF(#LastStatus.Alias EQ "ClosedOn") {ClosedOn}#ELSIF(#LastStatus.Alias EQ "ArchivedOn") {ArchivedOn}#ELSE #LastStatus.NameOrAlias#ENDIF #ENDIF #MENU("TrackingLinks")#INCLUDE(#Template)#ENDMENU
{NoOrders}