Dynamicweb.eCommerce.Prices Namespace > Price Class > getPrices Method : getPrices(String,String,String) Method |
'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 )
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(); } } }
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