Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to convert from ProductDisplay to ProductContent #2242

John-Blair opened this issue Mar 28, 2019 · 0 comments


None yet
2 participants
Copy link

commented Mar 28, 2019

Sorry for raising a question as an issue - i'm afraid I don't know how to mark it as just a question.

I would like to know the correct way of converting from a ProductDisplay (returned by search) to a IPublishedContent so i can access product images etc ?

I see there is an extension method AsProductContent - but it is marked as obsolete - what method should be used?

[Obsolete("This method will be removed in version 3.0.0")]
public static IProductContent AsProductContent(this ProductDisplay display);


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.