THEME BACKGROUND

질문게시판

카테고리 비비샵4.x
글쓴이 andy(llean***)2016-12-21 15:13:51
제목 네이버페이설치시
내용

 

안녕하세요 오랜만입니다.

 

사이트도 많이 변했군요 ~

 

네이버페이를 설치할려고 하는데요.

 

보류가 되었다는 메일이 왔습니다.

 

보류메세지 : [구매하기 버튼 연동 요청] 귀사의 쇼핑몰 상품 상세페이지 내 구매하기 버튼으로 구매시 장바구니 상품과 같이 구매가 이루어지는 것으로 확인됩니다. 구매하기 버튼으로 구매시 해당 상품만 구매가 이루어 지도록 반영하여 주시기 바랍니다.

 

order.php 부분을 수정해야 할것 같은데 어디를 수정해야지 깔끔하게 수정이 될가요?

 

 

<?
 if(!isset($baguni_uid)) error_msg("$error_msg");

 $use_card='1';
 $use_banking='1';
 $use_handphone='1';
 $use_ktcard='1';
 $use_point='1';
 $use_cyber='1';
 $use_free='0';

 if($setup3[board_name]=="zboard") {
  $user_id = $member[user_id];
  $name  = $member[name];
  $email = $member[email];
  $home_tel   = explode("-",$member[home_tel]);
  $order_tel1=$home_tel[0];
  $order_tel2=$home_tel[1];
  $order_tel3=$home_tel[2];
  $handphone   = explode("-",$member[handphone]);
  $order_hp1=$handphone[0];
  $order_hp2=$handphone[1];
  $order_hp3=$handphone[2];
  $addr_num=explode("-",$member[addr_num]);
  $addr_num1=$addr_num[0];
  $addr_num2=$addr_num[1];
  $address1=$member[home_address];
  $address2=$member[home_address2];
 }elseif($setup3[board_name]=="rgboard") {
  $user_id = $member[mb_id];
  $name  = $member[mb_name];
  $email = $member[mb_email];
  $home_tel   = explode("-",$member[mb_tel]);
  $order_tel1=$home_tel[0];
  $order_tel2=$home_tel[1];
  $order_tel3=$home_tel[2];
  $handphone   = explode("-",$member[mb_mobile]);
  $order_hp1=$handphone[0];
  $order_hp2=$handphone[1];
  $order_hp3=$handphone[2];
  $addr_num=explode("-",$member[mb_post]);
  $addr_num1=$addr_num[0];
  $addr_num2=$addr_num[1];
  $address1=$member[mb_address1];
  $address2=$member[mb_address2];
 }elseif($setup3[board_name]=="gnuboard") {
  $user_id = $member[mb_id];
  $name  = $member[mb_name];
  $email = $member[mb_email];
  $home_tel   = explode("-",$member[mb_tel]);
  $order_tel1=$home_tel[0];
  $order_tel2=$home_tel[1];
  $order_tel3=$home_tel[2];
  $handphone   = explode("-",$member[mb_hp]);
  $order_hp1=$handphone[0];
  $order_hp2=$handphone[1];
  $order_hp3=$handphone[2];
  $addr_num1=$member[mb_zip1];
  $addr_num2=$member[mb_zip2];
  $address1=$member[mb_addr1];
  $address2=$member[mb_addr2];
 }else {
  $user_id = $member[user_id];
  $name  = $member[name];
  $company = $member[company];
  $email = $member[email];
  $home_tel   = explode("-",$member[home_tel]);
  $order_tel1=$home_tel[0];
  $order_tel2=$home_tel[1];
  $order_tel3=$home_tel[2];
  $handphone   = explode("-",$member[handphone]);
  $order_hp1=$handphone[0];
  $order_hp2=$handphone[1];
  $order_hp3=$handphone[2];

  $addr_num=explode("-",$member[addr_num]);
  $addr_num1=$addr_num[0];
  $addr_num2=$addr_num[1];
  $address1=$member[address1];
  $address2=$member[address2];
 }

 if(!$order_tel1) $order_tel1=" ";
 if(!$order_tel2) $order_tel2=" ";
 if(!$order_tel3) $order_tel3=" ";
 if(!$order_hp1) $order_hp1=" ";
 if(!$order_hp2) $order_hp2=" ";
 if(!$order_hp3) $order_hp3=" ";

 if(!$name) $name=" ";
 if(!$email) $email=" ";
 if(!$home_tel) $home_tel=" ";
 if(!$handphone) $handphone=" ";
 if(!$addr_num1) $addr_num1=" ";
 if(!$addr_num2) $addr_num2=" ";
 if(!$address1) $address1=" ";
 if(!$address2) $address2=" ";

 $basongbi=number_format($setup3[basongbi]);

// 장바구니 상품 리스트
 $sql = " select * from $baguni_table where baguni_uid = '$baguni_uid' order by baguni_datetime desc ";
 $result = mysql_query($sql);
 $cn=mysql_num_rows($result);
    $baguni_total_seprice = 0;
 $loop=1;
 $free_basongbi='0';
 $good_info='';
 $total_plus_pirce="0";
 while($row=mysql_fetch_array($result)) {

 $data=fetch_assoc("select * from $item_table where item_id = '$row[item_id]'");

 if($data[item_gongu]=='1') $item_gongu='1';
 $ORDERHEADER[$loop]=$loop;

 $row1=fetch_assoc("select * from $select_table where item_id = '$row[item_id]' and i = '0'");
 if($row1[images]) $oimg[$loop]="<img src='".$_shop_url."".$_item_img_dir."/".$row1[images]."' border=0 width='70' align=absmiddle>";
 else $oimg[$loop]="<img src='".$_shop_url."".$_skin_dir."/img/noimage.gif' border=0 width='70' height='70'>";
 $item_name[$loop]=$data[item_name];
 $option_1[$loop]=$row[option_1];
 $option_2[$loop]=$row[option_2];
 $option_3[$loop]=$row[option_3];
 $select_cn[$loop]=$row[select_cn];

 $baguni_seprice[$loop]=number_format($row[baguni_seprice]);
 $baguni_qty[$loop]=$row[baguni_qty];

 $be_type=$data[be_type];
    if($be_type == '2')  $add_be[$loop] = $setup3[basongbi] * $row[baguni_qty]-$setup3[basongbi];
 else $add_be[$loop] = "0";
 $plus_price=$row[plus1_price]+$row[plus2_price]+$row[plus3_price]+$row[plus4_price]+$row[plus5_price]+$row[plus6_price]+$row[plus7_price]+$row[plus8_price]+$row[plus9_price]+$row[plus10_price];
 $plus_nprice[$loop]=number_format($plus_price);
 $total_plus_pirce+=$plus_price;

 $baguni_total_seprice += ($row[baguni_seprice] * $row[baguni_qty]);
 $baguni_total_point += ($row[baguni_point] * $row[baguni_qty]);

 $total_add_be += $add_be[$loop];

 $t_seprice[$loop]=number_format(($row[baguni_seprice] * $row[baguni_qty]+$plus_price));
 $t_point[$loop]=number_format(($row[baguni_point] * $row[baguni_qty]));

 if($data[use_basongbi]=='1') $free_basongbi='1';
 $good_info=$good_info."seq=".$loop."ordr_numb=".$row[baguni_id]."good_name=".$data[item_name]."good_cntx=".$row[baguni_qty]."good_amtx=".$row[baguni_seprice];
 
 $loop++;
 }

 $cnn=$cn-1;
 if($cn>1) $menu=$data[item_name]."외 ".$cnn."개";
 else $menu=$data[item_name];
 if($cn>20) $cn=20;

 if($setup3[basongbi_limit]<=$baguni_total_seprice||$free_basongbi=='1') {
  $basongbi="0";
 }else {
  $basongbi = $setup3[basongbi];
 }


 $total_basongbi = $basongbi;
 if($free_basongbi=='1') $total_nbasongbi = "무료배송상품";
 else $total_nbasongbi = number_format($total_basongbi)."원";

 if($setup3[use_basongbi]=="0") {
  $basong_type="(착불)";
  $total_seprice=$baguni_total_seprice;
 }else if($setup3[use_basongbi]=="1") {
  $basong_type=" ";
  $total_seprice=$baguni_total_seprice+$total_basongbi;
 }

 $order_seprice=$baguni_total_seprice;
 $order_point=$baguni_total_point; // 적립금지급
 $total_seprice+=$plus_price+$total_add_be;
 $baguni_total_seprice+=$plus_price;

 if($setup3[use_point]=='0') { $h_point_start2="<!--"; $h_point_end2="-->"; }
 else { $h_point_start2=" "; $h_point_end2=" "; }

 $baguni_total_nseprice=number_format($baguni_total_seprice);
 $baguni_total_npoint=number_format($baguni_total_point);
 $total_nseprice=number_format($total_seprice);
 $total_plus_nprice=number_format($total_plus_pirce);

 if($setup3[use_decision1]=='1') $decision1="<input type=radio name=decision_type value=1 checked onclick=\"pay_check(this.form);\"> $decision_value[0]";
 if($setup3[use_decision7]=='1'&&$use_point=='1'&&$member[point3]>=$setup3[r_point]&&$member[point3]!="0") {
  if($member[point3]<=$baguni_total_seprice) $point="$member[point3]";
  else $point=$baguni_total_seprice;
  $point3=$member[point3];
  $vpoint3=number_format($member[point3]);
  $decision7="block";
     if($tpoint==$total_seprice) {
   $decision_state="$decision7";
  }
 }else {
  $decision7="none";
  $point3="0";
 }

 if($setup3[pg_name]=='KCP') {
  if($setup3[shop_id]) $shop_id=$setup3[shop_id];
  else $shop_id="T0007";
  if($setup3[shop_id2]) $shop_key=$setup3[shop_id2];
  else $shop_key="4Ho4YsuOZlLXUZUdOxM1Q7X__";
  $onsubmit="return jsf__pay(this)";
  include "../include/pay_kcp_js.php";
 }else {
  $onsubmit="return form_check(this)";
  $use_card="0";
  $use_banking="0";
  $use_handphone="0";
  $use_cyber="0";
  $use_ktcard="0";
 }

 if($setup3[use_decision2]=='1'&&$use_card=='1') $decision2="<input type=radio name=decision_type value=2 onclick=\"pay_check(this.form);\"> $decision_value[2]";
 if($setup3[use_decision3]=='1'&&$use_banking=='1') $decision3="<input type=radio name=decision_type value=3 onclick=\"pay_check(this.form);\"> $decision_value[3]";
 if($setup3[use_decision4]=='1'&&$use_handphone=='1') $decision4="<input type=radio name=decision_type value=4 onclick=\"pay_check(this.form);\"> $decision_value[4]";
 if($setup3[use_decision5]=='1'&&$use_cyber=='1') $decision5="<input type=radio name=decision_type value=5 onclick=\"pay_check(this.form);\"> $decision_value[5]";
 if($setup3[use_decision6]=='1'&&$use_ktcard=='1') $decision6="<input type=radio name=decision_type value=6 onclick=\"pay_check(this.form);\"> $decision_value[6]";

 if(!$decision1) $decision1=" ";
 if(!$decision2) $decision2=" ";
 if(!$decision3) $decision3=" ";
 if(!$decision4) $decision4=" ";
 if(!$decision5) $decision5=" ";
 if(!$decision6) $decision6=" ";

 $sql_b = " select * from $bank_table";
 $result_b = mysql_query($sql_b);
 $decision_type = "<select name=order_bank>";
 $decision_type .= "<option value='0'>$order_value[10]";
 while($row_b=mysql_fetch_array($result_b)) {
   $decision_type .= "<option value='$row_b[bank_name] $row_b[bank_number] ($row_b[bank_pname])'>$row_b[bank_name] $row_b[bank_number] ($row_b[bank_pname])";
 }
 $decision_type .= "</select>";

 $shop_url=$_shop_url."shop";

print Readskin($_shop_path."".$_skin_dir."/order.html");
?>

 

 

원격지원

전화상담후 진행할 수 있습니다.