Skip to content
Trevor Spink edited this page Oct 3, 2024 · 1 revision

Below are the methods you will find in Cart.vb file from folder ProteanCMS/CMS/Cart.

#variables mnCartId : its a global variable can contain cartId for the session when order created. moCartConfig : object created from protean.cart.config file to pull settings.

#Methods

getProcessName : It is returning current status of the order, based on the input cratprocess enum.

InitializeVariables : This method actually used to initialize all variables values from config settings or with the default value. This method creates a cart object as well with entire Cart based on session id and card id.

writeSessionCookie : to persists the session cookie.

clearSessionCookie: clear ewSession cookie so cart doesn't get persisted

checkButtons: identify command based on morequest.

CreateCartElement : Initialize cart xml element with baisc details like currency,order etc.

apply : Main function of cart

purchaseActions : This method is to save order details from Protean to Client database. Its bespoke method to setup the class and method from config file with providers. Data will pass to the third party/client database by invoking method from the provider

  • get Providername from Protean.cart.config setting
  • class name and method name will be referred from web.config "protean/accountingProviders"
Clone this wiki locally