Hi I need your kind help to sortout this product related issue

ramesh perera asked on June 23, 2016 10:24

suppose i have couple of products and when i bookmark the product detail page url for one particular product and after that i set the "Allow for sale" attribute "false" (unchecked the Allow for sale checkbox form product application) for that particular product from Product application from ADMIN section. so if i try to access the bookmarked url for that product it should redirect to home page. please assist me to sortout this issue please?

Thank you! Ramesh

Recent Answers

David te Kloese answered on June 23, 2016 11:44


So basically you don't want the product to exist anymore. Is just (instructing to) archive the page an option? Although now I think of it this will result in a 404.

You could try using the Redirect webpart and enabling it based on the SKUEnabled value. But I think this logic will confuse the customer on why they cant reach the page.

You could also just show a message that the product is no longer available. This way the product is still listed and does the customer know why they cant order.

If you add the following to your transformation:

<%# IfCompare(Eval("SKUEnabled").ToString(), "False", "", "This product is not available.") %>

0 votesVote for this answer Mark as a Correct answer

ramesh perera answered on June 24, 2016 12:02

Thank you David. it works fine for the field called SKUEnabled.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.