장바구니와 주문서,주문완료페이지의 옵션칸에 나오는 상품명을 안나오게 하고싶습니다.
본문
옵션이 없는 제품인경우 옵션칸이 그냥 빈채로 나왔으면하는데요. 옵션이 없는 상품은 옵션선택내용이 보이는부분에
상품명이 중복으로 보이고 있습니다.
옵션이 없는 상품인경우 옵션명이 보이는 칸은 그냥 빈칸으로 나오게 하고싶습니다.
답변 1
파일 lib/shop.lib.php
함수 print_item_options
원본
$sql = " select ct_option, ct_qty, io_price
from {$g5['g5_shop_cart_table']} where it_id = '$it_id' and od_id = '$cart_id' order by io_type asc, ct_id asc ";
수정코드
$sql = " select ct_option, ct_qty, io_price
from {$g5['g5_shop_cart_table']} where it_id = '$it_id' and od_id = '$cart_id' AND io_id != '' order by io_type asc, ct_id asc ";
답변을 작성하시기 전에 로그인 해주세요.