So i'm developing my first custom module and i'm trying to get informations about eCommerce Products based on the products ProductID.
code:
if (!String.IsNullOrEmpty(Request.QueryString["ProductID"]))
prodId = Request.QueryString["ProductID"].ToString();
Product p = new Product(prodId);
string name=p.Name;
My problem seems to be getting a hold of the Product in the first case, is this incorrect use of the Product constructor?
I can't seem to find any documentation that tells me how to get product information, but it seems to me that it should be a rather common issue so i'm probably not looking in the right places.