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

DB field name is CurrencyIsDefault. If set to true the currency is default.
DB field name is PriceProductID.
DB field name is PriceQuantity.
DB field name is CurrencyCode.
Gets the prices.
Syntax
'Declaration
 
Public Overloads Shared Function getPrices( _ 
   ByVal IsDefault As Boolean, _ 
   ByVal prodID As String, _ 
   ByVal quantity As Double, _ 
   ByVal currencyCode As String _ 
) As PriceCollection
public static PriceCollection getPrices( 
   bool IsDefault,
   string prodID,
   double quantity,
   string currencyCode 
)

Parameters

IsDefault
DB field name is CurrencyIsDefault. If set to true the currency is default.
prodID
DB field name is PriceProductID.
quantity
DB field name is PriceQuantity.
currencyCode
DB field name is CurrencyCode.
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(false, product.ID, 0, ""))
        {
            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