getProductsCountByPageId
Seçilen kategori için sayfalama ile tüm ürün nesnelerini arayın.
Açıklama
Bu yöntem ... Bir ... nesnesine çözülmekte olan bir Promise döndürür. Bir IProductsCount nesnesine çözülmekte olan bir Promise döndürür.
Products.getProductsCountByPageId(
id,
body
);
Parametreler şeması
Şema
id(zorunlu): string
Sayfa Kimliği
body(zorunlu): any[]
Filtre için gövde parametreleri. Varsayılan: []
örnek:
[
{
"attributeMarker": "price",
"conditionMarker": "in",
"statusMarker": "status_1",
"conditionValue": {},
"pageUrls": [
"23-laminat-floorwood-maxima"
],
"title": "Iphone 17 Pro"
}
]
Örnekler
Minimal örnek
const response = await Products.getProductsCountByPageId(10);
{
"totalAll": 3,
"totalInCategory": 3,
"totalInCategoryWithNested": 3
}
Yanıt şeması
Şema: IProductsCount
totalAll: number
Bulunan toplam ürün sayısı.
örnek: 100
totalInCategory: number
Kategoride bulunan toplam ürün sayısı.
örnek: 50
totalInCategoryWithNested: number
İç içe kategoride bulunan toplam ürün sayısı.
örnek: 10