Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
스킨파일에서 할인율 표시 코드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 9, 2019
1 parent 8eb3ab1 commit 81e363c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions skin/shop/basic/main.30.skin.php
Expand Up @@ -51,10 +51,10 @@
echo "</a>\n";
}

// 할인율 표시 ( 전화문의가 아니며 판매가격 과 시중가격 이 있을때 표시 (A-B)/A*100 )
// 할인율 표시 ( 전화문의가 아니며 판매가격 과 시중가격 이 있을때 표시 (시중가격-판매가격)/시중가격*100 )
if ($row['it_cust_price'] && $row['it_price'] && !$row['it_tel_inq']) {

$sale_per = round( (get_price($row)/$row['it_cust_price']) * 100 , 1).'%';
$sale_per = round( (((int) $row['it_cust_price'] - get_price($row))/$row['it_cust_price']) * 100 , 1).'%';

echo '<span class="sct_disc">'.$sale_per.'</span>'.PHP_EOL;
}
Expand Down
4 changes: 2 additions & 2 deletions theme/basic/skin/shop/basic/main.30.skin.php
Expand Up @@ -51,10 +51,10 @@
echo "</a>\n";
}

// 할인율 표시 ( 전화문의가 아니며 판매가격 과 시중가격 이 있을때 표시 (A-B)/A*100 )
// 할인율 표시 ( 전화문의가 아니며 판매가격 과 시중가격 이 있을때 표시 (시중가격-판매가격)/시중가격*100 )
if ($row['it_cust_price'] && $row['it_price'] && !$row['it_tel_inq']) {

$sale_per = round( (get_price($row)/$row['it_cust_price']) * 100 , 1).'%';
$sale_per = round( (((int) $row['it_cust_price'] - get_price($row))/$row['it_cust_price']) * 100 , 1).'%';

echo '<span class="sct_disc">'.$sale_per.'</span>'.PHP_EOL;
}
Expand Down

0 comments on commit 81e363c

Please sign in to comment.