示例#1
0
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'] . '&amp;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
0
        $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
0
    </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
0
        ?>
						<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']) {
        ?>
						&nbsp;
						<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
0
文件: itemcart.php 项目: peb317/gbamn
         $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;
     }
 }