[상품 상세]
- 옵션 미선택시 add to cart눌럿을때 please select option 얼럿 뜨도록 변경.
This commit is contained in:
@@ -1087,6 +1087,46 @@ const BuyOption = ({
|
|||||||
optionForUse?.optNm || optionForUse?.prodOptCval || '';
|
optionForUse?.optNm || optionForUse?.prodOptCval || '';
|
||||||
|
|
||||||
if (!isMock) {
|
if (!isMock) {
|
||||||
|
if (
|
||||||
|
productOptionInfos &&
|
||||||
|
productOptionInfos.length > 1 &&
|
||||||
|
productInfo?.optProdYn === 'Y'
|
||||||
|
) {
|
||||||
|
|
||||||
|
if (selectFirstOptionIndex === 0) {
|
||||||
|
dispatch(
|
||||||
|
showError(
|
||||||
|
null,
|
||||||
|
"PLEASE SELECT OPTION",
|
||||||
|
false,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
productOptionInfos[selectedBtnOptIdx]?.prdtOptDtl &&
|
||||||
|
productOptionInfos[selectedBtnOptIdx]?.prdtOptDtl.length > 1 &&
|
||||||
|
productInfo?.optProdYn === 'Y'
|
||||||
|
) {
|
||||||
|
|
||||||
|
if (selectSecondOptionIndex === 0) {
|
||||||
|
dispatch(
|
||||||
|
showError(
|
||||||
|
null,
|
||||||
|
"PLEASE SELECT OPTION",
|
||||||
|
false,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
dispatch(
|
dispatch(
|
||||||
insertMyinfoCart({
|
insertMyinfoCart({
|
||||||
mbrNo: userNumber,
|
mbrNo: userNumber,
|
||||||
|
|||||||
Reference in New Issue
Block a user