//goods_num : 상품 번호 $good_num = $_GET['pcode']; $i=0; $today=$_COOKIE["goods_num"]; $tod2=explode(",", $_COOKIE["goods_num"]); //저장된 쿠키값을 ','로 나누어 배열로 저장 $tod=array_reverse($tod2); //최근 목록 5개를 뽑기 위해 배열을 최신 것부터로 반대로 정렬해준다. ##중복을 막기 위해 최근 5개의 쿠키값 중에 상품 번호가 있는 지 검사하여 있으면 save 값을 no로 설정 while($i<5) { //출력할 상품 목록의 수 설정 if($pcode==$tod[$i]) { $save=no; } $i++; } ##쿠키값이 없을 경우 즉 처음 저장하는 경우 if($_COOKIE["goods_num"]=="") { setcookie("goods_num", $_GET["pcode"], time() + 86400,"/"); } ##저장된 쿠키값이 존재하고, 중복된 값이 아닌 경우 if($_COOKIE["goods_num"] != "" & $save != no){ setcookie("goods_num" , $today. "," . $_GET["pcode"] , time() + 86400, "/"); // 기존에 있던 쿠키값에 ','를 붙이고 값을 계속 덧붙여서 저장해준다. // 11,27,35,47,5 과 같은 형식으로 상품번호가 저장된다. } include $DOCUMENT_ROOT."/form_begin_detail.php"; if($state >= 0) { if(!$orname && !$orsun) $order = " order by updatetime desc"; else $order = " order by $orname $orsun"; if($menu=="index") { $result = $dalib->selectSQLAll("select * from $Table[Product] where $kind = '1' $order"); $rnumPN = $result[rnum]; }elseif($menu=="search") { $result = $dalib->selectSQLAll("select * from $Table[Product] where pname like '%$search%' or company like '%$search%' $order"); $rnumPN = $result[rnum]; }else { $result = $dalib->selectSQLAll("select * from $Table[Product] where bigcate ='$bigcate' and smcate = '$smcate' $order"); $rnumPN = $result[rnum]; } if($mode=="prev") { @mysql_data_seek($result[result],$state); $r_prev = mysql_fetch_array($result[result]); $pcode = $r_prev[pcode]; }elseif($mode=="next") { @mysql_data_seek($result[result],$state); $r_next = @mysql_fetch_array($result[result]); $pcode = $r_next[pcode]; } $prev_state = $state - 1; $next_state = $state + 1; } $rC = $dalib->selectSQLField("select bigcatename from $Table[Bigcategory] where bigcate ='$bigcate'"); $rC2 = $dalib->selectSQLField("select smcatename from $Table[Smcategory] where smcate ='$smcate'"); $bigcatename = $rC[bigcatename]; $smcatename = $rC2[smcatename]; if($smcatename=="") $smcatenameTitle = $r2[smcatename]; else $smcatenameTitle = $smcatename; $r = $dalib->selectSQLField("select * from $Table[Product] where pcode = '$_GET[pcode]'"); $pname = stripslashes($r[pname]); $company = stripslashes($r[company]); $pinfo = $r[pinfo]; $pbuylimit = stripslashes($r[pbuylimit]); $selfStock = $r[selfStock]; $self_sale = $r[sale]; switch ($company){ case "시마노(SHIMANO)" : $affiPerSale = $RMANAGE[shimanoaffiPerSale]; break; case "다이와(DAIWA)" : $affiPerSale = $RMANAGE[daiwaaffiPerSale]; break; default : $affiPerSale = $RMANAGE[etcaffiPerSale]; } /* if($r[persale]>0){ $psellprice = round($r[pprice]*$affiSale*(1-($r[persale]/100)),-3); }else{ $psellprice = round($r[pprice]*$affiSale*(1-($r[persale]/100)),-3); } */ if($r[fromData] == "domefishing3"){ $_DB = "domefishing3"; }else{ $_DB = ""; } $rClient = $dalib->selectSQLField("select client from $Table[Product] where pcode='$pcode'"); if($rClient[client]=="한국다이와정공"){ $_Table = "domefishing.Barcode"; }elseif($rClient[client]=="윤성조구"){ $_Table = "domefishing.ShimanoBarcode"; }elseif($rClient[client]=="PROX" || $rClient[client]=="아스테이지"){ $_Table = "domefishing.JapanBarcode"; }else{ $_Table = "$Table[Product]"; } if($_Table == "$Table[Product]"){ $psellprice = $r[psellprice]; $totalStock = $r[stock_amount]; $rowSale = $dalib->selectSQLField("select sale from $_Table where pcode='$r[pcode]'"); }else{ $result = $dalib->selectSQLAll("select * from $_DB.$Table[ProductStockSetting] where pcode = '$r[pcode]'"); if($result[rnum]>0) { $row = @mysql_fetch_array($result[result]); for($loop=1;$loop<=36;$loop++) { if($row["k_".$loop]=="") continue; $cWhere .= "jancode='".$row["k_".$loop]."' or "; } $cWhere = substr($cWhere, 0, -3); $rPs = $dalib->selectSQLField("select MIN(psellprice) as psellprice, MIN(yen) as yenprice, MAX(sale) as sale from $_Table where ($cWhere) and psellprice > 0 and amount > 0"); $psellprice = $rPs[psellprice]; $yenprice = $rPs[yenprice]; $resultStock = $dalib->selectSQLAll("select amount from $_Table where ($cWhere)"); while($rs = mysql_fetch_array($resultStock[result])){ $totalStock += $rs[amount]; } if($self_sale>0){ $rowSale = $dalib->selectSQLField("select sale from $Table[Product] where jancode='$r[jancode]'"); }else{ $rowSale = $dalib->selectSQLField("select sale from $_Table where jancode='$r[jancode]'"); } }else{ $psellprice = $r[psellprice]; $rPs = $dalib->selectSQLField("select amount from $_Table where pcode = '$r[pcode]'"); $rInfo = $dalib->selectSQLField("select yen from $_Table where pcode = '$r[pcode]'"); $totalStock = $rPs[amount]; $yenprice = $rInfop[yen]; if($self_sale>0){ $rowSale = $dalib->selectSQLField("select sale from $Table[Product] where pcode='$r[pcode]'"); }else{ $rowSale = $dalib->selectSQLField("select sale from $_Table where pcode='$r[pcode]'"); } } } if($r[fixed_price]=="1"){ $psellprice = $r[psellprice]; }else{ if($_COOKIE[$CookieIDName]!="" or $RMANAGE[member_sale_ok]=="Y"){ //if($rowSale[sale]>0) $affiPerSale = 0; //$psellprice = floor(($psellprice*(1-($rowSale[sale]/100))-$psellprice/100*$affiPerSale)/100)*100; if($r[bunryu]=="RCS부품"){ $psellprice = $psellprice; }else{ //echo $affiPerSale; $psellprice = floor($psellprice*(1-($affiPerSale/100))*(1-($rowSale[sale]/100))); //$psellprice = floor($r[minOptionPrice]*(1-($affiPerSale/100))*(1-($rPs[sale]/100))); //echo $r[minOptionPrice]."bb"; } }else{ $psellprice = $psellprice; } } # 상품코드가 잘못되었거나 상품이 디비내용에 없을경우 //if($r[srlno]=="") $fulib->alertBack("잘못된 상품코드이거나 현재 서비스하지 않는 상품입니다."); if($r[srlno]=="") $fulib->alertTour("잘못된 상품코드이거나 현재 서비스하지 않는 상품입니다.", "/index.php"); if($totalStock < 1) $STOCK_IMG = ""; $pMovie = $r['pMovie']; if($r[html] == "0") { $pcontents = str_replace(" "," ",$r[pcontents]) ; $pcontents = nl2br(stripslashes($pcontents)) ; }elseif($r[html] =="1") { $pcontents = stripslashes($r[pcontents]); } if($r[fromData]=="domefishing3"){ $rstock = $dalib->selectSQLField("select * from $_DB.$Table[ProductStockItemDetail] where pcode = '$_GET[pcode]' and kind = '1'"); $rstock2 = $dalib->selectSQLField("select * from $_DB.$Table[ProductStockItemDetail] where pcode = '$_GET[pcode]' and kind = '2'"); $rstock3 = $dalib->selectSQLField("select * from $_DB.$Table[ProductStockSetting] where pcode = '$_GET[pcode]'"); }else{ $rstock = $dalib->selectSQLField("select * from $Table[ProductStockItemDetail] where pcode = '$_GET[pcode]' and kind = '1'"); $rstock2 = $dalib->selectSQLField("select * from $Table[ProductStockItemDetail] where pcode = '$_GET[pcode]' and kind = '2'"); $rstock3 = $dalib->selectSQLField("select * from $Table[ProductStockSetting] where pcode = '$_GET[pcode]'"); } # 배송정보 $r_send = $dalib->selectSQLField("select sendkind, sendcontent from $Table[ManageInfo]"); if($r_send[sendkind] == "0") { $sendcontent = str_replace(" "," ",$r_send[sendcontent]) ; $sendcontent = nl2br(stripslashes($sendcontent)) ; }elseif($r_send[sendkind] =="1") { $sendcontent = stripslashes($r_send[sendcontent]); } # 상품별 통계 if($r[srlno] != "" and $now != "ad") { $basedate = date("Ym"); $r_stat_total = $dalib->selectSQLField("select srlno from $Table[ProductStat] where pcode = '$pcode' and basedate = 'total'"); if($r_stat_total[0]=="") { $insertsql = "insert into $Table[ProductStat] set pcode = '$pcode', pname = '$pname', basedate = 'total', view = '1'"; $dalib->directQuery($insertsql); }else { $dalib->directQuery("update $Table[ProductStat] set view = view + 1 where pcode = '$pcode' and basedate = 'total'"); } $r_stat_view = $dalib->selectSQLField("select srlno from $Table[ProductStat] where pcode = '$pcode' and basedate = '$basedate'"); if($r_stat_view[0]=="") { $insertsql = "insert into $Table[ProductStat] set pcode = '$pcode', pname = '$pname', basedate = '$basedate', view = '1'"; $dalib->directQuery($insertsql); }else { $dalib->directQuery("update $Table[ProductStat] set view = view + 1 where pcode = '$pcode' and basedate = '$basedate'"); } } if($mode=="recom") { if($find=="precom") $PreTitle .= "추천상품 > "; if($find=="pnew") $PreTitle .= "신상품 > "; if($find=="pbest") $PreTitle .= "베스트 상품 > "; if($find=="ppopu") $PreTitle .= "인기상품 > "; }elseif($menu=="search") { $PreTitle .= "'$search' 검색 > "; }elseif($menu=="symp") { $PreTitle = "$SYMP_TITLE > "; }else { if($bigcatename != "") $PreTitle .= "$bigcatename > "; if($smcatenameTitle !="") $PreTitle .= "$smcatenameTitle > "; } $p_sale = "pcode_sale_".$pcode; ?>
배송지역 : 전국 |
배송비 : 10만원이상 구매시 무료배송 입니다. (도서,산간,오지 일부지역은 배송비가 추가될 수 있습니다.) |
평균배송일 : 입금확인후 평균 당일,1,2일 이후에 배송됩니다. - 배송은 15시 이전 주문에 한에 당일 또는 익일 배송됩니다. - 토요일/공휴일은 배송기간에 포함되지 않습니다. - 도서/산간지역은 2~3일 정도 추가 소요됩니다. - 불가항력적(일시품절, 천재지변,명절등의 택배폭주시등)인 사유로 배송이 다소 늦어질수 있습니다. |
교환 및 반품이 가능한 경우 : - 상품을 공급 받으신 날로부터 7일이내 - 공급 받으신 상품 및 용역의 내용이 표시, 광고 내용과 다르거나 다르게 이행된 경우에는 공급 받은 날로부터 1월 이내, 그 사실을 알게 된 날 또는 알 수 있었던 날로부터 1주일 이내 |
교환 및 반품이 불가능한 경우 : - 고객님의 책임 있는 사유로 상품이 멸실 또는 훼손된 경우. - 상품 택(TAG)제거 및 포장을 개봉하였거나 포장이 훼손되어 상품가치가 현저히 상실된 경우. - 포장 개봉 후 설치 혹은 사용하여 상품가치가 현저히 상실된 경우 반품, 환불이 되지 않습니다. - 고객 변심에 의한 반품, 교환시에는 고객께서 배송료를 부담하셔야 합니다. 단, 상품불량, 파손, 주문내역과 다른 상품이 배송되었을 경우 무료입니다. - 반송시 반드시 해당 고객센터로 반품상담 접수후 상담원의 안내에 따라 반송처리해주셔야 반품처리 가능합니다. - !!!! 상품을 수령하신 날로부터 15일이상 경과시 어떤 개인적인 사유로도 교환 및 반품 안됩니다.!! |
다이와, 시마노 AS : - 각 제조사의 AS규정에 의하여 처리가 됩니다. - 다이와드림은 제품의 중간판매자로서 제품에 대한 모든 AS는 각 제조사의 AS부에 문의하시면 됩니다. 한국다이와정공 AS : 031-949-5225 (내선번호1번) 주소 : 경기도 고양시 일산동구 장백로 208, 8층(장항동, 성암빌딩) - 윤성조구 AS : 1577-6160 주소 : 경기도 양주시 은현면 은현로 221번길 13 - 제조사의 AS 규정에 포함되지 않는 AS처리는 당사에서는 책임을 질 수 없음을 꼭 양지 바랍니다.!! |