|
||
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="CMSEnableOrderItemEditing" value="true" /> . . . </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 and the order is not marked as paid, it is possible to Edit (
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). |
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. |
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"); |