shop/item.php 를
$str = get_item_options(trim($it["it_opt{$i}_subject"]), trim($it["it_opt{$i}"]), $i, get_amount($it));
lib/shop.lib.php 를
function get_item_options($subject, $option, $index, $amount)
{
...
// 옵션에 금액이 있다면
if ($opt[1] != 0)
{
$str .= " (";
/*
// - 금액이 아니라면 모두 + 금액으로
//if (!ereg("[-]", $opt[1]))
if (!preg_match("/[-]/", $opt[1]))
$str .= "+";
$str .= display_amount($opt[1]) . ")";
*/
$str .= display_amount($amount + $opt[1]) . ")";
}
$str .= "\n";
}
$str .= "\n\n";
}
return $str;
}
와 같이 수정해 보시기 바랍니다.
어제 말씀하신대로 하니 옵션가 변경이 잘되어서 보여지는데 저희 쇼핑몰 황금마차라는 코너를 운영하고 있는데 위 소스로 변경하여 사이트 적용시 첨부이미지처럼 shop.lib.php 432라인 에러 표시가 됩니다.
그리고 옵션이 있는 제품의 경우 옵션가 변경이 되지 않습니다.(옵션가가 먹지 않습니다.)
$str = get_item_options(trim($it["it_opt{$i}_subject"]), trim($it["it_opt{$i}"]), $i, get_amount($it));
lib/shop.lib.php 를
function get_item_options($subject, $option, $index, $amount)
{
...
// 옵션에 금액이 있다면
if ($opt[1] != 0)
{
$str .= " (";
/*
// - 금액이 아니라면 모두 + 금액으로
//if (!ereg("[-]", $opt[1]))
if (!preg_match("/[-]/", $opt[1]))
$str .= "+";
$str .= display_amount($opt[1]) . ")";
*/
$str .= display_amount($amount + $opt[1]) . ")";
}
$str .= "\n";
}
$str .= "\n\n";
}
return $str;
}
와 같이 수정해 보시기 바랍니다.
어제 말씀하신대로 하니 옵션가 변경이 잘되어서 보여지는데 저희 쇼핑몰 황금마차라는 코너를 운영하고 있는데 위 소스로 변경하여 사이트 적용시 첨부이미지처럼 shop.lib.php 432라인 에러 표시가 됩니다.
그리고 옵션이 있는 제품의 경우 옵션가 변경이 되지 않습니다.(옵션가가 먹지 않습니다.)
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기