영카트 5.4 버전 내용 적용

This commit is contained in:
thisgun
2019-12-02 10:29:31 +09:00
parent 8517e1e31e
commit 9b0078350d
840 changed files with 36442 additions and 28088 deletions

View File

@ -25,8 +25,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>';
<response>
<?php
foreach($itemIds as $it_id) {
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
$it = get_shop_item($it_id, true);
if(!$it['it_id'])
continue;
@ -60,7 +59,7 @@ foreach($itemIds as $it_id) {
<name><![CDATA[<?php echo $it['ec_mall_pid']; ?>]]></name>
<?php } ?>
<name><![CDATA[<?php echo $name; ?>]]></name>
<url><?php echo G5_SHOP_URL.'/item.php?it_id='.$it_id; ?></url>
<url><?php echo shop_item_url($it_id); ?></url>
<description><![CDATA[<?php echo $description; ?>]]></description>
<image><?php echo $image; ?></image>
<thumb><?php echo $image; ?></thumb>

View File

@ -85,7 +85,7 @@ $sel_options = array();
$sup_options = array();
if($_POST['naverpay_form'] == 'item.php')
$back_uri = '/item.php?it_id='.$_POST['it_id'][0];
$back_uri = shop_item_url($_POST['it_id'][0]);
else if($_POST['naverpay_form'] == 'cart.php')
$back_uri = '/cart.php';
else
@ -106,8 +106,7 @@ for($i=0; $i<$count; $i++) {
}
// 상품정보
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
$it = get_shop_item($it_id, true);
if(!$it['it_id'])
return_error2json('상품정보가 존재하지 않습니다.');

View File

@ -14,8 +14,7 @@ for($i=0; $i<$count; $i++) {
$it_id = $_POST['it_id'][$i];
// 상품정보
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
$it = get_shop_item($it_id, true);
if(!$it['it_id'])
alert_close('상품정보가 존재하지 않습니다.');
@ -24,7 +23,7 @@ for($i=0; $i<$count; $i++) {
$description = urlencode($it['it_basic']);
$price = get_price($it);
$image = urlencode(get_naverpay_item_image_url($it_id));
$item_url = urlencode(G5_SHOP_URL.'/item.php?it_id='.$it_id);
$item_url = urlencode(shop_item_url($it_id));
$item .= '&ITEM_ID='.$id;
if($it['ec_mall_pid'])