Technology + People + Process

How to hide the “Add to cart” button in Kentico, when an item is out of the stock on the site

How to hide the “Add to cart” button in Kentico, when an item is out of the stock on the site

If you wish to hide “Add to cart” button, you can do using a transformation where you are registering the Shopping Cart Item Selector control, you can just add the following macro-based visible property to it:

******************************************************************************

Visible='<%# IfCompare(ValidationHelper.GetInteger(Eval("SKUAvailableItems"), 0), 0, true, false) %>'

******************************************************************************


Request for Quote

Drop us a line and we'll get in touch with you as quick as we can