테스트 사이트 - 개발 중인 베타 버전입니다

회원만 가격 노출 부분 도움 요청드립니다. 채택완료

진리의빛 10년 전 조회 3,347

초보라서 힘드네요 참 에휴~~ 민폐기도 하구 ㅋ

그래도 고수님들의 도움을 요청합니다.

영카트 상품목록 부분에 노출 되는 가격을 회원만 노출 될 수 있도록 하고픈데요.

비회원에게 목록 노출시 '회원만공개' 라고 나올수 있도록이요 ^^

 

아래 소스에 어떻게 수정해야 좋을지... 도움 좀 부탁드립니다.

행복하세요~^^

 

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('', 0);

 

// 높이

$img_h = apms_img_height($thumb_w, $thumb_h);

 

// 너비

$item_w = apms_img_width($list_mods);

 

// 간격

$gap_right = ($wset['gap_r'] == "") ? 10 : $wset['gap_r'];

$gap_bottom = ($wset['gap_b'] == "") ? 30 : $wset['gap_b'];

 

// 새상품

$new_item = ($wset['newtime']) ? $wset['newtime'] : 24;

 

$list_cnt = count($list);

 

include_once($list_skin_path.'/category.skin.php');

?>

 

 

for ($i=0; $i < $list_cnt; $i++) { 

 

$item_label = $cur_price = $dc = '';

if($list[$i]['it_cust_price'] > 0 && $list[$i]['it_price'] > 0) {

$dc = round((($list[$i]['it_cust_price'] - $list[$i]['it_price']) / $list[$i]['it_cust_price']) * 100);

$cur_price = '

 '.number_format($list[$i]['it_cust_price']).'
';

}

 

if($list[$i]['it_id'] == $it_id) {

$item_label = '

Now
';

} else if($dc || $list[$i]['it_type5']) {

$item_label = '

DC
';

} else if($list[$i]['it_type3'] || $list[$i]['pt_num'] >= (G5_SERVER_TIME - ($new_item * 3600))) {

$item_label = '

New
';

}

 

// 이미지

$img = apms_it_thumbnail($list[$i], $thumb_w, $thumb_h, false, true);

 

// 아이콘

$item_icon = item_icon($list[$i]);

$item_icon = ($item_icon) ? '

'.$item_icon.'
' : '';

 

?>

0 && $i%$list_mods == 0) { ?>

 

<?php echo $img['alt'];?>

%

 

'.number_format($list[$i]['pt_comment']).'' : 0;?>

 

'.number_format($list[$i]['it_sum_qty']).'' : 0;?>

 

 

 

 

$sns_url  = G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id'];

$sns_title = get_text($list[$i]['it_name'].' | '.$config['cf_title']);

$sns_img = $list_skin_url.'/img';

echo  get_sns_share_link('facebook', $sns_url, $sns_title, $sns_img.'/sns_fb_s.png').' ';

echo  get_sns_share_link('twitter', $sns_url, $sns_title, $sns_img.'/sns_twt_s.png').' ';

echo  get_sns_share_link('googleplus', $sns_url, $sns_title, $sns_img.'/sns_goo_s.png').' ';

echo  get_sns_share_link('kakaostory', $sns_url, $sns_title, $sns_img.'/sns_kakaostory_s.png').' ';

echo  get_sns_share_link('kakaotalk', $sns_url, $sns_title, $sns_img.'/sns_kakao_s.png').' ';

echo  get_sns_share_link('naverband', $sns_url, $sns_title, $sns_img.'/sns_naverband_s.png').' ';

?>

등록된 자료가 없습니다.

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
10년 전

%

 

를 아래로 수정

 

 

% 

 

회원만공개

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

진리의빛
10년 전
감사합니다 (__)

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인