SFCC Cartridge
Accounts
Accounts Controllers
11 min
accounts controllers integration the forter cartridge controllers allow the cartridge to track a variety of different customer events and actions leading up to the checkout event in order to integrate the cartridge with site genesis based on contollers, the pipelets/forter/fortercallcustomerupdate js has to be added to the following controllers account js ( in the editform() function) account js ( in the registrationform() function) address js (in the list() function) login js (in the handleloginform() function) login js (in the logout() function) paymentinstruments js (in the list() function) wishlist js ( in the add() function) wishlist js ( in the wishlistform() function) 1\ account js (in the editform() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer profile update}; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 2\ account js (in the registrationform() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer create}; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 3\ address js (in the list() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer address update}; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 4\ login js (in the handleloginform() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer login; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 5\ login js (in the logout() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer logout; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 6\ paymentinstruments js (in the list() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer payment update; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 7\ wishlist js ( in the add() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer profile update; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate); 8\ wishlist js ( in the wishlistform() function) var argcustomerupdate = { eventtype require('int forter/cartridge/scripts/lib/forter/forterconfig ds') forterconfig customer profile update; var fortercall = require('int forter/cartridge/scripts/pipelets/forter/fortercustomerupdate'); fortercall execute(argcustomerupdate);