Web.config settings

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

In the web.config file, you can set appropriate keys in the following location to modify functionality of the e-commerce module:

 

<configuration>

 <appSettings>

   <add key="CMSUseCustomEcommerceProviders" value="false" />

   .

   .

   .

 </appSettings>

</configuration>

 

The following keys can be set:

 

CMSUseCurrentSKUData

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

 

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

CMSEnableOrderItemEditing

If set to true, it is possible to edit order item price or order item name after the order is made. Please note that you can make these changes only if the CMSUseCurrentSKUData key is set to false at the same time.

 

ecommerceguide_clip0164

 

It is set to false by default.

CMSUseMetaFileForProductImage

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

 

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

CMSUseCustomEcommerceProviders

For more information, please see the Using custom providers chapter,

CMSShoppingCartExpirationPeriod

Specify the number of days after which a shopping cart is considered to be old and is erased with 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");

 

Page url: http://devnet.kentico.com/docs/5_5r2/ecommerceguide/index.html?web_config_settings.htm