本文整理汇总了PHP中get_item_point函数的典型用法代码示例。如果您正苦于以下问题:PHP get_item_point函数的具体用法?PHP get_item_point怎么用?PHP get_item_point使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_item_point函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
HEREDOC;
} else {
$subj = explode(',', $row['it_option_subject']);
for ($k = 0; $row2 = sql_fetch_array($result2); $k++) {
$it_name = $row['it_name'] . ' ';
$opt = explode(chr(30), $row2['io_id']);
$sep = '';
for ($j = 0; $j < count($subj); $j++) {
$it_name .= $sep . $subj[$j] . ':' . $opt[$j];
$sep = ' ';
}
$buy_url = G5_SHOP_URL . '/itembuy.php?it_id=' . $row['it_id'] . '&opt=' . $row2['io_id'];
$it_price = $row['it_price'] + $row2['io_price'];
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
$it_point = get_item_point($row, $row2['io_id']);
echo <<<HEREDOC
{$lt}begin{$gt}
{$lt}mapid{$gt}{$row['it_id']}
{$lt}pname{$gt}{$it_name}
{$lt}price{$gt}{$it_price}
{$lt}pgurl{$gt}{$buy_url}
{$lt}igurl{$gt}{$img_url}
{$lt}cate1{$gt}{$cate1}
{$lt}cate2{$gt}{$cate2}
{$lt}cate3{$gt}{$cate3}
{$lt}cate4{$gt}{$cate4}
{$lt}caid1{$gt}{$caid1}
{$lt}caid2{$gt}{$caid2}
{$lt}caid3{$gt}{$caid3}
{$lt}caid4{$gt}{$caid4}
示例2: sql_fetch
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id = '" . substr($row['ca_id'], 0, 8) . "' ");
$cate4 = $row2['ca_id'];
$catename4 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id = '" . substr($row['ca_id'], 0, 6) . "' ");
$cate3 = $row2['ca_id'];
$catename3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 4) {
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id = '" . substr($row['ca_id'], 0, 4) . "' ");
$cate2 = $row2['ca_id'];
$catename2 = $row2['ca_name'];
}
$pdate = date("Ymd", strtotime($row['it_time']));
$point = get_item_point($row);
// 배송비계산
$delivery = get_item_sendcost2($row['it_id'], $row['it_price'], 1);
if ($delivery) {
$deliv = 1;
$deliv2 = $delivery . '원';
} else {
$deliv = 0;
$deliv2 = "";
}
// 상품이미지
$img_url = get_it_imageurl($row['it_id']);
$str = <<<HEREDOC
{$lt}begin{$gt}
{$lt}pid{$gt}{$row['it_id']}
{$lt}price{$gt}{$row['it_price']}
示例3: get_item_point
</tr>
*/
?>
<?php
if ($config['cf_use_point']) {
// 포인트 사용한다면
?>
<tr>
<th scope="row"><label for="disp_point">포인트</label></th>
<td>
<?php
if ($it['it_point_type'] == 2) {
echo '구매금액(추가옵션 제외)의 ' . $it['it_point'] . '%';
} else {
$it_point = get_item_point($it);
echo number_format($it_point) . '점';
}
?>
</td>
</tr>
<?php
}
?>
<?php
if ($it['it_buy_min_qty']) {
?>
<tr>
<th>최소구매수량</th>
<td><?php
示例4: number_format
?>
<span class="red"><i><?php
echo $dc;
?>
%</i> <span class="font-16"><i class="fa fa-long-arrow-down"></i></span></span>
<?php
}
?>
<?php
if ($list[$i]['it_point']) {
?>
<span class="font-14">
<i class="fa fa-gift text-muted"></i>
<?php
echo $list[$i]['it_point_type'] == 2 ? $list[$i]['it_point'] . '%' : number_format(get_item_point($list[$i]));
?>
</span>
<?php
}
?>
</div>
<div class="list-details">
<a href="<?php
echo $list[$i]['href'];
?>
" class="btn btn-color pull-left">
<i class="fa fa-shopping-cart"></i> View Details
</a>
<?php
示例5: get_it_stock_qty
$tmp_it_stock_qty = get_it_stock_qty($it_id);
} else {
$tmp_it_stock_qty = get_option_stock_qty($it_id, $io_id, $row2['io_type']);
}
if ($tmp_ct_qty + $ct_qty > $tmp_it_stock_qty) {
die($io_value . " 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($tmp_it_stock_qty) . " 개");
}
$sql3 = " update {$g5['g5_shop_cart_table']}\n\t\t\t\t\t\tset ct_qty = ct_qty + '{$ct_qty}'\n\t\t\t\t\t\twhere ct_id = '{$row2['ct_id']}' ";
sql_query($sql3);
continue;
}
// 포인트
$point = 0;
if ($config['cf_use_point']) {
if ($io_type == 0) {
$point = get_item_point($it, $io_id);
} else {
$point = $it['it_supply_point'];
}
if ($point < 0) {
$point = 0;
}
}
// 배송비결제
if ($it['it_sc_type'] == 1) {
$ct_send_cost = 2;
} else {
if ($it['it_sc_type'] > 1 && $it['it_sc_method'] == 1) {
$ct_send_cost = 1;
}
}