dbo.ProductLoadAllPaged.sql
+USE [nopCommerce]
+GO
+SET ANSI_NULLS ON
+GO
+SET QUOTED_IDENTIFIER ON
+GO
+
+
+ALTER PROCEDURE [dbo].[ProductLoadAllPaged]
+(
+ @CategoryIds nvarchar(MAX) = null, --a list of category IDs (comma-separated list). e.g. 1,2,3
+ @ManufacturerId int = 0,
+ @StoreId int = 0,
+ @VendorId int = 0,
+ @WarehouseId int = 0,
+ @ProductTypeId int = null, --product type identifier, null - load all products
+ @VisibleIndividuallyOnly bit = 0, --0 - load all products , 1 - "visible indivially" only
+ @MarkedAsNewOnly bit = 0, --0 - load all products , 1 - "marked as new" only
+ @ProductTagId int = 0,
+ @FeaturedProducts bit = null, --0 featured only , 1 not featured only, null - load all products
+ @PriceMin decimal(18, 4) = null,
+ @PriceMax decimal(18, 4) = null,
+ @Keywords nvarchar(4000) = null,
+ @SearchDescriptions bit = 0, --a value indicating whether to search by a specified "keyword" in product descriptions
+ @SearchSku bit = 0, --a value indicating whether to search by a specified "keyword" in product SKU
+ @SearchProductTags bit = 0, --a value indicating whether to search by a specified "keyword" in product tags
+ @UseFullTextSearch bit = 0,
+ @FullTextMode int = 0, --0 - using CONTAINS with <prefix_term>, 5 - using CONTAINS and OR with <prefix_term>, 10 - using CONTAINS and AND with <prefix_term>
+ @FilteredSpecs nvarchar(MAX) = null, --filter by specification attribute options (comma-separated list of IDs). e.g. 14,15,16
+ @LanguageId int = 0,
+ @OrderBy int = 0, --0 - position, 5 - Name: A to Z, 6 - Name: Z to A, 10 - Price: Low to High, 11 - Price: High to Low, 15 - creation date
+ @AllowedCustomerRoleIds nvarchar(MAX) = null, --a list of customer role IDs (comma-separated list) for which a product should be shown (if a subjet to ACL)
+ @PageIndex int = 0,
+ @PageSize int = 2147483644,
+ @ShowHidden bit = 0,
+ @OverridePublished bit = null, --null - process "Published" property according to "showHidden" parameter, true - load only "Published" products, false - load only "Unpublished" products
+ @LoadFilterableSpecificationAttributeOptionIds bit = 0, --a value indicating whether we should load the specification attribute option identifiers applied to loaded products (all pages)
+ @FilterableSpecificationAttributeOptionIds nvarchar(MAX) = null OUTPUT, --the specification attribute option identifiers applied to loaded products (all pages). returned as a comma separated list of identifiers
+ @TotalRecords int = null OUTPUT,
+ @SearchManufacturer bit = 0 --a value indicating whether to search by a specified "keyword" in product SKU
+)
+AS