From cfaa0e367d2c94b65eeae8223e2d99b563025cee Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 16 Sep 2020 17:02:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20NHN=5FKCP=20?= =?UTF-8?q?=EB=84=A4=EC=9D=B4=EB=B2=84=ED=8E=98=EC=9D=B4=20=EA=B0=84?= =?UTF-8?q?=ED=8E=B8=EA=B2=B0=EC=A0=9C=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/kcp/global_nhn_kcp_order.script.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/shop/kcp/global_nhn_kcp_order.script.php b/shop/kcp/global_nhn_kcp_order.script.php index 9d1b96b27..9d72cb5b8 100644 --- a/shop/kcp/global_nhn_kcp_order.script.php +++ b/shop/kcp/global_nhn_kcp_order.script.php @@ -51,11 +51,17 @@ jQuery(function($){ $("input,select,textarea", this).each( function(index){ - var $clone_el = $(this).clone() + var $clone_el = $(this).clone(), clone_el_name = $clone_el.attr("name"), clone_name_attr = "[name='"+clone_el_name+"']"; - if( clone_el_name && ! (/^(LGD_|CST_|it_price|cp_price|requestByJs|timestamp|signature|returnUrl|mKey|charset|payViewType|closeUrl|popupUrl|quotabase|tax)/i.test(clone_el_name)) ){ + if( $clone_el.prop("type") == "radio" || $clone_el.prop("type") == "checkbox" ){ + if( $clone_el.attr("checked") != "checked" ){ + clone_el_name = ""; + } + } + + if( clone_el_name && ! (/^(LGD_|CST_|it_price|cp_price|requestByJs|timestamp|signature|returnUrl|mKey|charset|payViewType|closeUrl|popupUrl|quotabase|tax|od_settle_case)/i.test(clone_el_name)) ){ if( $(nhnkcp_pay_form).find(clone_name_attr).length ){ $(nhnkcp_pay_form).find(clone_name_attr).val( $clone_el.val() ); } else {