Dynamicweb 8 Documentation
Prices Property (Product)
Example 

Gets or sets the collection of prices. Product prices are ranged according to variety of criteria e.g. Bulk prices, Campaigns, Units and Variant.
Syntax
'Declaration
 
Public Property Prices As PriceCollection
public PriceCollection Prices {get; set;}
Example
class MyPage : System.Web.UI.Page
{
    private Product objProduct;
    private Product objProductNew;
    private void SavePrices()
    {
         foreach (Dynamicweb.eCommerce.Prices.Price pr in objProduct.Prices)
         {
             pr.Save("", objProductNew.ID, pr.CurrencyCode);
         }
    }
}
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

Product Class
Product Members

Send Feedback