Language
 
Information
Article ID44
Created On2/17/2010
Modified2/17/2010
PSCommerce - API - PSPrefs
Usage:
Provides access to the site core config settings.

Properties:

  • None 
Methods:

getPSCommerceRoot()
Returns the value contained in the web.config file for the 'PSXMLDocsCommerceRoot' entry.
(Needs to be the full server path to the 'PSXMLDocs' folder.)

getPSCommerceWebRoot()
Returns the value contained in the web.config file for the 'PSXMLDocsCommerceWebRoot' entry.
(Needs to be the fully qualified http path to the 'PSXMLDocs' folder.)

getPSCommerceProductRoot()
Returns the value contained in the web.config file for the 'PSXMLDocsProductRoot' entry.
(Needs to be the full server path to the 'PSCommerce/Products' folder.)

getPSDocsProductWebRoot()
Returns the value contained in the web.config file for the 'PSXMLDocsProductWebRoot' entry.
(Needs to be the fully qualified http path to the 'PSCommerce/Products'  folder.)

getPSEncryptedUsernames()
Returns the value contained in the web.config file for the 'PSEncryptUserXMLFilename' entry.
Returns 1 or 0 (boolean based) to state if customer credentials should be encrypted into the XML files.

getPSCommerceEmailRoot()
Returns the value contained in the web.config file for the 'PSCommerceEmailRoot' entry.
(Needs to be the full server path to the 'PSCommerce/Admin/Emails' folder.)

getPSSMTPSettings()
Returns the value contained in the web.config file for the 'PSSMTP' entry.

getPSSiteName()
Returns the value contained in the web.config file for the 'PSSiteName' entry.

getPSEmailSignature()
Returns the value contained in the web.config file for the 'PSEmailSignature' entry.

getPSEmailSender()
Returns the value contained in the web.config file for the 'PSEmailSender' entry