PG 모바일 쿠폰 사용 오류 수정

This commit is contained in:
chicpro
2015-06-04 11:39:07 +09:00
parent 2c35a21128
commit a5323c49d6
6 changed files with 28 additions and 24 deletions

View File

@ -2172,6 +2172,28 @@ function cart_item_clean()
sql_query($sql);
}
// 모바일 PG 주문 필드 생성
function make_order_field($data, $exclude)
{
$field = '';
foreach($data as $key=>$value) {
if(in_array($key, $exclude))
continue;
if(is_array($value)) {
foreach($value as $k=>$v) {
$field .= '<input type="hidden" name="'.$key.'['.$k.']" value="'.$v.'">'.PHP_EOL;
}
} else {
$field .= '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
}
}
return $field;
}
//==============================================================================
// 쇼핑몰 라이브러리 모음 끝
//==============================================================================