
List Heads
strProdListSQL: WHERE Products.SKU = '2202/500' AND Products.Display = 1 AND Products.Site1 = 1 AND Products.GlCode <> ''
varProductsTotalCount: 1
lastProdID: 0
rsPsql: SELECT Products.ProductID, SKU, ProductName, Products.LongDescription, Products.SupplierID, Products.CategoryID, OnSpecial, SpecialPrice, PromoText, BandA AS UnitPrice, LineItemTax, UnitsInStock, ProductPicture, ProductThumb, Specifications, UnitWeight, Keywords, Products.ColID, BandA AS TradePrice, Products.RestockDate, Products.PriceOptions, Products.Display, Products.BuyButton, Products.UnitSize, Products.UnitColour, Products.BandA, Products.BandB, Products.BandC, Products.BandD, Products.BandE, Products.BandF, Products.BandG, Products.BandH, UnitsInStock AS wh1_stock, 0 AS wh2_stock, CostPrice, ProductNameCustom, ProductDescriptionCustom, Products.Fragile, Products.TaxCode, Products.NonStockItem, Products.SampleAvailable, Products.ProductPicture AS ProdPic, Products.ParentID, Products.ExternalCatID, Products.QuantityPerUnit, Products.stUser3,Products.Barcode, Products.ShortDescription, Products.stUser2,Products.stUser5,Products.stUser6,Products.ProcessType, Products.stUser10,Products.ShowImgOverlay,Products.ImgOverlayText,Products.OnSpecial_Cat, (SELECT OfferPercent FROM SpecialOffers WHERE SpecialOffers.ID = Products.OnSpecial_cat) AS OnSpecial_Cat_Percent, (SELECT OfferText FROM SpecialOffers WHERE SpecialOffers.ID = Products.OnSpecial_cat) AS OnSpecial_Cat_Text, (SELECT Active FROM SpecialOffers WHERE SpecialOffers.ID = Products.OnSpecial_cat) AS OnSpecial_Cat_Active, Products.ShowProductGroups, Products.stStockType FROM dbo.ProductCategories INNER JOIN Products ON Products.SKU COLLATE Latin1_General_CS_AS = ProductCategories.ProductID COLLATE Latin1_General_CS_AS WHERE Products.SKU = '2202/500' AND Products.Display = 1 AND Products.Site1 = 1 AND Products.GlCode <> '' AND Products.ProductID > 0

Item Properties
UnitPrice:4.75, DisplayPrice:4.75, ExchPrice:4.75, RoundPrice:4.75
Disc: 0, DiscType: BP
STOCK DISCOUNT: 0
PRODID:10573, CATID:, ExCat:2202
strPhotoName: products/2202-500.jpg
Image: 2202-500
StrPhoto: /content/1/skin/nophoto.jpg
Fragile : False
TaxCode : S
LineItemTax : 20
UnitWeight : 0.58
Discount Tracker :
1 - START NEW
1 - 021 Call sub setStockDiscounts:(2202/500,XWEB)
2 - 009 fn categoryDiscount:(2202/500,XWEB)
3 -
3 - 016 fn getStockDiscount: (2202/500,XWEB)
3 - 016b fn getStockDiscount: BandA|0|BP
3 - 010 result:(BandA|0|BP)
3 - 012 result1:Category=2202/500
3 - 013 result1:blnTopCat=False
4 - 008a fn getcat:2202/500
5 - 008d fn getcat:BLANK
5 - 014a blnTopCat1:(False)
5 - 014a varParentCat1:()
6 - 022 Output sub arrStockDiscount: 0 - Band = BandA
END
7 - START NEW
7 - 021 Call sub setStockDiscounts:(2202,XWEB)
8 - 009 fn categoryDiscount:(2202,XWEB)
9 -
9 - 016 fn getStockDiscount: (2202,XWEB)
9 - 016b fn getStockDiscount: BandA|0|BP
9 - 010 result:(BandA|0|BP)
9 - 012 result1:Category=2202
9 - 013 result1:blnTopCat=False
10 - 008a fn getcat:2202
11 - 008c fn getcat=520.02
11 - 014a blnTopCat1:(False)
11 - 014a varParentCat1:(520.02)
12 -
12 - 016 fn getStockDiscount: (520.02,XWEB)
12 - 016b fn getStockDiscount: BandA|0|BP
12 - 014 blnTopCat1:(False)
12 - 014 getCat1:(520.02)
12 - 014 result1:(BandA|0|BP)
12 - 012 result2:Category=520.02
12 - 013 result2:blnTopCat=False
13 - 008a fn getcat:520.02
14 - 008c fn getcat=520
14 - 014a blnTopCat2:(False)
14 - 014a varParentCat2:(520)
15 -
15 - 016 fn getStockDiscount: (520,XWEB)
15 - 016b fn getStockDiscount: BandA|0|BP
15 - 014 blnTopCat2:(False)
15 - 014 getCat2:(520)
15 - 014 result2:(BandA|0|BP)
15 - 012 result3:Category=520
15 - 013 result3:blnTopCat=False
16 - 008a fn getcat:520
17 - 008b fn getcat=520
17 - 014a blnTopCat3:(True)
17 - 014a varParentCat3:(520)
18 - 022 Output sub arrStockDiscount: 0 - Band = BandA
END