Dynamicweb 8 Documentation
getPrices(String) Method
Example 

DB field name is PriceProductID.
Gets the prices.
Syntax
'Declaration
 
Public Overloads Shared Function getPrices( _ 
   ByVal prodID As String _ 
) As PriceCollection
public static PriceCollection getPrices( 
   string prodID 
)

Parameters

prodID
DB field name is PriceProductID.
Example
class MyPage : System.Web.UI.Page
{
    private Dynamicweb.eCommerce.Products.Product product;

    private void Page_Load(System.Object sender, System.EventArgs e)
    {
        product = (Dynamicweb.eCommerce.Products.Product)Session["Ecom.Backend.Product"];
    }

    public void DoDelete()
    {
        foreach(Dynamicweb.eCommerce.Prices.Price price in Dynamicweb.eCommerce.Prices.Price.getPrices(product.ID))
        {
            price.Delete();
        }
    }
}
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

Price Class
Price Members
Overload List

Send Feedback