Dynamicweb 8 Documentation
getPrices(String,String,String) Method
Example 

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

Parameters

prodID
DB field name is PriceProductID.
CurrencyID
DB field name is PriceCurrency.
priceID
DB field name is PriceID.
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()
    {
        string currID = HttpContext.Current.Request.QueryString["currID"];
        string priceID = HttpContext.Current.Request.QueryString["priceID"];
 
        foreach(Dynamicweb.eCommerce.Prices.Price price in Dynamicweb.eCommerce.Prices.Price.getPrices(product.ID, currID, priceID))
        {
            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