5.4 버전 쇼핑몰 스킨 품절 표시 코드 수정

This commit is contained in:
thisgun
2020-06-11 10:52:04 +09:00
parent 7379d10256
commit d7624f3f48
16 changed files with 119 additions and 11 deletions

View File

@ -30,6 +30,7 @@ foreach((array) $list as $row){
$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크
if ($i == 0) {
if ($this->css) {
@ -56,7 +57,13 @@ foreach((array) $list as $row){
}
if ($this->href) {
echo "</a></div>\n";
echo "</a>";
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
echo "</div>\n";
}
// 사용후기 평점표시