Developer forum

Forum » Integration » Return from BuildProductRequest if list

Return from BuildProductRequest if list

Kim Søjborg Pedersen
Reply

Hello, I'm inside the BuildProductRequest and I have a need to just return if i'm in a "productlist context". The reason is that I have no price or other information that I need to send over the live integration in the productlists. 

Is this possible?


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Kim

If you are in the frontend, you can check if Request.Item("ProductID") is empty - then you would be on a product list. Be aware, that on a product detail you also have lists of products, i.e. related products.

In a ProductTemplateExtender, you can have a look at .IsDetailView that will tell you if you are in the list or not.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum