Dynamicweb 8 Documentation
PriceRawCollection Class
Members  Example 

Represents a collection of Raw Prices.
Object Model
PriceRawCollection ClassPriceRaw Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
    private Dynamicweb.eCommerce.Prices.PriceRawCollection GetPrice(ProductItemCollection items)
    {
        Dynamicweb.eCommerce.Prices.PriceRawCollection col = new Dynamicweb.eCommerce.Prices.PriceRawCollection();

        foreach (ProductItem Item in items)
        {
            object priceObj = Dynamicweb.eCommerce.Prices.PriceManager.FindPrice(Item.Products.getProductById(Item.DefaultProductID), Item.Quantity);
 
            if (priceObj != null)
            {
                if ((priceObj) is Dynamicweb.eCommerce.Prices.PriceRaw)
                {
                    Dynamicweb.eCommerce.Prices.PriceRaw rawPrice = (Dynamicweb.eCommerce.Prices.PriceRaw)priceObj;
                    col.Add(rawPrice);
                }
            }
        }
        return col;
    }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Prices.PriceRawCollection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PriceRawCollection Members
Dynamicweb.eCommerce.Prices Namespace

Send Feedback