Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Get all product price under catalog.

Vote:
 

Hi,

Is there any API to get all product price under a single catalog?

We use IPriceService/IPriceDetailService to get a price for a SKUs.

Thanks in advance.

#194092
Jun 13, 2018 15:16
Vote:
 

Hi, no, there is no such API. You can use  IPriceDetailService   IList<IPriceDetailValue> List(ContentReference catalogContentReference, int offset, int count, out int totalCount); to get prices of variants belong to a category, but not catalog, because there might be a lot of products in a catalog and such API will have poor performance.

You can however use the technique here to iterate over catalog items and get the prices:

https://leanpub.com/epicommercerecipes/read_sample

#194095
Jun 13, 2018 15:59
Vote:
 

Hi, no, there is no such API. You can use  IPriceDetailService   IList<IPriceDetailValue> List(ContentReference catalogContentReference, int offset, int count, out int totalCount); to get prices of variants belong to a category, but not catalog, because there might be a lot of products in a catalog and such API will have poor performance.

You can however use the technique here to iterate over catalog items and get the prices:

https://leanpub.com/epicommercerecipes/read_sample 

#194096
Jun 13, 2018 15:59
Vote:
 

Hi, no, there is no such API. You can use  IPriceDetailService   IList<IPriceDetailValue> List(ContentReference catalogContentReference, int offset, int count, out int totalCount); to get prices of variants belong to a category, but not catalog, because there might be a lot of products in a catalog and such API will have poor performance.

You can however use the technique here to iterate over catalog items and get the prices:

https://leanpub.com/epicommercerecipes/read_sample 

#194097
Jun 13, 2018 15:59
Vote:
 

Hi, no, there is no such API. You can use  IPriceDetailService   IList<IPriceDetailValue> List(ContentReference catalogContentReference, int offset, int count, out int totalCount); to get prices of variants belong to a category, but not catalog, because there might be a lot of products in a catalog and such API will have poor performance.

You can however use the technique here to iterate over catalog items and get the prices:

https://leanpub.com/epicommercerecipes/read_sample 

#194098
Jun 13, 2018 16:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.