session_start();
if(!session_is_registered("cart_uid")) {
session_register("cart_uid");
$cart_uid = session_id();
}
include '../inc/connect.php';
include '../inc/lib.php';
//////////////////////////////// īƮ¿¡ ´ãÀº ÈÄ ·Î±×ÀÎ ÇßÀ»¶§ °¡°Ý ó¸®
/*
if($m_id) {
$que = "select * from $t_cart_temp where cart_uid='$cart_uid' order by cart_no"; // īƮ »óǰ ºÒ·¯¿È
$res = mysql_query($que);
if($res) while($row=mysql_fetch_array($res)) {
$item_no = explode("-",$row[cart_serial]);
$que2 = "select * from $t_item where item_num = '$item_no[2]' and item_name = '$row[cart_name]'";
$row2 = mysql_fetch_array(mysql_query($que2));
if($row[cart_sell] != $row2[item_sell]) {
$cart_part_price = $row2[item_sell] * $row[cart_ea];
$que3 = "update $t_cart_temp set cart_sell='$row2[item_sell]', cart_part_price=$cart_part_price where cart_no='$row[cart_no]'";
mysql_query($que3); // ¾÷µ¥ÀÌÆ®
}
}
}
*/
/*
if ($goyo) {
$que = "select * from $t_cart_temp where cart_uid='$cart_uid' order by cart_no"; // īƮ »óǰ ºÒ·¯¿È
$res = mysql_query($que);
if($res) while($row=mysql_fetch_array($res)) {
$item_no = explode("-",$row[cart_serial]);
$que2 = "select * from $t_item where item_num = '$item_no[2]' and item_name = '$row[cart_name]'";
$row2 = mysql_fetch_array(mysql_query($que2));
if ($ea != $cart_ea) {
// $cart_part_price = $row2[item_sell] * $row[cart_ea];
$mileage = $row2[item_point] * $ea;
$que3 = "update $t_cart_temp set cart_point='$mileage' where cart_no='$row[cart_no]'";
mysql_query($que3); // ¾÷µ¥ÀÌÆ®
}
}
}
*/
if($ea != $cart_ea && $goyo) { // ¼ö·®ÀÌ º¯°æµÇ¾úÀ¸¸é
$que = "select cart_serial from $t_cart_temp where cart_no='$cart_no'";
$res = mysql_query($que);
$rowgo = mysql_fetch_array($res);
$item_noyo = explode("-",$rowgo[cart_serial]); // ¾ÆÀÌÅÛ ¹øÈ£ ¾ò°í
$que = "select item_point from $t_item where item_num=$item_noyo[2]";
$res = mysql_query($que);
$mileage_unit = mysql_fetch_row($res);
$mileage = $mileage_unit[0] * $ea;
$cart_part_price = $cart_sell * $ea; // ±Ý¾× ´Ù½Ã °è»ê
$query11 = "update $t_cart_temp set cart_ea=$ea, cart_part_price=$cart_part_price, cart_point='$mileage' where cart_no='$cart_no'";
mysql_query($query11); // ¾÷µ¥ÀÌÆ®
}
if($del=='ok') { // »èÁ¦ ¹öưÀ» ´·¶À¸¸é
$query12 = "delete from $t_cart_temp where cart_no='$cart_no'";
mysql_query($query12); // »èÁ¦
}
$query = "select * from $t_cart_temp where cart_uid='$cart_uid' order by cart_no"; // īƮ »óǰ ºÒ·¯¿È
$result = mysql_query($query);
?>
µ¿ÀÏ eShop ¿¡ ¿À½Å°ÍÀ» ȯ¿µÇÕ´Ï´Ù.
include "../top.php" ?>
include '../banner.php'?>
| ÇöÀçÀ§Ä¡
: > Àå¹Ù±¸´Ï |
|
| |
»çÁø |
ÁÖ¹®»óǰ |
°¡°Ý |
¼ö·® |
¸¶Àϸ®Áö |
ÇÕ°è |
»èÁ¦ |
|
|
}
while($db = mysql_fetch_array($result)) {
echo "";
$cart_total_price = $cart_total_price + $db[cart_part_price]; // ÃÑ ±Ý¾× °è»ê
$points = $points + $db[cart_point]; // Æ÷ÀÎÆ® °è»ê
session_register("m_cart_no"); // ¼¼¼Ç īƮ¹øÈ£
$m_cart_no = $db[cart_no];
session_register("m_points"); // ¼¼¼Ç ¸¶Àϸ®Áö Á¡¼ö
$m_points = $points;
} // end while
//echo $m_points; // ¸¶Àϸ®Áö Æ÷ÀÎÅÍ È®ÀÎ
$result1 = mysql_query("select post_charge, no_charge from shop_admin");
$db1 = mysql_fetch_array($result1);
if(mysql_num_rows($result)) { // »óǰÀÌ ÀÖÀ¸¸é ¹è¼Û·á, ÃÑ±Ý¾× Ç¥½Ã
?>
|
if ($db1[no_charge] > 0) { ?>
= number_format($db1[no_charge]) ?>¿ø ÀÌ»ó ±¸¸Å½Ã ¹è¼Û·á(= number_format($db1[post_charge]) ?>¿ø) ¹«·á
} else {
echo " ";
}
?>
|
=$points?> ¿ø
|
if($cart_total_price < $db1[no_charge]) {
$cart_total_price = $cart_total_price + $db1[post_charge];
}
?>
ÃÑ ÇÕ°è : = number_format($cart_total_price) ?> ¿ø
|
}
?>
|
|
| |
|
|
| |
¡Û°áÁ¦Á¤º¸
1. Çö±Ý, ½Å¿ëÄ«µå·Î ¸ðµÎ °áÁ¦ °¡´É
2. ¹«ÅëÀå ÀԱݽà ÀÔ±ÝÀÚ¸íÀ» ²À Àû¾î ÁÖ¼¼¿ä.
¡Û¹è¼ÛÁ¤º¸
¹è¼ÛÁö¿ª : Àü±¹
¹è¼Û±â°£ : °áÁ¦ÀϷκÎÅÍ 1 ~ 4ÀÏ
(Åä¿äÀÏ,°øÈÞÀÏÀºÁ¦¿Ü, µµ¼Áö¿ª 1 ~ 2ÀÏ Áö¿¬) ¡Û±³È¯/¹Ýǰ
1. »óǰÀεµ ÈÄ 7ÀÏ À̳»¿¡ ±³È¯, ¹ÝǰÀÌ
°¡´ÉÇÕ´Ï´Ù.
2. °í°´º¯½É¿¡ ÀÇÇÑ ±³È¯, ¹ÝǰÀÎ °æ¿ì »óǰ ¹Ý¼Û¿¡ µå´Â ºñ¿ëÀº °í°´´Ô²²¼ ºÎ´ãÇÏ¼Å¾ß ÇÕ´Ï´Ù.
¡ÛÄ«µå±¸¸Å½Ã
ÁÖ¹®Ãë¼Ò 1. Ä«µå ½ÂÀÎÀÏ·Î ºÎÅÍ 5ÀÏ À̳»¿¡
½ÂÀÎÃë¼Ò°¡ °¡´ÉÇÕ´Ï´Ù. |
|
| |
|
|
include "../bottom.php" ?>