You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > Product Class > Product Properties > ShowAddToCart
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Product.ShowAddToCart Property

Set to true if you want to the Add to Cart button to appear. The default is True. Setting this property to false allows you to show details of an item, but not offer it for sale. For example, you have an item that is no longer for sale, but you want to allow people who purchased the item to view its details. Also, by using code behind to dynamically set the property, you could create code that looks at your inventory system and hides the button depending on whether a product is in stock.

C#
[Bindable(true)]
[Category("Ektron")]
[DefaultValue(true)]
[Description("Set to true if you want to the Add to Cart button to appear. The default is True. Setting this property to false allows you to show details of an item, but not offer it for sale.")]
public bool ShowAddToCart;
Visual Basic
<Bindable(true)>
<Category("Ektron")>
<DefaultValue(true)>
<Description("Set to true if you want to the Add to Cart button to appear. The default is True. Setting this property to false allows you to show details of an item, but not offer it for sale.")>
Public Property ShowAddToCart() As bool
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!