Beispiel #1
0
        private void Reset_Count_Freeze()
        {
            string ProductStockFreezeTime = ShopCache.GetBaseConfig().ProductStockFreezeTime;
            List <Lebi_Product> parents   = B_Lebi_Product.GetList("Product_id = 0", "");

            foreach (Lebi_Product parent in parents)
            {
                List <Lebi_Product> pros = B_Lebi_Product.GetList("Product_id = " + parent.id + "", "");
                if (pros.Count > 0)
                {
                    foreach (Lebi_Product pro in pros)
                    {
                        EX_Product.Reset_Count_Freeze(pro);
                    }
                }
                else
                {
                    EX_Product.Reset_Count_Freeze(parent);
                }
            }
        }