#LOCAL("ShowQuantityColumn",NOT(#Shop.EbayStockDecreaseType EQ "OnAuctionEnd" AND #ListingType EQ "FixedPriceItem" AND #IsReviseInventory)) #BLOCK("WITH_FORM_ERROR",#FormError)
#IF(#FormError)

{InputError}

{PleaseCorrectErrors}
#ENDIF #SNIPPET("INC-PagerHeader", "ContextObjects", "{Products}") #LOCAL("VariationTypeValuesArray", #Product.VariationTypeValues) #LOCAL("OrderBy",#INPUT.OrderBy)#IF(NOT #DEFINED(#OrderBy))#SET("OrderBy","")#ENDIF #IF(#OrderBy NE "Name") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #LOOP(#VariationTypeValuesArray) #IF(#DEFINED(#Attribute.Alias) AND #OrderBy NE #Attribute.Alias . ".Value") #ENDIF #ENDLOOP #IF(#OrderBy NE "ListPrice") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#ShowQuantityColumn) #IF(#OrderBy NE "StockLevel") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDIF #ENDLOCAL #LOCAL("DefinedCols", 2) #IF(#ShowQuantityColumn) #SET("DefinedCols", 3) #ENDIF #ENDLOCAL #LOCAL("EbayCurrency",#Shop.CurrencyID) #IF(#DEFINED(#EbayShopEnvironment.EbayEnvironment.CurrencyID)) #SET("EbayCurrency",#FUNCTION("CURRENCY",#EbayShopEnvironment.EbayEnvironment.CurrencyID)) #ENDIF #IF(#COUNT(#Pager.Items)) #LOCAL("SuperProductID", #Product.ID) #LOOP(#Pager.Items) #LOOP(#VariationTypeValuesArray) #ENDLOOP #IF(#ShowQuantityColumn) #ENDIF #ENDLOOP #ENDLOCAL #ENDIF #ENDLOCAL
{Name}{Name}{Name}#Attribute.NameOrAlias{Price}{Price}{Price}{Quantity}{Quantity}{Quantity}
#WITH(#Product)#INCLUDE("INC-ProductIcon")#ENDWITH #Name #IF(#IsNew) #ENDIF
#FORMAT(#GET("Product.".#Attribute.Alias.".ValueOrAlias"),"html") #EbayCurrency.Symbol #IF(NOT #ShowQuantityColumn) #ENDIF
#IF(NOT #DELETE) #SNIPPET("Pager", "ContextObjects", "{Products}") #ENDIF #ENDLOCAL
#ENDBLOCK #ENDLOCAL