Posted
Filed under PHP
[원문]
lib/shop.lib.php

#1
1 if($row['io_price'] >= 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else
4     $price = '   '.number_format($row['io_price']).'원';


1 if($row['io_price'] > 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else if ($row['io_price'] == 0)
4     $price = '';
5 else
6     $price = '   '.number_format($row['io_price']).'원';

로 수정


#2
1 if($row['io_price'] >= 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else
4     $price = '   '.number_format($row['io_price']).'원';


1 if($row['io_price'] > 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else if ($row['io_price'] == 0)
4     $price = '';
5 else
6     $price = '   '.number_format($row['io_price']).'원';

로 수정

js/shop.js

#1
1 var priceHide = '';
2 if (parseInt(price) == 0) priceHide = ' sound_only';

를 add_sel_option 에 추가

#2
1 opt += "<span class=\"sit_opt_prc\">"+opt_prc+"</span>";


1 opt += "<span class=\"sit_opt_prc"+priceHide+"\">"+opt_prc+"</span>";

로 수정

2018/04/09 17:50 2018/04/09 17:50