옵션에 가격 노출
본문
안녕하세요.
영카트 선택 옵션 부분에
+5000원 이런식으로 설정이 되는 곳 옆에
원래 가격을 노출하고 싶습니다.
shop.lib 에서
$price = ' + '.number_format($row['io_price']).'원';
이부분 옆에 $it_price 이렇게 하면 안먹히는데
이곳에선 원래의 판매가격이 안나오는것 인지요..ㅠㅠ
답변 1
$row[io_price]는 $g5['g5_shop_item_option_table']
불러오는 함수에 아래를 추가해 주시고
$it=sql_fetch("select it_price from {$g5['g5_shop_item_table']} where it_id='{$it_id}'");
number_format($it[it_price]) 를 사용하시면 됩니다.
답변을 작성하시기 전에 로그인 해주세요.