Dynamicweb 8 Documentation
GetAllProductsByShopID Method
Example 

DB field name is ShopGroupShopID.
Gets all products from shop. No language filter is applied meaning all language version of all products in the shop are returned.
Syntax
'Declaration
 
Public Shared Function GetAllProductsByShopID( _ 
   ByVal shopID As String _ 
) As ProductCollection
public static ProductCollection GetAllProductsByShopID( 
   string shopID 
)

Parameters

shopID
DB field name is ShopGroupShopID.
Example
class MyPage : System.Web.UI.Page
{
   public static void getActiveProducts(string shopID)
   {
       ProductCollection dwProds = Product.GetAllProductsByShopID(shopID);
       foreach (Product dwProd in dwProds)
       {
           //TODO: insert your code here
       }
   }
}
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

Product Class
Product Members

Send Feedback