Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Allow for sale property of products form View modes: 
User avatar
Member
Member
eng.rupalikulkarni-gmail - 11/13/2012 11:45:58 AM
   
Allow for sale property of products form
Hi,

When i am unchecking Allow for sale checkbox from the products form , It is removing my ADD TO CART button from the page.

I want the functionality that says, When i uncheck Allow for sale checkbox And goes to the products page it should display the message saying that "This product is not available for sale"

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/14/2012 3:45:23 AM
   
RE:Allow for sale property of products form
Hello,

You can use following code in your product transformation:
<%# IfCompare(Eval("SKUEnabled").ToString(), "False", "", "This product is not available for sale") %>

Best regards,
Jan Hermann

User avatar
Member
Member
eng.rupalikulkarni-gmail - 11/21/2012 9:26:32 AM
   
RE:Allow for sale property of products form
Hi,

It did work... Thank you very much for your help

Thanks!