상품가격 (최소)~(최대) 표시하기

2022-03-07 (월) 16:05:31 1,174

안녕하세요.

상품가격을 (최소)~(최대) 이렇게 표시하고싶은데 가능할까요?

아래코드입니다.

Copy
if ($this->view_it_cust_price || $this->view_it_price) {

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

        if ($this->view_it_cust_price && $row['it_cust_price']) {
            echo "<strike>".display_price($row['it_cust_price'], false, true)."</strike>\n";
        }

        if ($this->view_it_price) {
            $io_price_txt = '';
            $io_price = $row['io_price'];
            $io_dc_price = get_discount_price($row, $io_price);
        
            // 부가세 별도가
            $io_price = (int)((string)($io_price / 1.1));
            $io_dc_price = (int)((string)($io_dc_price / 1.1));

            if ($io_price  > $io_dc_price) { $io_price_txt .= '<strike style="color: #333;">' .  number_format($io_price) . '원</strike> <span style="color: #333;">&gt;</span> '; }

            $io_price_txt .= display_price($io_dc_price, $row['it_tel_inq'], true)."\n";
            echo $io_price_txt;
        }

        echo "</div>\n";
 

알려주시면 감사하겠습니다.

|

답변 1개 / 댓글 2개

상품관리에서 최대, 최소 가격은 어디에 설정을 하신 건가요??

답변에 대한 댓글 2개

2022-03-07 (월) 18:06:32
현재 적용이 안되어있어요~ 기존 view 상품명 | (가격) -> 바뀐 view 상품명 | 옵션최저가격~옵션최대가격 이렇게 적용하고싶은데 가능할까요? 바꾸고싶은 문서는 list.50.skin / search_sph 입니다.
최대 최소 가격을 옵션 가격으로 가져와서 처리하겠다는 건가요??

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