통합로그 피드백 : AL_BUY_NOW 로그추가
This commit is contained in:
@@ -636,4 +636,5 @@ export const LOG_MESSAGE_ID = {
|
||||
SEARCH_ITEM: "AL_SEARCH_ITEM",
|
||||
ENTRY_INFO: "AL_APP_ENTRY_INFO",
|
||||
CHECKOUT_CLICK: "AL_CHECKOUT_CLICK",
|
||||
BUY_NOW: "AL_BUY_NOW",
|
||||
};
|
||||
|
||||
@@ -27,7 +27,10 @@ import {
|
||||
getProductCouponSearch,
|
||||
getProductCouponTotDownload,
|
||||
} from "../../../actions/couponActions";
|
||||
import { sendLogPaymentEntry } from "../../../actions/logActions";
|
||||
import {
|
||||
sendLogPaymentEntry,
|
||||
sendLogTotalRecommend,
|
||||
} from "../../../actions/logActions";
|
||||
import { pushPanel } from "../../../actions/panelActions";
|
||||
import {
|
||||
getProductOption,
|
||||
@@ -448,6 +451,26 @@ export default function SingleOption({
|
||||
return dispatch(setShowPopup(Config.ACTIVE_POPUP.loginPopup));
|
||||
}
|
||||
if (userNumber && selectedPatnrId && selectedPrdtId && quantity) {
|
||||
const { prodOptCval, priceInfo } = selectedOptions;
|
||||
const { patncNm, brndNm, catNm, prdtNm, prdtId } = productInfo;
|
||||
const regularPrice = priceInfo.split("|")[0];
|
||||
const discountPrice = priceInfo.split("|")[1];
|
||||
const discountRate = priceInfo.split("|")[4];
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
nowMenu: nowMenu,
|
||||
productId: prdtId,
|
||||
productTitle: prdtNm,
|
||||
partner: patncNm,
|
||||
price: discountRate ? discountPrice : regularPrice,
|
||||
discount: discountRate,
|
||||
brand: brndNm,
|
||||
productOption: prodOptCval,
|
||||
category: catNm,
|
||||
contextName: Config.LOG_CONTEXT_NAME.DETAILPAGE,
|
||||
messageId: Config.LOG_MESSAGE_ID.BUY_NOW,
|
||||
})
|
||||
);
|
||||
dispatch(
|
||||
getMyInfoCheckoutInfo(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user