Developer forum

Forum » Ecommerce - Standard features » Output ProductCategories via API

Output ProductCategories via API

Mikkel Belchuke
Mikkel Belchuke
Reply

Hi. 

We're trying to use product categories via the API inside the checkout. 

We try to use Dynamicweb.Ecommerce.Services.ProductCategories, but whenever we get to the Fields collection, it tells us that it is obsolete (or deprecated if we try with a specific product), and the service it suggests does not exist (Dynamicweb.Ecommerce.Services.ProductCategoryFields).

Is there a way to get the id and value of all the product categories on a single product?


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Dynamicweb.Ecommerce.Services.ProductCategoryFields is still not public, so you have to use the Fields property that is marked as obsolete.

Sorry about the confusion - the obsolete should not have been there before the new version was public...

BR Nicolai

Votes for this answer: 1
 
Mikkel Belchuke
Mikkel Belchuke
Reply

Hi Nicolai.

Thank you for your answer. We'll use the obsolete property instead :) 

 

You must be logged in to post in the forum