Dynamicweb.eCommerce.Prices Namespace > Price Class > getPrices Method : getPrices(Boolean,String,Double,String) Method |
true
the currency is default.
'Declaration
Public Overloads Shared Function getPrices( _ ByVal IsDefault As Boolean, _ ByVal prodID As String, _ ByVal quantity As Double, _ ByVal currencyCode As String _ ) As PriceCollection
true
the currency is default.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(); } } }
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