Method | Description | |
---|---|---|
AdjustInventory ( Nop.Core.Domain.Catalog.ProductVariant productVariant, bool decrease, int quantity, string attributesXml ) : void |
Adjusts inventory
|
|
DeleteCrossSellProduct ( Nop.Core.Domain.Catalog.CrossSellProduct crossSellProduct ) : void |
Deletes a cross-sell product
|
|
DeleteProduct ( |
Delete a product
|
|
DeleteProductPicture ( Nop.Core.Domain.Catalog.ProductPicture productPicture ) : void |
Deletes a product picture
|
|
DeleteProductVariant ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void |
Delete a product variant
|
|
DeleteRelatedProduct ( Nop.Core.Domain.Catalog.RelatedProduct relatedProduct ) : void |
Deletes a related product
|
|
DeleteTierPrice ( Nop.Core.Domain.Catalog.TierPrice tierPrice ) : void |
Deletes a tier price
|
|
GetAllProducts ( bool showHidden = false ) : IList |
Gets all products
|
|
GetAllProductsDisplayedOnHomePage ( ) : IList |
Gets all products displayed on the home page
|
|
GetCrossSellProductById ( int crossSellProductId ) : Nop.Core.Domain.Catalog.CrossSellProduct |
Gets a cross-sell product
|
|
GetCrossSellProductsByProductId1 ( int productId1, bool showHidden = false ) : IList |
Gets a cross-sell product collection by product identifier
|
|
GetCrosssellProductsByShoppingCart ( IList |
Gets a cross-sells
|
|
GetLowStockProductVariants ( ) : IList |
Get low stock product variants
|
|
GetProductById ( int productId ) : |
Gets product
|
|
GetProductPictureById ( int productPictureId ) : Nop.Core.Domain.Catalog.ProductPicture |
Gets a product picture
|
|
GetProductPicturesByProductId ( int productId ) : IList |
Gets a product pictures by product identifier
|
|
GetProductVariantById ( int productVariantId ) : Nop.Core.Domain.Catalog.ProductVariant |
Gets a product variant
|
|
GetProductVariantBySku ( string sku ) : Nop.Core.Domain.Catalog.ProductVariant |
Gets a product variant by SKU
|
|
GetProductVariantsByProductId ( int productId, bool showHidden = false ) : IList |
Gets product variants by product identifier
|
|
GetProductVariantsByProductIds ( int productIds, bool showHidden = false ) : IList |
Get product variants by product identifiers
|
|
GetProductsByIds ( int productIds ) : IList |
Get products by identifiers
|
|
GetRelatedProductById ( int relatedProductId ) : Nop.Core.Domain.Catalog.RelatedProduct |
Gets a related product
|
|
GetRelatedProductsByProductId1 ( int productId1, bool showHidden = false ) : IList |
Gets a related product collection by product identifier
|
|
GetTierPriceById ( int tierPriceId ) : Nop.Core.Domain.Catalog.TierPrice |
Gets a tier price
|
|
InsertCrossSellProduct ( Nop.Core.Domain.Catalog.CrossSellProduct crossSellProduct ) : void |
Inserts a cross-sell product
|
|
InsertProduct ( |
Inserts a product
|
|
InsertProductPicture ( Nop.Core.Domain.Catalog.ProductPicture productPicture ) : void |
Inserts a product picture
|
|
InsertProductVariant ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void |
Inserts a product variant
|
|
InsertRelatedProduct ( Nop.Core.Domain.Catalog.RelatedProduct relatedProduct ) : void |
Inserts a related product
|
|
InsertTierPrice ( Nop.Core.Domain.Catalog.TierPrice tierPrice ) : void |
Inserts a tier price
|
|
ProductService ( ICacheManager cacheManager, IRepository |
Ctor
|
|
SearchProductVariants ( int categoryId, int manufacturerId, string keywords, bool searchDescriptions, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
Search product variants
|
|
SearchProducts ( IList |
Search products
|
|
SearchProducts ( int categoryId, int manufacturerId, bool featuredProducts, decimal priceMin, decimal priceMax, int productTagId, string keywords, bool searchDescriptions, bool searchProductTags, int languageId, IList |
Search products
|
|
UpdateCrossSellProduct ( Nop.Core.Domain.Catalog.CrossSellProduct crossSellProduct ) : void |
Updates a cross-sell product
|
|
UpdateHasDiscountsApplied ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void |
Update HasDiscountsApplied property (used for performance optimization)
|
|
UpdateHasTierPricesProperty ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void |
Update HasTierPrices property (used for performance optimization)
|
|
UpdateProduct ( |
Updates the product
|
|
UpdateProductPicture ( Nop.Core.Domain.Catalog.ProductPicture productPicture ) : void |
Updates a product picture
|
|
UpdateProductReviewTotals ( |
Update product review totals
|
|
UpdateProductVariant ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void |
Updates the product variant
|
|
UpdateRelatedProduct ( Nop.Core.Domain.Catalog.RelatedProduct relatedProduct ) : void |
Updates a related product
|
|
UpdateTierPrice ( Nop.Core.Domain.Catalog.TierPrice tierPrice ) : void |
Updates the tier price
|
public AdjustInventory ( Nop.Core.Domain.Catalog.ProductVariant productVariant, bool decrease, int quantity, string attributesXml ) : void | ||
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
decrease | bool | A value indicating whether to increase or descrease product variant stock quantity |
quantity | int | Quantity |
attributesXml | string | Attributes in XML format |
return | void |
public DeleteCrossSellProduct ( Nop.Core.Domain.Catalog.CrossSellProduct crossSellProduct ) : void | ||
crossSellProduct | Nop.Core.Domain.Catalog.CrossSellProduct | Cross-sell identifier |
return | void |
public DeleteProduct ( |
||
product | Product | |
return | void |
public DeleteProductPicture ( Nop.Core.Domain.Catalog.ProductPicture productPicture ) : void | ||
productPicture | Nop.Core.Domain.Catalog.ProductPicture | Product picture |
return | void |
public DeleteProductVariant ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void | ||
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
return | void |
public DeleteRelatedProduct ( Nop.Core.Domain.Catalog.RelatedProduct relatedProduct ) : void | ||
relatedProduct | Nop.Core.Domain.Catalog.RelatedProduct | Related product |
return | void |
public DeleteTierPrice ( Nop.Core.Domain.Catalog.TierPrice tierPrice ) : void | ||
tierPrice | Nop.Core.Domain.Catalog.TierPrice | Tier price |
return | void |
public GetAllProducts ( bool showHidden = false ) : IList |
||
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetAllProductsDisplayedOnHomePage ( ) : IList |
||
return | IList |
public GetCrossSellProductById ( int crossSellProductId ) : Nop.Core.Domain.Catalog.CrossSellProduct | ||
crossSellProductId | int | Cross-sell product identifier |
return | Nop.Core.Domain.Catalog.CrossSellProduct |
public GetCrossSellProductsByProductId1 ( int productId1, bool showHidden = false ) : IList |
||
productId1 | int | The first product identifier |
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetCrosssellProductsByShoppingCart ( IList |
||
cart | IList |
Shopping cart |
numberOfProducts | int | Number of products to return |
return | IList |
public GetLowStockProductVariants ( ) : IList |
||
return | IList |
public GetProductById ( int productId ) : |
||
productId | int | Product identifier |
return |
public GetProductPictureById ( int productPictureId ) : Nop.Core.Domain.Catalog.ProductPicture | ||
productPictureId | int | Product picture identifier |
return | Nop.Core.Domain.Catalog.ProductPicture |
public GetProductPicturesByProductId ( int productId ) : IList |
||
productId | int | The product identifier |
return | IList |
public GetProductVariantById ( int productVariantId ) : Nop.Core.Domain.Catalog.ProductVariant | ||
productVariantId | int | Product variant identifier |
return | Nop.Core.Domain.Catalog.ProductVariant |
public GetProductVariantBySku ( string sku ) : Nop.Core.Domain.Catalog.ProductVariant | ||
sku | string | SKU |
return | Nop.Core.Domain.Catalog.ProductVariant |
public GetProductVariantsByProductId ( int productId, bool showHidden = false ) : IList |
||
productId | int | The product identifier |
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetProductVariantsByProductIds ( int productIds, bool showHidden = false ) : IList |
||
productIds | int | Product identifiers |
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetProductsByIds ( int productIds ) : IList |
||
productIds | int | Product identifiers |
return | IList |
public GetRelatedProductById ( int relatedProductId ) : Nop.Core.Domain.Catalog.RelatedProduct | ||
relatedProductId | int | Related product identifier |
return | Nop.Core.Domain.Catalog.RelatedProduct |
public GetRelatedProductsByProductId1 ( int productId1, bool showHidden = false ) : IList |
||
productId1 | int | The first product identifier |
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetTierPriceById ( int tierPriceId ) : Nop.Core.Domain.Catalog.TierPrice | ||
tierPriceId | int | Tier price identifier |
return | Nop.Core.Domain.Catalog.TierPrice |
public InsertCrossSellProduct ( Nop.Core.Domain.Catalog.CrossSellProduct crossSellProduct ) : void | ||
crossSellProduct | Nop.Core.Domain.Catalog.CrossSellProduct | Cross-sell product |
return | void |
public InsertProduct ( |
||
product | Product | |
return | void |
public InsertProductPicture ( Nop.Core.Domain.Catalog.ProductPicture productPicture ) : void | ||
productPicture | Nop.Core.Domain.Catalog.ProductPicture | Product picture |
return | void |
public InsertProductVariant ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void | ||
productVariant | Nop.Core.Domain.Catalog.ProductVariant | The product variant |
return | void |
public InsertRelatedProduct ( Nop.Core.Domain.Catalog.RelatedProduct relatedProduct ) : void | ||
relatedProduct | Nop.Core.Domain.Catalog.RelatedProduct | Related product |
return | void |
public InsertTierPrice ( Nop.Core.Domain.Catalog.TierPrice tierPrice ) : void | ||
tierPrice | Nop.Core.Domain.Catalog.TierPrice | Tier price |
return | void |
public ProductService ( ICacheManager cacheManager, IRepository |
||
cacheManager | ICacheManager | Cache manager |
productRepository | IRepository |
Product repository |
productVariantRepository | IRepository |
Product variant repository |
relatedProductRepository | IRepository |
Related product repository |
crossSellProductRepository | IRepository |
Cross-sell product repository |
tierPriceRepository | IRepository |
Tier price repository |
productPictureRepository | IRepository |
Product picture repository |
localizedPropertyRepository | IRepository |
Localized property repository |
productSpecificationAttributeRepository | IRepository |
Product specification attribute repository |
productAttributeService | IProductAttributeService | Product attribute service |
productAttributeParser | IProductAttributeParser | Product attribute parser service |
languageService | ILanguageService | Language service |
workflowMessageService | IWorkflowMessageService | Workflow message service |
dataProvider | IDataProvider | Data provider |
dbContext | IDbContext | Database Context |
localizationSettings | Nop.Core.Domain.Localization.LocalizationSettings | Localization settings |
commonSettings | Common settings | |
eventPublisher | IEventPublisher | Event published |
return | System |
public SearchProductVariants ( int categoryId, int manufacturerId, string keywords, bool searchDescriptions, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
||
categoryId | int | Category identifier; 0 to load all records |
manufacturerId | int | Manufacturer identifier; 0 to load all records |
keywords | string | Keywords |
searchDescriptions | bool | A value indicating whether to search in descriptions |
pageIndex | int | Page index |
pageSize | int | Page size |
showHidden | bool | A value indicating whether to show hidden records |
return | IPagedList |
public SearchProducts ( IList |
||
categoryIds | IList |
Category identifiers |
manufacturerId | int | Manufacturer identifier; 0 to load all records |
featuredProducts | bool | A value indicating whether loaded products are marked as featured (relates only to categories and manufacturers). 0 to load featured products only, 1 to load not featured products only, null to load all products |
priceMin | decimal | Minimum price; null to load all records |
priceMax | decimal | Maximum price; null to load all records |
productTagId | int | Product tag identifier; 0 to load all records |
keywords | string | Keywords |
searchDescriptions | bool | A value indicating whether to search by a specified "keyword" in product descriptions |
searchProductTags | bool | A value indicating whether to search by a specified "keyword" in product tags |
languageId | int | Language identifier |
filteredSpecs | IList |
Filtered product specification identifiers |
orderBy | ProductSortingEnum | Order by |
pageIndex | int | Page index |
pageSize | int | Page size |
loadFilterableSpecificationAttributeOptionIds | bool | A value indicating whether we should load the specification attribute option identifiers applied to loaded products (all pages) |
filterableSpecificationAttributeOptionIds | IList |
The specification attribute option identifiers applied to loaded products (all pages) |
showHidden | bool | A value indicating whether to show hidden records |
return | IPagedList |
public SearchProducts ( int categoryId, int manufacturerId, bool featuredProducts, decimal priceMin, decimal priceMax, int productTagId, string keywords, bool searchDescriptions, bool searchProductTags, int languageId, IList |
||
categoryId | int | Category identifier; 0 to load all records |
manufacturerId | int | Manufacturer identifier; 0 to load all records |
featuredProducts | bool | A value indicating whether loaded products are marked as featured (relates only to categories and manufacturers). 0 to load featured products only, 1 to load not featured products only, null to load all products |
priceMin | decimal | Minimum price; null to load all records |
priceMax | decimal | Maximum price; null to load all records |
productTagId | int | Product tag identifier; 0 to load all records |
keywords | string | Keywords |
searchDescriptions | bool | A value indicating whether to search by a specified "keyword" in product descriptions |
searchProductTags | bool | A value indicating whether to search by a specified "keyword" in product tags |
languageId | int | Language identifier |
filteredSpecs | IList |
Filtered product specification identifiers |
orderBy | ProductSortingEnum | Order by |
pageIndex | int | Page index |
pageSize | int | Page size |
loadFilterableSpecificationAttributeOptionIds | bool | A value indicating whether we should load the specification attribute option identifiers applied to loaded products (all pages) |
filterableSpecificationAttributeOptionIds | IList |
The specification attribute option identifiers applied to loaded products (all pages) |
showHidden | bool | A value indicating whether to show hidden records |
return | IPagedList |
public UpdateCrossSellProduct ( Nop.Core.Domain.Catalog.CrossSellProduct crossSellProduct ) : void | ||
crossSellProduct | Nop.Core.Domain.Catalog.CrossSellProduct | Cross-sell product |
return | void |
public UpdateHasDiscountsApplied ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void | ||
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
return | void |
public UpdateHasTierPricesProperty ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void | ||
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
return | void |
public UpdateProduct ( |
||
product | Product | |
return | void |
public UpdateProductPicture ( Nop.Core.Domain.Catalog.ProductPicture productPicture ) : void | ||
productPicture | Nop.Core.Domain.Catalog.ProductPicture | Product picture |
return | void |
public UpdateProductReviewTotals ( |
||
product | Product | |
return | void |
public UpdateProductVariant ( Nop.Core.Domain.Catalog.ProductVariant productVariant ) : void | ||
productVariant | Nop.Core.Domain.Catalog.ProductVariant | The product variant |
return | void |
public UpdateRelatedProduct ( Nop.Core.Domain.Catalog.RelatedProduct relatedProduct ) : void | ||
relatedProduct | Nop.Core.Domain.Catalog.RelatedProduct | Related product |
return | void |
public UpdateTierPrice ( Nop.Core.Domain.Catalog.TierPrice tierPrice ) : void | ||
tierPrice | Nop.Core.Domain.Catalog.TierPrice | Tier price |
return | void |