Accounts Controllers
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);