[Y5] OK Cashbag 적용하기 > 온라인강의

본문 바로가기
 
 
 
오늘 385
어제 1,573
최대 2,526
전체 3,396,477

최근 방문자

1853
1775
1756
1706
1573
385
19 20 21 22 23 24
비즈니스의 시작 비즈명함 ~ 가격, 품질, 배송 3가지 만족을 드리는 비즈명함 / 즉석명함 / 급행서비스 / 서울 전지역 수도권일부 3시간배송

select * from g5_menu where me_use = '1' and me_link like '%lecture%'
온라인강좌 홈 > 온라인강좌 > 온라인강좌

영카트 | [Y5] OK Cashbag 적용하기

페이지 정보

작성일2014-08-30 00:07 조회8,934회 댓글0건

본문

첨부 skin_shop_okcashbag_20140830.zip (78.0K) 44회 다운로드 DATE : 2014-08-30 00:46:51
첨부 mobile_skin_okcashbag_20140830.zip (59.4K) 4회 다운로드 DATE : 2014-08-30 00:46:51
Ⅰ. MySQL 테이블 필드 생성
Ⅱ. PC 그누보드 수정
Ⅲ. 모바일 그누보드 수정
Ⅳ. 스킨 업로드
Ⅴ. 관리자 설정
Ⅵ. OK캐쉬백 jQuery



Ⅰ. MySQL 테이블 필드 생성


alter table g5_shop_order add `OKnum1` varchar(10) NULL ;
alter table g5_shop_order add `OKnum2` varchar(10) NULL ;
alter table g5_shop_order add `OKnum3` varchar(10) NULL ;
alter table g5_shop_order add `OKnum4` varchar(10) NULL ;
alter table g5_shop_order add `od_escrow3` varchar(255) NULL ;



Ⅱ. PC 그누보드 수정


1. 영카트5 / shop / cart.php
2. 영카트5 / shop / cartupoption.php
3. 영카트5 / shop / cartupdate.php
4. 영카트5 / shop / item.php
5. 영카트5 / shop / itembuy.php
6. 영카트5 / shop / itemqaformupdate.php
7. 영카트5 / shop / itemrecommend.php
8. 영카트5 / shop / itemstocksms.php
9. 영카트5 / shop / itemuse.php
10. 영카트5 / shop / itemusformupdate.php
11. 영카트5 / shop / list.php
12. 영카트5 / shop / listtype.php
13. 영카트5 / shop / mypage.php
14. 영카트5 / shop / orderaddress.php
15. 영카트5 / shop / orderaddressupdate.php
16. 영카트5 / shop / orderform.php
17. 영카트5 / shop / orderform_okcashbag.php  ... 파일신규
18. 영카트5 / shop / orderformupdate.php
19. 영카트5 / shop / orderinquiry.php
20. 영카트5 / shop / orderinquiry.sub.php
21. 영카트5 / shop / orderinquirycancel.php
22. 영카트5 / shop / orderinquiryview.php
23. 영카트5 / shop / personalpay.php
24. 영카트5 / shop / presonalpayform.php
25. 영카트5 / shop / personalpayformupdate.php
26. 영카트5 / shop / personalpayresult.php
27. 영카트5 / shop / search.php
28. 영카트5 / shop / wishlist.php
29. 영카트5 / shop / wishupdate.php


1. 영카트5 / shop / cart.php  28줄
    <form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">    <input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


2. 영카트5 / shop / cartupoption.php  27줄

<form name="foption" method="post" action="<?php echo G5_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="foption" method="post" action="<?php echo G5_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">  <input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


3. 영카트5 / shop / cartupdate.php  273~282줄
        goto_url(G5_SHOP_URL."/orderform.php?sw_direct=$sw_direct");
    }
    else
    {
        goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/orderform.php?sw_direct=$sw_direct"));
    }
}
else
{
    goto_url(G5_SHOP_URL.'/cart.php');

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        goto_url(G5_SHOP_URL."/orderform.php?sw_direct=$sw_direct&OKBAG=$OKBAG");
    }
    else
    {
        goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/orderform.php?sw_direct=$sw_direct&OKBAG=$OKBAG"));
    }
}
else
{
    goto_url(G5_SHOP_URL.'/cart.php?OKBAG=$OKBAG');


4-1. 영카트5 / shop / item.php  126~128줄 변경

    $action_url = G5_HTTPS_DOMAIN.'/'.G5_SHOP_DIR.'/cartupdate.php';
else
    $action_url = './cartupdate.php';

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $action_url = G5_HTTPS_DOMAIN.'/'.G5_SHOP_DIR.'/cartupdate.php?OKBAG='. $OKBAG;
else
    $action_url = './cartupdate.php?OKBAG='. $OKBAG;


4-2. 영카트5 / shop / item.php  135줄 변경

    $prev_href = '<a href="./item.php?it_id='.$row['it_id'].'" id="siblings_prev">';

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $prev_href = '<a href="./item.php?OKBAG='. $OKBAG.'&it_id='.$row['it_id'].'" id="siblings_prev">';


4-3. 영카트5 / shop / item.php  148줄 변경

    $next_href = '<a href="./item.php?it_id='.$row['it_id'].'" id="siblings_next">';

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $next_href = '<a href="./item.php?OKBAG='. $OKBAG.'&it_id='.$row['it_id'].'" id="siblings_next">';


5-1. 영카트5 / shop / itembuy.php  12줄 변경

    alert('상품정보가 존재하지 않습니다.', G5_SHOP_URL);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    alert('상품정보가 존재하지 않습니다.', G5_SHOP_URL.'/?OKBAG='.$OKBAG);


5-2. 영카트5 / shop / itembuy.php  22줄 변경

    alert('상품의 재고가 부족하여 구매할 수 없습니다.', G5_SHOP_URL);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    alert('상품의 재고가 부족하여 구매할 수 없습니다.', G5_SHOP_URL.'/?OKBAG='.$OKBAG);


5-3. 영카트5 / shop / itembuy.php  29줄 변경

    alert('상품의 옵션정보가 변경됐습니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    alert('상품의 옵션정보가 변경됐습니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id.'&OKBAG='.$OKBAG);


5-4. 영카트5 / shop / itembuy.php  33줄을 변경

    alert(get_text($it['it_name']).' 상품은 최소 '.number_format($it['it_buy_min_qty']).' 이상 구매하셔야 합니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    alert(get_text($it['it_name']).' 상품은 최소 '.number_format($it['it_buy_min_qty']).' 이상 구매하셔야 합니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id.'&OKBAG='.$OKBAG);


5-5. 영카트5 / shop / itembuy.php  44줄 변경

        alert('상품의 옵션정보가 올바르지 않습니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        alert('상품의 옵션정보가 올바르지 않습니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id.'&OKBAG='.$OKBAG);


6. 영카트5 / shop / itemqaformupdate.php  23~25줄 변경

    $url = './iteminfo.php?it_id='.$it_id.'&info=qa';
else
    $url = "./item.php?it_id=$it_id&_=".get_token()."#sit_qa";

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $url = './iteminfo.php?OKBAG=".$OKBAG."&it_id='.$it_id.'&info=qa';
else
    $url = "./item.php?OKBAG=".$OKBAG."&it_id=$it_id&_=".get_token()."#sit_qa";


7. 영카트5 / shop / itemrecommend.php  29줄 변경

    <form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


8. 영카트5 / shop / itemstocksms.php  26줄 변경

    <form name="fstocksms" method="post" action="<?php echo G5_HTTPS_SHOP_URL; ?>/itemstocksmsupdate.php" onsubmit="return fstocksms_submit(this);"  autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="fstocksms" method="post" action="<?php echo G5_HTTPS_SHOP_URL; ?>/itemstocksmsupdate.php" onsubmit="return fstocksms_submit(this);"  autocomplete="off">input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


9. 영카트5 / shop / itemuse.php  50~52줄을 변경

$itemuse_list = "./itemuselist.php";
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

$itemuse_list = "./itemuselist.php?OKBAG=".$OKBAG;
$itemuse_form = "./itemuseform.php?it_id=".$it_id."&OKBAG=".$OKBAG;
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id."&OKBAG=".$OKBAG;


10. 영카트5 / shop / itemuseformupdate.php  27~29줄을 변경

    $url = './iteminfo.php?it_id='.$it_id.'&info=use';
else
    $url = "./item.php?it_id=$it_id&_=".get_token()."#sit_use";

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $url = './iteminfo.php?OKBAG='.$OKBAG.'&it_id='.$it_id.'&info=use';
else
    $url = "./item.php?OKBAG=".$OKBAG."&it_id=$it_id&_=".get_token()."#sit_use";


11. 영카트5 / shop / list.php  47줄을 변경

    echo '<div class="sct_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/categoryform.php?w=u&amp;ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    echo '<div class="sct_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/categoryform.php?w=u&amp;ca_id='.$ca_id.'&OKBAG='.$OKBAG.'" class="btn_admin">분류 관리</a></div>';


12. 영카트5 / shop / listtype.php  82줄을 변경

$qstr .= '&amp;type='.$type.'&amp;sort='.$sort;

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

$qstr .= '&amp;type='.$type.'&amp;sort='.$sort.'&amp;OKBAG='.$OKBAG;


13-1. 영카트5 / shop / mypage.php  10줄 수정

    goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php"));

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php?OKBAG=".$OKBAG.""));


13-2. 영카트5 / shop / mypage.php  41~42줄 수정

                <li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=http://www.happyjung.com/bbs/register_form.php#038;quot; class="btn01">회원정보수정</a></li>
                <li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=http://www.happyjung.com/bbs/member_leave.php#038;quot; onclick="return member_leave();" class="btn02">회원탈퇴</a></li>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                <li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=http://www.happyjung.com/bbs/register_form.php#038;lt;?php echo $OKBAG; ?>" class="btn01">회원정보수정</a></li>
                <li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=http://www.happyjung.com/bbs/member_leave.php#038;lt;?php echo $OKBAG; ?>" onclick="return member_leave();" class="btn02">회원탈퇴</a></li>


13-3. 영카트5 / shop / mypage.php  77줄 수정

            <a href="./orderinquiry.php" class="btn01">주문내역 더보기</a>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

            <a href="./orderinquiry.php?OKBAG=<?php echo $OKBAG; ?>" class="btn01">주문내역 더보기</a>


13-4. 영카트5 / shop / mypage.php  112줄 수정

                <td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                <td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>&OKBAG=<?php echo $OKBAG; ?>"><?php echo stripslashes($row['it_name']); ?></a>


13-5. 영카트5 / shop / mypage.php  127줄 수정

            <a href="./wishlist.php" class="btn01">위시리스트 더보기</a>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

            <a href="./wishlist.php?OKBAG=<?php echo $OKBAG; ?>" class="btn01">위시리스트 더보기</a>


14-1. 영카트5 / shop / orderaddress.php  46줄 수정

<form name="forderaddress" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="forderaddress" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


14-2. 영카트5 / shop / orderaddress.php  110줄 수정
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=", $OKBAG); ?>


15. 영카트5 / shop / orderaddressupdate.php  35줄 수정

goto_url(G5_SHOP_URL.'/orderaddress.php');

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

goto_url(G5_SHOP_URL.'/orderaddress.php?OKBAG='.$OKBAG);


16-1. 영카트5 / shop / orderform.php  52줄 변경

<form name="forderform" id="forderform" method="post" action="<?php echo $order_action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="forderform" id="forderform" method="post" action="<?php echo $order_action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


16-2. 영카트5 / shop / orderform.php  529~532줄 변경
    ?>

    <section id="sod_frm_pay">
        <h2>결제정보</h2>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    ?>
    <?php include G5_SHOP_PATH ."/orderform_okcashbag.php"; // 2014-08-29 해피정닷컴 okcashbag 작업 ?>
    <section id="sod_frm_pay">
        <h2>결제정보</h2>


17. 영카트5 / shop / orderform_okcashbag.php  추가

    <section id="sod_frm_pay">
        <h2>OKCashbag 정보</h2>

        <div class="tbl_frm01 tbl_wrap">
        <img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/okcashbag_title.png"><br>
            <table>
            <tbody>
            <tr>
                <th scope="row">정보동의</th>
                <td>OK캐쉬백 적립을 위해 고객님의 카드번호, 성명, 결제금액, 주문번호 정보가 SK플래닛에 제공되며, 적립 후 폐기됩니다. 이에 동의하십니까?<br>
                    <input type="radio" name="okcashbag_agree" value="y">동의함 &nbsp; <input type="radio" name="okcashbag_agree" value="n">동의하지 않음
                </td>
            </tr>
            <tr>
                <th scope="row">카드번호 입력</th>
                <td>
                    <input type="text" name="OKnum1" value="" class="frm_input" style="width:45px;"> -
                    <input type="text" name="OKnum2" value="" class="frm_input" style="width:45px;"> -
                    <input type="text" name="OKnum3" value="" class="frm_input" style="width:45px;"> -
                    <input type="text" name="OKnum4" value="" class="frm_input" style="width:45px;"><br>
                    * 카드번호를 입력하지 않으시거나 잘못된 번호를 입력하신 경우, 오케이 캐쉬백 포인트 적립이 불가하오니 주의해 입력해 주시기 바랍니다.<br>
                    * 적립 시점은 구매 확정 후 익월 말입니다.
                </td>
            </tr>
            </tbody>
            </table>
        </div>
    </section>


18-1. 영카트5 / shop / orderformupdate.php  409~411줄 변경
$od_email        = get_email_address($od_email);

// 주문서에 입력

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

$od_email        = get_email_address($od_email);
$OKnum1=$_POST['OKnum1']; $OKnum2=$_POST['OKnum2']; $OKnum3=$_POST['OKnum3']; $OKnum4=$_POST['OKnum4']; // 2014-08-29 해피정닷컴 okcashbag 작업
// 주문서에 입력

18-2. 영카트5 / shop / orderformupdate.php  462줄 변경

              od_settle_case    = '$od_settle_case'

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                od_settle_case    = '$od_settle_case', od_escrow3 = '$OKBAG', OKnum1 = '$OKnum1', OKnum2 = '$OKnum2', OKnum3 = '$OKnum3', OKnum4 = '$OKnum4'


19-1. 영카트5 / shop / orderinquiry.php  24줄 변경

    goto_url(G5_BBS_URL.'/login.php?url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    goto_url(G5_BBS_URL.'/login.php?OKBAG='.$OKBAG.'&url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));


19-2. 영카트5 / shop / orderinquiry.php  56줄 변경

        goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&amp;uid='.$uid);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        goto_url(G5_SHOP_URL.'/orderinquiryview.php?OKBAG='.$OKBAG.'&od_id='.$row['od_id'].'&amp;uid='.$uid);


19-3. 영카트5 / shop / orderinquiry.php  73줄 변경

    <?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

  <?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=", $OKBAG); ?>


20. 영카트5 / shop / orderinquiry.sub.php  60줄 변경

                <a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

            <a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>&amp;OKBAG=<?php echo $OKBAG; ?>"><?php echo $row['od_id']; ?></a>


21-1. 영카트 / shop / orderinquirycancel.php  28줄 변경

    alert("취소할 수 있는 주문이 아닙니다.", G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&amp;uid=$uid");

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    alert("취소할 수 있는 주문이 아닙니다.", G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&amp;uid=$uid&amp;OKBAG=$OKBAG");


21-2. 영카트 / shop / orderinquirycancel.php  115줄 변경

goto_url(G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&amp;uid=$uid);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

goto_url(G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&amp;uid=$uid&amp;OKBAG=$OKBAG");


22-1. 영카트5 / shop / orderinquiryview.php  132줄 변경

                <td headers="th_itname" colspan="7"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                <td headers="th_itname" colspan="7"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>&OKBAG=<?php echo $OKBAG; ?>"><?php echo $row['it_name']; ?></a></td>


22-2. 영카트5 / shop / orderinquiryview.php  616줄 변경

            <form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

            <form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);"> <input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


22-3. 영카트5 / shop / orderinquiryview.php  640줄 변경

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


23. 영카트5 / shop / personalpay.php  65줄 변경

    echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=');

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=', $OKBAG);


24. 영카트5 / shop / presonalpayform.php  61줄 변경

<form name="forderform" id="forderform" method="post" action="<?php echo $action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="forderform" id="forderform" method="post" action="<?php echo $action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


25. 영카트5 / shop / personalpayformupdate.php  208줄 변경

goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&amp;uid='.$uid);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&amp;uid='.$uid.'&OKBAG='.$OKBAG);


26. 영카트5 / shop / personalpayresult.php  215줄 변경

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


27. 영카트5 / shop / search.php 118줄 변경

        <form name="frmdetailsearch">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <form name="frmdetailsearch"> <input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


28. 영카트5 / shop / wishlist.php  19줄을 변경

    <form name="fwishlist" method="post" action="./cartupdate.php">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="fwishlist" method="post" action="./cartupdate.php"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


29. 영카트5 / shop / wishupdate.php  51줄 변경

goto_url("./wishlist.php");

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

goto_url("./wishlist.php?OKBAG=$OKBAG");




Ⅲ. 모바일 그누보드 수정

1. 영카트5 / mobile / shop / cart.php
2. 영카트5 / mobile / shop / category.php
3. 영카트5 / mobile / shop / item.php
4. 영카트5 / mobile / shop / iteminfo.php
5. 영카트5 / mobile / shop / itemrecommend.php
6. 영카트5 / mobile / shop / itemuse.php
7. 영카트5 / mobile / shop / list.php
8. 영카트5 / mobile / shop / mypage.php
9. 영카트5 / mobile / shop / orderaddress.php
10. 영카트5 / mobile / shop / orderaddressupdate.php
11. 영카트5 / mobile / shop / orderform.php
12. 영카트5 / mobile / shop / orderformupdate.php
13. 영카트5 / mobile / shop / orderinquiry.php
14. 영카트5 / mobile / shop / orderinquiry.sub.php
15. 영카트5 / mobile / shop / orderinquiryview.php
16. 영카트5 / mobile / shop / personalpay.php
17. 영카트5 / mobile / shop / presonalpayform.php
18. 영카트5 / mobile / shop / personalpayformupdate.php
19. 영카트5 / mobile / shop / personalpayresult.php
20. 영카트5 / mobile / shop / search.php
21. 영카트5 / mobile / shop / wishlist.php


1. 영카트5 / mobile / shop / cart.php  35줄
    <form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


2. 영카트5 / mobile / shop / category.php  32~33줄

        $ca_href = G5_SHOP_URL.'/category.php?ca='.$row['ca_id'];
        $list_href = G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id'];

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        $ca_href = G5_SHOP_URL.'/category.php?ca='.$row['ca_id'].'&OKBAG='. $OKBAG;
        $list_href = G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id'].'&OKBAG='. $OKBAG;


3-1. 영카트5 / mobile / shop / item.php  72줄 변경

    $prev_href = '<a href="'.G5_SHOP_URL.'/item.php?it_id='.$row['it_id'].'" id="siblings_prev">';

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

$sns_url  = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'].'&OKBAG='. $OKBAG;


3-2. 영카트5 / mobile / shop / item.php  90줄 변경

    $next_href = '<a href="'.G5_SHOP_URL.'/item.php?it_id='.$row['it_id'].'" id="siblings_next">';

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $next_href = '<a href="'.G5_SHOP_URL.'/item.php?OKBAG='. $OKBAG.'&it_id='.$row['it_id'].'" id="siblings_next">';


4. 영카트5 / mobile / shop / iteminfo.php  57줄

    $href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id.'&OKBAG='.$OKBAG;


5. 영카트5 / mobile / shop / itemrecommend.php  23줄 변경

    <form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


6. 영카트5 / mobile / shop / itemuse.php  5~7줄

$itemuse_list = "./itemuselist.php";
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

$itemuse_list = "./itemuselist.php?OKBAG=".$OKBAG;
$itemuse_form = "./itemuseform.php?it_id=".$it_id."&OKBAG=".$OKBAG;
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id."&OKBAG=".$OKBAG;


7. 영카트5 / mobile / shop / list.php  107줄을 변경

    $qstr1 .='&amp;sort='.$sort.'&amp;sortodr='.$sortodr;

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    $qstr1 .='&amp;sort='.$sort.'&amp;sortodr='.$sortodr.'&amp;OKBAG='.$OKBAG;


8-1. 영카트5 / mobile / shop / mypage.php  5줄

    goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php"));

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php?OKBAG=".$OKBAG.""));


8-2. 영카트5 / mobile / shop / mypage.php  49줄 수정

        <h2><a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php">최근 주문내역</a></h2>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <h2><a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php?OKBAG=<?php echo $OKBAG; ?>">최근 주문내역</a></h2>


8-3. 영카트5 / mobile / shop / mypage.php  60줄 수정

        <h2><a href="<?php echo G5_SHOP_URL; ?>/wishlist.php">최근 위시리스트</a></h2>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <h2><a href="<?php echo G5_SHOP_URL; ?>/wishlist.php?OKBAG=<?php echo $OKBAG; ?>">최근 위시리스트</a></h2>


8-4. 영카트5 / mobile / shop / mypage.php  83줄

                    <a href="./item.php?it_id=<?php echo $row['it_id']; ?>" class="info_link"><?php echo stripslashes($row['it_name']); ?></a>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                    <a href="./item.php?it_id=<?php echo $row['it_id']; ?>&OKBAG=<?php echo $OKBAG; ?>" class="info_link"><?php echo stripslashes($row['it_name']); ?></a>


9-1. 영카트5 / mobile / shop / orderaddress.php  10줄 수정

<form name="forderaddress" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="forderaddress" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


9-2. 영카트5 / mobile / shop / orderaddress.php  57줄 수정

<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=", $OKBAG); ?>


10. 영카트5 / mobile / shop / orderaddressupdate.php  35줄 수정

goto_url(G5_SHOP_URL.'/orderaddress.php');

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

goto_url(G5_SHOP_URL.'/orderaddress.php?OKBAG='.$OKBAG);


11-1. 영카트5 / mobile / shop / orderform.php  52줄 변경

<form name="forderform" id="forderform" method="post" action="<?php echo $order_action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="forderform" id="forderform" method="post" action="<?php echo $order_action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


11-2. 영카트5 / mobile / shop / orderform.php  270줄 변경
    <form name="forderform" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <form name="forderform" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


11-3. 영카트5 / mobile / shop / orderform.php  503~507줄 변경
    ?>

    <section id="sod_frm_pay">
        <h2>결제정보 입력</h2>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    ?>
    <?php include G5_SHOP_PATH ."/orderform_okcashbag.php"; // 2014-08-29 해피정닷컴 okcashbag 작업 ?>
    <section id="sod_frm_pay">
        <h2>결제정보 입력</h2>


12-1. 영카트5 / mobile / shop / orderformupdate.php  415~416줄 변경
$od_email        = get_email_address($od_email);

// 주문서에 입력

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

$od_email        = get_email_address($od_email);
$OKnum1=$_POST['OKnum1']; $OKnum2=$_POST['OKnum2']; $OKnum3=$_POST['OKnum3']; $OKnum4=$_POST['OKnum4']; // 2014-08-29 해피정닷컴 okcashbag 작업
// 주문서에 입력


12-2. 영카트5 / mobile / shop / orderformupdate.php  469줄 변경

              od_settle_case    = '$od_settle_case'

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                od_settle_case    = '$od_settle_case', od_escrow3 = '$OKBAG', OKnum1 = '$OKnum1', OKnum2 = '$OKnum2', OKnum3 = '$OKnum3', OKnum4 = '$OKnum4'


13-1. 영카트5 / mobile / shop / orderinquiry.php  19줄 변경

    goto_url(G5_BBS_URL.'/login.php?url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    goto_url(G5_BBS_URL.'/login.php?OKBAG='.$OKBAG.'&url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));


13-2. 영카트5 / mobile / shop / orderinquiry.php  51줄 변경

        goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&amp;uid='.$uid);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        goto_url(G5_SHOP_URL.'/orderinquiryview.php?OKBAG='.$OKBAG.'&od_id='.$row['od_id'].'&amp;uid='.$uid);


13-3. 영카트5 / mobile / shop / orderinquiry.php  67줄 변경

    <?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    <?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=", $OKBAG); ?>


14. 영카트5 / mobile / shop / orderinquiry.sub.php  68줄 변경

                <a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>" class="idtime_link"><?php echo $row['od_id']; ?></a>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                <a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>&amp;OKBAG=<?php echo $OKBAG; ?>" class="idtime_link"><?php echo $row['od_id']; ?></a>


15-1. 영카트5 / mobile / shop / orderinquiryview.php  100줄 변경

                <a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><strong><?php echo $row['it_name']; ?></strong></a>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                <a href="./item.php?it_id=<?php echo $row['it_id']; ?>&OKBAG=<?php echo $OKBAG; ?>"><strong><?php echo $row['it_name']; ?></strong></a>


15-2. 영카트5 / mobile / shop / orderinquiryview.php  600줄 변경

            <form method="post" action="<?php echo G5_SHOP_URL; ?>/orderinquirycancel.php" onsubmit="return fcancel_check(this);">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

            <form method="post" action="<?php echo G5_SHOP_URL; ?>/orderinquirycancel.php" onsubmit="return fcancel_check(this);"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


15-3. 영카트5 / mobile / shop / orderinquiryview.php  624줄 변경

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


16. 영카트5 / mobile / shop / personalpay.php  59줄 변경

    echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=');

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=', $OKBAG);


17. 영카트5 / mobile / shop / presonalpayform.php  52줄 변경

<form name="forderform" method="post" action="<?php echo $action_url; ?>" autocomplete="off">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<form name="forderform" method="post" action="<?php echo $action_url; ?>" autocomplete="off"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">


18. 영카트5 / mobile / shop / personalpayformupdate.php  211줄 변경

goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&amp;uid='.$uid);

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&amp;uid='.$uid.'&OKBAG='.$OKBAG);


19. 영카트5 / mobile / shop / personalpayresult.php  215줄 변경

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

        <form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank"><input type="hidden" name="OKBAG" value="<?php echo $OKBAG; ?>">




Ⅳ. 스킨 업로드


1. 영카트5 / skin / shop / okcashbag / *.*

skin_okcashbag_20140830.zip  업로드


2. 영카트5 / moblie / skin / shop / okcashbag / *.*

mobile_skin_okcashbag_20140830.zip  업로드




Ⅴ. 관리자 설정


1. 영카트5 / adm / admin.menu400.shop_1of2.php  17~18줄 변경

    array('400750', '추가배송비관리', G5_ADMIN_URL.'/shop_admin/sendcostlist.php', 'scf_sendcost', 1)
);
?>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    array('400750', '추가배송비관리', G5_ADMIN_URL.'/shop_admin/sendcostlist.php', 'scf_sendcost', 1)
    , array('400900', 'OK Cashbag', G5_ADMIN_URL.'/okcashbag.php', 'scf_okcashbag')
);
?>


2. 영카트5 / adm / okcashbag.php 페이지 추가

<?php
$sub_menu = "400900";
include_once('./_common.php');

if ($is_admin != 'super') {
    $group = get_group($board['gr_id']);
    $is_admin = is_admin($member['mb_id']);
}

$g5['title'] = $html_title;
include_once ('./admin.head.php');

  $dbconn = mysql_connect(G5_MYSQL_HOST,G5_MYSQL_USER,G5_MYSQL_PASSWORD) or die("데이터베이스 연결에 실패하였습니다.");
  mysql_select_db(G5_MYSQL_DB, $dbconn);
  // @mysql_query("set names utf8");   // 한글문제 생기면 주석 해제

  $file_listname = "okcashbag.php";

  $TABLE_NAME = $g5['g5_shop_order_table'];
  $page_num   = $_GET['page_num'];
  $SearchPart = $_POST['SearchPart'];
  $SearchStr  = $_POST['SearchStr'];
  //echo "SearchPart = " .$SearchPart ."<br />";
  //echo "SearchStr = " .$SearchStr ."<br />";

  $page_sql = "select * from ". $TABLE_NAME ." where OKnum1 != '' ";

  if(strlen($SearchStr) > 0) {
    switch ($SearchPart) {
      case "all":
        $page_sql = $page_sql ." and ( (od_name LIKE '%$SearchStr%') or (od_tel LIKE '%$SearchStr%') or (od_hp LIKE '%$SearchStr%') )";
      break;
      case "name":
        $page_sql = $page_sql ." and od_name LIKE '%$SearchStr%' ";
      break;
      case "tel":
        $page_sql = $page_sql ." and od_tel LIKE '%$SearchStr%' ";
      break;
      case "hp":
        $page_sql = $page_sql ." and od_hp LIKE '%$SearchStr%' ";
      break;
    }
  }
  $page_sql  = $page_sql ." ";  // where관련 공통조건 추가
  $page_sql2 = mysql_query($page_sql);
  /*  2011-05-31 코멘트 추가
  where delete = 'n'  이렇게 사용하면 mysql_num_rows() 함수가 정상작동하지 않습니다.
  Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/happyjung.php on line 43   이렇게 에러를 발생합니다.
  이유는 잘 모르겠지만, 아마도 delete 가 예약함수 이기때문인듯합니다.
  필드명으로 delete , insert , select 등의 쿼리문에서 사용되는 예약함수는 피하는것이 좋겠습니다.
  */
  $tot=mysql_num_rows($page_sql2);
  $pagemax=20;  // 한페이지에 몇개씩 보여줄까요.
  $page_scale=10;  // 하단 페이지 색인갯수
  $page_tot=(int)($tot/$pagemax);
  if($page_tot<($tot/$pagemax)) {
    $page_tot = $page_tot+1;
  }
  if(!$page_num) {
    $page_num=1;
    $start_line=0;
  }
  else {
    $start_line=($pagemax * $page_num)-$pagemax;
  }  
  // 2페이지 이상에서 검색에서 페이징 오류 수정위해 ( 2012-03-05 수정 )
  if ($page_tot <= 1) {
    $page_num = "1";
    $start_line=0;
  }

  //검색옵션 관련
  $sql = "select * from ". $TABLE_NAME ." where OKnum1 != '' ";
  if(strlen($SearchStr) > 0) {
    switch ($SearchPart) {
    case "all":
      $sql = $sql. " and (  (od_name LIKE '%$SearchStr%') or (od_tel LIKE '%$SearchStr%') or (od_hp LIKE '%$SearchStr%')  ) ";
    break;
      case "name":
        $sql = $sql. " and od_name LIKE '%$SearchStr%'  ";
      break;
      case "tel":
        $sql = $sql. " and od_tel LIKE '%$SearchStr%' ";
      break;
      case "hp":
        $sql = $sql. " and od_hp LIKE '%$SearchStr%' ";
      break;
    }
  }
  $sql = $sql ." ";  // where관련 공통조건 추가
  $sql = $sql . $result = mysql_query($sql, $dbconn);
?>

<style type="text/css">
.hp_table {background-color:#e5e5e4; border-top:solid #bf82bb 1px; border-bottom:solid #c1c1c1 1px;}
.hp_td1 { font-family:"돋움"; font-size:11px; font-weight:bold; letter-spacing:-1; background:#f5f5f4; color:#292929;}
.hp_td2 { font-family:"돋움"; font-size:12px; background:#ffffff; color:#797979; line-height:16px;}
.hp_point { color:#bf82bb; }
</style>


<div>
전체 <font color='#ff3333'><?php echo $tot; ?></font> 개의 글이 있습니다. (현재/전체 :<font color='#CC0033'><?php echo $page_num; ?></font>/<font color='#CC0033'><?php echo $page_tot; ?></font>page)
</div>

<div>
        <?php // action을 연결안하면 페이징으로 인한 검색결과가 안보이는 오류발생  2012-03-31 수정 ?>
<form name="search_form" method="post" action="<?php echo $PHP_SELF?>" style="margin:0">
              <select size="1" name="SearchPart" style="font-size:12px;">
                <option <?php if ($SearchPart == "name") { echo "selected='selected'"; } ?> value="name">이름</option>
                <option <?php if ($SearchPart == "tel") { echo "selected='selected'"; } ?> value="name">전화번호</option>
                <option <?php if ($SearchPart == "hp") { echo "selected='selected'"; } ?> value="name">핸드폰</option>
                <!--<option <?php if ($SearchPart == "all") { echo "selected='selected'"; } ?> value="all">전 체</option>-->
              </select>
              <input name="SearchStr" class="hp_input" style="height:21px;" maxlength="30" value="<?php echo $SearchStr; ?>">
              <input type="button" value="검색" class="btn_frmline">
            </form>
</div>
    
<table width="100%" cellpadding="10" cellspacing="1" class="hp_table">
  <tr>
    <th width="40" align="center" class="hp_td1">번호</th>
    <th align="center" class="hp_td1">주문번호</th>
    <th align="center" class="hp_td1">회원이름</th>
    <th align="center" class="hp_td1">전화번호</th>
    <th align="center" class="hp_td1">핸드폰</th>
    <th align="center" class="hp_td1">주문금액</th>
    <th align="center" class="hp_td1">결제금액</th>
    <th align="center" class="hp_td1">미수금액</th>
    <th align="center" class="hp_td1">배송상태</th>
    <th align="center" class="hp_td1">결제방법</th>
    <th align="center" class="hp_td1">OK Cashbag</th>
    <th align="center" class="hp_td1">주문일시</th>
    <th align="center" class="hp_td1">결제일시</th>
  </tr>
      <?php
      $id_num = "0";
      while($data = mysql_fetch_array($result)) {
        $idx_num = $tot - ($pagemax * ($page_num-1)) - $id_num;
        $idx = $data[idx];
        $od_id = $data[od_id];
        $od_name = $data[od_name];
        $od_tel = $data[od_tel];
        $od_hp = $data[od_hp];
        $od_cart_price = $data[od_cart_price];
        $od_receipt_price = $data[od_receipt_price];
        $od_misu = $data[od_misu];
        $od_status = $data[od_status];
        $od_settle_case = $data[od_settle_case];
        $od_invoice_time = $data[od_invoice_time];
        $od_time = $data[od_time];
        $OKnum1 = $data[OKnum1];
        $OKnum2 = $data[OKnum2];
        $OKnum3 = $data[OKnum3];
        $OKnum4 = $data[OKnum4];
      ?>
      <tr>
        <td align="center" class="hp_td2"><?php echo $idx_num; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_id; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_name; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_tel; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_hp; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_cart_price; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_receipt_price; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_misu; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_status; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_settle_case; ?></td>
        
        <td align="center" class="hp_td2"><?php echo $OKnum1 ."-". $OKnum2 ."-". $OKnum3 ."-". $OKnum4; ?></td>
        
        <td align="center" class="hp_td2"><?php echo $od_time; ?></td>
        <td align="center" class="hp_td2"><?php echo $od_invoice_time; ?></td>
      </tr>
      <?php
         $id_num++;
        }
      ?>
</table>

<center>
        <?php
        //본문밑에 페이지보이실부분..
        $blockpage=(int)(($page_num-1)/$page_scale)*$page_scale+1;
        if($blockpage==1) {
          echo"[ ";
        }
        else {
          $page=$blockpage-$page_scale;
          echo "<a href='{$file_listname}?page_num=0'>[처음]</a> <a href='{$file_listname}?page_num=$page'>[이전 ${page_scale}개]</a> [ ";
        }
        $i=1;
        while($i<=$page_scale&&$blockpage<=$page_tot) {
          if($page_num==$blockpage) {
            echo "<b><font color='#bb0000'>". $blockpage ."</font></b>";
          }
          else {
            echo " <a href='{$file_listname}?page_num=$blockpage'>$blockpage</a> ";
          }
          $blockpage=$blockpage+1;
          $i++;
        }
        if($blockpage>$page_tot) {
          echo" ] ";
        }
        else {
          $page=$blockpage-$page_scale;
          echo " ] <a href='{$file_listname}?page_num=$blockpage'>[다음 ${page_scale}개]</a> <a href='{$file_listname}?page_num=$page_tot'>[끝]</a>";
        }
        ?>
</center>
</body>
</html>
<?php
echo mysql_error();
mysql_close($dbconn);  // MySQL에 접속종료
?>


3. 영카트5 / adm / shop_admin / orderform.php  575~580줄 변경

                </tbody>
                </table>
            </div>
        </section>

        <section id="anc_sodr_paymo" class="compare_right">
            <h3>결제상세정보 수정</h3>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                <tr>
                    <th scope="row"><label for="od_send_mail">OK Cashbag</label></th>
                    <td>
                        <input type="text" name="OKnum1" value="<?php echo $od['OKnum1']; ?>" id="OKnum1" class="frm_input" style="width:70px;"> -
                        <input type="text" name="OKnum2" value="<?php echo $od['OKnum2']; ?>" id="OKnum1" class="frm_input" style="width:70px;"> -
                        <input type="text" name="OKnum3" value="<?php echo $od['OKnum3']; ?>" id="OKnum1" class="frm_input" style="width:70px;"> -
                        <input type="text" name="OKnum4" value="<?php echo $od['OKnum4']; ?>" id="OKnum1" class="frm_input" style="width:70px;">
                    </td>
                </tr>

                </tbody>
                </table>
            </div>
        </section>

        <section id="anc_sodr_paymo" class="compare_right">
            <h3>결제상세정보 수정</h3>


4. 영카트5 / adm / shop_admin / orderformreceiptupdate.php  32줄 변경

                od_send_cost2      = '{$_POST['od_send_cost2']}'

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                od_send_cost2      = '{$_POST['od_send_cost2']}' , OKnum1='{$_POST['OKnum1']}', OKnum2='{$_POST['OKnum2']}', OKnum3='{$_POST['OKnum3']}', OKnum4='{$_POST['OKnum4']}'


5-1. OK 캐쉬백 담당자 회원아이디 생성
ex. okcashbag
회원등급은 기본 2등급 부여


5-2. OK 캐쉬백 아이디에게  OK cashbag 결제페이지 확인가능하도록 권한 부여
관리자 로그인  >  환경설정  >  관리권한설정
OK 캐쉬백에게   위에서 새롭게 생성한   400900  으로의 접근권한으로   읽기 권한 부여



Ⅵ. OK캐쉬백 jQuery

적용방법: 해더가 표출되는 페이지의 body 태그 밑 코드 추가
<script type="text/JavaScript" src="http://cashbagplus.okcashbag.com/mall/cTop4ThanksHand.js"></script>
샘플URL : http://cashbagplus.okcashbag.com/mall/PopupLayer/sample_thankshand.html
스크립트 인코딩: UTF-8 (수정가능)
해당 스크립트가 선언되는 페이지 내에 jQuery 선언 되있어야함. ($ 사용 수정가능)

영카트5 / head.sub.php

<body <?php echo isset($g5['body_script']) ? $g5['body_script'] : ''; ?>>

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 변경 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

<body <?php echo isset($g5['body_script']) ? $g5['body_script'] : ''; ?>>
<?php if (defined('G5_IS_ADMIN')) { // 모바일일때는 사용안함 ?>
<script type="text/JavaScript" src="http://cashbagplus.okcashbag.com/mall/cTop4ThanksHand.js"></script>
<?php } ?>
  • 페이스북으로 보내기
  • 트위터로 보내기
  • 구글플러스로 보내기

댓글목록

등록된 댓글이 없습니다.


목록

Total 2,005건 1 페이지
온라인강의 목록
번호 제목
2005
2004
2003
2002
2001
2000
1999
1998
1997
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
게시물 검색
 
 
상호: 해피정닷컴 대표:정창용 사업자등록번호:119-05-36414 (08394) 서울시 구로구 디지털로 242 한화비즈메트로1차 1502호
전화: 070-7600-3500 팩스:02-865-3528 개인정보관리:정창용 mail@happyjung.com 에스크로확인
개인정보취급방침
COPYRIGHT 2001~2017 해피정닷컴. All rights reserved. 부가통신사업신고:서울체신청-1217 통신판매신고:2014-서울구로-0074
 
모바일 버전으로 보기