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

회원별(등급) 가격 변경 질문드립니다(카트) 채택완료

긍정둥이 6년 전 조회 3,405

https://sir.kr/yc5_tip/578

여기를 참고하여 상세페이지에서 회원등급별과 등급별로 변경된 금액을 카트에 담아서 구매까지 하는부분은 성공을 하였습니다.

한가지 질문드리고 싶은부분은 메인페이지에서 금액 변경은 하였는데 솔소님 스킨인 

https://theme.sir.kr/youngcart5/everyday/ 스킨을 사용중인데 이 스킨은 메인페이지에서 바로 장바구니에 담을 수 있는 기능이있습니다.

여기서 막혀버렸습니다. 어떻게 해야지 메인페이지에 등급별로 다르게 나오는 금액을 장바구에 담았을때 등급별 금액이 장바구니에 나올 수 있게 할 수 있을까요?
 

소스는 /theme/everyday/mobile/skin/shop/main.10.skin.php 입니다. 수정한부분은 /* 등급별 금액 변경 */ 로 주석처리했습니다. 장바구니는 어떻게 해야될까요?

사이트 주소도 올려놓겠습니다.

 

</strong>

<strong>    <!-- 상품진열 10 시작 { -->

    <?php

    $li_width = intval(100 / $this->list_mod);

    $li_width_style = ' style="width:'.$li_width.'%;"';</strong></p>

<p><strong>    for ($i=0; $row=sql_fetch_array($result); $i++) {

        if ($i == 0) {

            if ($this->css) {

                echo "<ul class=\"{$this->css} main_item\">\n";

            } else {

                echo "<ul class=\"main_item sct sct_10\">\n";

            }

        }</strong></p>

<p><strong>        echo "<li class=\"sct_li\"><div class=\"sct_li_wr\">\n";</strong></p>

<p><strong>        echo"<div class=\"img_wr\">";</strong></p>

<p><strong>        if ($this->href) {

            echo "<div class=\"sct_img\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";

        }</strong></p>

<p><strong>        if ($this->view_it_img) {

            echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";

        }</strong></p>

<p><strong>        if ($this->href) {

            echo "</a></div>\n";

        }</strong></p>

<p><strong>        echo"<div class=\"sct_btn\">

                <div class=\"sct_cart_btn\"> 

                    <button type=\"button\" class=\"btn_cart\" data-it_id=\"{$row['it_id']}\"><span class=\"sound_only\">장바구니</span><i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i></button>

                    <button type=\"button\" class=\"btn_wish\" data-it_id=\"{$row['it_id']}\"><span class=\"sound_only\">위시리스트</span><i class=\"fa fa-heart\" aria-hidden=\"true\"></i></button>

                </div>

            </div>\n";</strong></p>

<p><strong>        echo"</div>";</strong></p>

<p><strong>        echo "<div class=\"sct_cartop\"></div>\n";</strong></p>

<p>

<strong>        if ($this->view_it_id) {

            echo "<div class=\"sct_id\">&lt;".stripslashes($row['it_id'])."&gt;</div>\n";

        }</strong></p>

<p><strong>        if ($this->href) {

            echo "<div class=\"sct_txt\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";

        }</strong></p>

<p><strong>        if ($this->view_it_name) {

            echo stripslashes($row['it_name'])."\n";

        }</strong></p>

<p><strong>        if ($this->href) {

            echo "</a></div>\n";

        }</strong></p>

<p>

<strong>        /* 등급별 금액 변경 */

        if ($this->view_it_price) {

            if ($member[mb_level] >= 2 | $is_admin == 'super'){</strong></p>

<p><strong>            echo "<div class=\"sct_cost\">\n";

            if ($this->view_it_cust_price && $row['it_cust_price']) {

                echo "<span class=\"cust_price\">".display_price($row['it_cust_price'])."</span>\n";

            }</strong></p>

<p><strong>            if ($this->view_it_price) {

                echo display_price($row['it_1'], $row['it_tel_inq'])."\n";  //판매가격을 1번필드로 설정

            }</strong></p>

<p><strong>            echo "</div>\n";</strong></p>

<p><strong>            }else{</strong></p>

<p><strong>            echo "<div class=\"sct_cost\">\n";</strong></p>

<p><strong>            if ($this->view_it_cust_price && $row['it_cust_price']) {

                echo "<span class=\"cust_price\">".display_price($row['it_cust_price'])."</span>\n";

            }</strong></p>

<p><strong>            if ($this->view_it_price) {

                echo display_price(get_price($row), $row['it_tel_inq'])."\n";

            }</strong></p>

<p><strong>            echo "</div>\n";

            }</strong></p>

<p><strong>        }

        /* //등급별 금액 변경 */</strong></p>

<p>

<strong>        if ($this->view_it_icon) {

            echo "<div class=\"sct_icon_wr\">".item_icon2($row)."</div>\n";

        }</strong></p>

<p><strong>        echo "</div></li>\n";

    }</strong></p>

<p><strong>    if ($i > 0) echo "</ul>\n";</strong></p>

<p><strong>    if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";

    ?>

    <!-- } 상품진열 10 끝 --></strong></p>

<p><strong>
 

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

답변 1개

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

테마 폴더에 있는 shop/ajax.cartupdate.php 파일도 살펴보세요.

여기에 아마 적용해야 할 겁니다.

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

답변에 대한 댓글 1개

긍정둥이
6년 전
저기 경로 변경하니 되는것 같습니다 감사합니다.

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

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

로그인