Kentico CMS 7.0 E-commerce Guide

Web.config settings

Web.config settings

Previous topic Next topic Mail us feedback on this topic!  

Web.config settings

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

In the web.config file, you can set appropriate keys in the following location to modify functionality of your on-line store:

 

<configuration>

 <appSettings>

   <add key="CMSEnableOrderItemEditing" value="true" />

   .

   .

   .

 </appSettings>

</configuration>

 

The following keys can be set:

 

CMSUseCurrentSKUData

If set to false (default value), the name and price of an existing order item are used while editing order items.

 

If set to true, the current name and price of a product are used while editing order items.

CMSEnableOrderItemEditing

If set to true and an order is not marked as paid, it is possible to Edit (Edit) order item price, name and quantity. Please note that you can make these changes only if the CMSUseCurrentSKUData key is set to false at the same time.

 

ecommerceguide_clip0164

 

Set to false by default.

CMSUseMetaFileForProductImage

If set to true (default value), the user is asked to choose a product image from the file system on their computer. The product image is uploaded to a server and saved as a metafile of the given product (a product image document of the cms.file type is not created). The path to the given metafile is saved as a product image path (SKUImagePath).

 

If set to false, the user is asked to choose a document of the cms.file type to become a product image. The path to the selected document is saved as a product image path (SKUImagePath).

CMSShoppingCartExpirationPeriod

Specifies the number of days after which a shopping cart is considered to be old and is removed by the Deleting old shopping carts task.

 

Custom web.config settings

 

You can add your own settings (key and its value) into the web.config file.To work with these settings, use methods of the CMS.SettingsProvider.SettingsKeyProvider class.

 

The following example shows how to get the value (type of double) of the key named MyCustomKey.
 
[C#]

 

double value = CMS.SettingsProvider.SettingsKeyProvider.GetDoubleValue("MyCustomKey");