アカウントコントローラー
アカウントコントローラーの統合
Forterカートリッジコントローラーは、カートリッジがチェックアウトイベントに至るまでのさまざまな顧客イベントやアクションを追跡できるようにします。コントローラーに基づいてカートリッジをSite Genesisと統合するためには、pipelets/forter/ForterCallCustomerUpdate.jsを以下のコントローラーに追加する必要があります:
- Account.js(editForm()関数内)
- Account.js(registrationForm()関数内):
- Address.js(list()関数内):
- Login.js(handleLoginForm()関数内):
- Login.js(Logout()関数内):
- Paymentinstruments.js(list()関数内):
- Wishlist.js(add()関数内):
- Wishlist.js(wishListForm()関数内):
1. Account.js(editForm()関数内):
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 (Logout()関数内):
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 (list()関数内):
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 ( add() 関数内):
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 ( wishListForm() 関数内):
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);