Changeset 3196945
- Timestamp:
- 11/25/2024 10:42:54 PM (17 months ago)
- Location:
- pgall-for-woocommerce/trunk
- Files:
-
- 5 edited
-
assets/js/myaccount.js (modified) (1 diff)
-
languages/pgall-for-woocommerce.pot (modified) (1 diff)
-
pgall-for-woocommerce.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/checkout/pafw/instant-payment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pgall-for-woocommerce/trunk/assets/js/myaccount.js
r3072071 r3196945 1 jQuery(document).ready(function(c){"use strict";function t(e){return e.is(".processing")||e.parents(".processing").length}function i(e){t(e)||e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}function s(e){e.removeClass("processing").unblock()}var a=c("textarea[name=reason]"),n=(c("select.pafw-ex-reason ").on("change",function(){var e=a.val();0<e.length&&(e+="\n"),a.val(e+c(this).val())}),c("input.request-exchange-return").on("click",function(){var a=c("#pafw_ex_wrapper");t(a)||(i(a),c.ajax({url:_pafw_ex.ajaxurl,type:"POST",dataType:"json",data:"action="+_pafw_ex.action+"&_wpnonce="+_pafw_ex._wpnonce+"&"+c("form.pafw-ex-request").serialize(),success:function(e){console.log(e),e.success?(void 0!==e.data.message&&alert(e.data.message),void 0!==e.data.redirect_url?window.location.replace(e.data.redirect_url):s(a)):(void 0!==e.data.message?alert(e.data.message):alert("처리중 오류가 발생했습니다. 관리자에게 문의해주세요."),s(a))}}))}),c("input.button.pafw-show-change-next-payment-date").on("click",function(){c(this).closest("div").css("display","none"),c(".pafw-change-next-payment-date-wrapper").css("display","flex")}),c("input.pafw-change-next-payment-date").on("click",function(){var a=c("div.woocommerce"),e=c("input[name=pafw-next-payment-date]").val();""===e?alert("변경하실 결제일을 입력해주세요."):confirm("다음 결제일을 "+e+" 로 변경하시겠습니까?")&&!t(a)&&(i(a),c.ajax({type:"POST",url:_pafw_subscription.ajax_url,data:{action:_pafw_subscription.slug+"-change_next_payment_date",subscription_id:_pafw_subscription.subscription_id,next_payment_date:e,_wpnonce:_pafw_subscription._wpnonce},success:function(e){e.success?window.location.reload():(alert(e.data),s(a))}}))}),c("table.subscription_details .cancel").on("click",function(e){e.preventDefault(),e.stopPropagation(),c.magnificPopup.open({items:{src:c(".pafw-cancel-reason-form"),type:"inline",midClick:!0},midClick:!0,closeBtnInside:!1,showCloseBtn:!1,fixedContentPos:!0})}),c(".pafw-cancel-reason-form .close").on("click",function(e){c.magnificPopup.close()}),c(".pafw-subscription-cancel-reason").on("change",function(e){var a=c("textarea[name=pafw-subscription-cancel-reason]");a.val(a.val()+c(this).val()+"\r\n")}),c("input.button.pafw-cancel-subscription").on("click",function(){var a=c("div.woocommerce"),e=c("textarea[name=pafw-subscription-cancel-reason]");_.isEmpty(e.val().trim())?alert("구독 취소 사유를 입력해주세요."):confirm("구독을 취소하시겠습니까?")&&!t(a)&&(c.magnificPopup.close(),i(a),c.ajax({type:"POST",url:_pafw_subscription.ajax_url,data:{action:_pafw_subscription.slug+"-cancel_subscription",subscription_id:_pafw_subscription.subscription_id,cancel_reason:e.val(),_wpnonce:_pafw_subscription._wpnonce},success:function(e){e.success?window.location.reload():(alert(e.data),s(a))}}))}),""),o=(c("table.my_account_orders .cancel, table.pafw-payment-details .cancel").on("click",function(e){e.preventDefault(),e.stopPropagation(),n=c(this).attr("href"),c.magnificPopup.open({items:{src:c(".pafw-cancel-reason-form"),type:"inline",midClick:!0},midClick:!0,closeBtnInside:!1,showCloseBtn:!1,fixedContentPos:!0})}),c(".pafw- cancel-reason-form .close").on("click",function(e){c.magnificPopup.close()}),c(".pafw-order-cancel-reason").on("change",function(e){var a=c("textarea[name=pafw-order-cancel-reason]");a.val(a.val()+c(this).val()+"\r\n")}),c("input.button.pafw-cancel-order").on("click",function(){var a=c("div.woocommerce"),e=c("textarea[name=pafw-order-cancel-reason]");_.isEmpty(e.val().trim())?alert("주문 취소 사유를 입력해주세요."):confirm("주문을 취소하시겠습니까?")&&!t(a)&&(c.magnificPopup.close(),i(a),c.ajax({type:"POST",url:_pafw_order.ajax_url,data:{action:_pafw_order.slug+"-survey_cancel_reason",redirect_url:n,cancel_reason:e.val(),_wpnonce:_pafw_order._wpnonce},success:function(e){e.success?window.location.href=n:(alert(e.data),s(a))}}))}),c(".pafw-view-cash-receipt").on("click",function(){var n=c("div.woocommerce");i(n),c.ajax({type:"POST",url:_pafw_order.ajax_url,data:{action:_pafw_order.slug+"-pafw_view_receipt",order_id:c(this).data("order_id"),_wpnonce:_pafw_order._wpnonce},success:function(e){var a;e.success?null===(a=window.open("","","scrollbars=yes,width=480,height=700"))?alert("팝업이 차단되어 있습니다. 팝업설정을 변경하신 후 다시 시도해주세요."):(a.document.write(e.data),a.document.close()):alert(e.data),s(n)},error:function(e,a,t){alert(t),s(n)}})}),{$wrapper:null,$requestButton:null,init:function(){this.$wrapper=c("#pafw_ex_wrapper"),this.$exTypeSelector=c("#pafw_type_container > div",this.$wrapper),this.$requestButton=c("input.request-exchange-return",this.$wrapper),this.$productCheckBox=c(".product-checkbox > input[type=checkbox]",this.$wrapper),this.$orderItems=c(".cart-item-list",this.$wrapper),c(".exchange-item select",this.$wrapper).select2({templateResult:this._select2ItemTemplate.bind(this),templateSelection:this._select2ItemTemplate.bind(this),escapeMarkup:function(e){return e}}),this.bindEvent(),this.updateField()},bindEvent:function(){this.$requestButton.on("click",this.requestExchangeReturn.bind(this)),this.$exTypeSelector.on("click",this.updateField.bind(this)),this.$productCheckBox.on("change",this.loadExchangeProduct)},_select2ItemTemplate:function(e){if(!_.isUndefined(e.element)){var a=c(e.element),a=_.clone(a.data("params"));if(!_.isUndefined(a))return wp.template("select-item-template")({params:a}).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}return e.text},requestExchangeReturn:function(){var a=this;t(this.$wrapper)||(i(this.$wrapper),c.ajax({url:_pafw_ex.ajaxurl,type:"POST",dataType:"json",data:"action="+_pafw_ex.action+"&_wpnonce="+_pafw_ex._wpnonce+"&"+c("form.pafw-ex-request").serialize(),success:function(e){console.log(e),e.success?(void 0!==e.data.message&&alert(e.data.message),void 0!==e.data.redirect_url?window.location.replace(e.data.redirect_url):s($wrapper)):(void 0!==e.data.message?alert(e.data.message):alert("처리중 오류가 발생했습니다. 관리자에게 문의해주세요."),s(a.$wrapper))}}))},updateField:function(){var e=c("input:checked",this.$exTypeSelector).val();c(".show-if-type",this.$wrapper).css("display","none"),c(".show-if-type.show-if-type-"+e,this.$wrapper).css("display","block"),"exchange"===e?this.$orderItems.each(function(e,a){var t=c(a).closest("div.cart-item-list").data("key");c(".product-checkbox input",c(a)).is(":checked")?c(".exchange-item-"+t).css("display","flex"):c(".exchange-item-"+t).css("display","none")}):c(".exchange-item").css("display","none")},loadExchangeProduct:function(){var e;"exchange"===c("input:checked",o.$exTypeSelector).val()&&(e=c(this).closest("div.cart-item-list").data("key"),c(this).is(":checked")?c(".exchange-item-"+e).css("display","flex"):c(".exchange-item-"+e).css("display","none"))}});o.init()});1 jQuery(document).ready(function(c){"use strict";function t(e){return e.is(".processing")||e.parents(".processing").length}function i(e){t(e)||e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}function s(e){e.removeClass("processing").unblock()}var a=c("textarea[name=reason]"),n=(c("select.pafw-ex-reason ").on("change",function(){var e=a.val();0<e.length&&(e+="\n"),a.val(e+c(this).val())}),c("input.request-exchange-return").on("click",function(){var a=c("#pafw_ex_wrapper");t(a)||(i(a),c.ajax({url:_pafw_ex.ajaxurl,type:"POST",dataType:"json",data:"action="+_pafw_ex.action+"&_wpnonce="+_pafw_ex._wpnonce+"&"+c("form.pafw-ex-request").serialize(),success:function(e){console.log(e),e.success?(void 0!==e.data.message&&alert(e.data.message),void 0!==e.data.redirect_url?window.location.replace(e.data.redirect_url):s(a)):(void 0!==e.data.message?alert(e.data.message):alert("처리중 오류가 발생했습니다. 관리자에게 문의해주세요."),s(a))}}))}),c("input.button.pafw-show-change-next-payment-date").on("click",function(){c(this).closest("div").css("display","none"),c(".pafw-change-next-payment-date-wrapper").css("display","flex")}),c("input.pafw-change-next-payment-date").on("click",function(){var a=c("div.woocommerce"),e=c("input[name=pafw-next-payment-date]").val();""===e?alert("변경하실 결제일을 입력해주세요."):confirm("다음 결제일을 "+e+" 로 변경하시겠습니까?")&&!t(a)&&(i(a),c.ajax({type:"POST",url:_pafw_subscription.ajax_url,data:{action:_pafw_subscription.slug+"-change_next_payment_date",subscription_id:_pafw_subscription.subscription_id,next_payment_date:e,_wpnonce:_pafw_subscription._wpnonce},success:function(e){e.success?window.location.reload():(alert(e.data),s(a))}}))}),c("table.subscription_details .cancel").on("click",function(e){e.preventDefault(),e.stopPropagation(),c.magnificPopup.open({items:{src:c(".pafw-cancel-reason-form"),type:"inline",midClick:!0},midClick:!0,closeBtnInside:!1,showCloseBtn:!1,fixedContentPos:!0})}),c(".pafw-cancel-reason-form .close").on("click",function(e){c.magnificPopup.close()}),c(".pafw-subscription-cancel-reason").on("change",function(e){var a=c("textarea[name=pafw-subscription-cancel-reason]");a.val(a.val()+c(this).val()+"\r\n")}),c("input.button.pafw-cancel-subscription").on("click",function(){var a=c("div.woocommerce"),e=c("textarea[name=pafw-subscription-cancel-reason]");_.isEmpty(e.val().trim())?alert("구독 취소 사유를 입력해주세요."):confirm("구독을 취소하시겠습니까?")&&!t(a)&&(c.magnificPopup.close(),i(a),c.ajax({type:"POST",url:_pafw_subscription.ajax_url,data:{action:_pafw_subscription.slug+"-cancel_subscription",subscription_id:_pafw_subscription.subscription_id,cancel_reason:e.val(),_wpnonce:_pafw_subscription._wpnonce},success:function(e){e.success?window.location.reload():(alert(e.data),s(a))}}))}),""),o=(c("table.my_account_orders .cancel, table.pafw-payment-details .cancel").on("click",function(e){e.preventDefault(),e.stopPropagation(),n=c(this).attr("href"),c.magnificPopup.open({items:{src:c(".pafw-cancel-reason-form"),type:"inline",midClick:!0},midClick:!0,closeBtnInside:!1,showCloseBtn:!1,fixedContentPos:!0})}),c(".pafw-order-cancel-reason").on("change",function(e){var a=c("textarea[name=pafw-order-cancel-reason]");a.val(a.val()+c(this).val()+"\r\n")}),c("input.button.pafw-cancel-order").on("click",function(){var a=c("div.woocommerce"),e=c("textarea[name=pafw-order-cancel-reason]");_.isEmpty(e.val().trim())?alert("주문 취소 사유를 입력해주세요."):confirm("주문을 취소하시겠습니까?")&&!t(a)&&(c.magnificPopup.close(),i(a),c.ajax({type:"POST",url:_pafw_order.ajax_url,data:{action:_pafw_order.slug+"-survey_cancel_reason",redirect_url:n,cancel_reason:e.val(),_wpnonce:_pafw_order._wpnonce},success:function(e){e.success?window.location.href=n:(alert(e.data),s(a))}}))}),c(".pafw-view-cash-receipt").on("click",function(){var n=c("div.woocommerce");i(n),c.ajax({type:"POST",url:_pafw_order.ajax_url,data:{action:_pafw_order.slug+"-pafw_view_receipt",order_id:c(this).data("order_id"),_wpnonce:_pafw_order._wpnonce},success:function(e){var a;e.success?null===(a=window.open("","","scrollbars=yes,width=480,height=700"))?alert("팝업이 차단되어 있습니다. 팝업설정을 변경하신 후 다시 시도해주세요."):(a.document.write(e.data),a.document.close()):alert(e.data),s(n)},error:function(e,a,t){alert(t),s(n)}})}),{$wrapper:null,$requestButton:null,init:function(){this.$wrapper=c("#pafw_ex_wrapper"),this.$exTypeSelector=c("#pafw_type_container > div",this.$wrapper),this.$requestButton=c("input.request-exchange-return",this.$wrapper),this.$productCheckBox=c(".product-checkbox > input[type=checkbox]",this.$wrapper),this.$orderItems=c(".cart-item-list",this.$wrapper),c(".exchange-item select",this.$wrapper).select2({templateResult:this._select2ItemTemplate.bind(this),templateSelection:this._select2ItemTemplate.bind(this),escapeMarkup:function(e){return e}}),this.bindEvent(),this.updateField()},bindEvent:function(){this.$requestButton.on("click",this.requestExchangeReturn.bind(this)),this.$exTypeSelector.on("click",this.updateField.bind(this)),this.$productCheckBox.on("change",this.loadExchangeProduct)},_select2ItemTemplate:function(e){if(!_.isUndefined(e.element)){var a=c(e.element),a=_.clone(a.data("params"));if(!_.isUndefined(a))return wp.template("select-item-template")({params:a}).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}return e.text},requestExchangeReturn:function(){var a=this;t(this.$wrapper)||(i(this.$wrapper),c.ajax({url:_pafw_ex.ajaxurl,type:"POST",dataType:"json",data:"action="+_pafw_ex.action+"&_wpnonce="+_pafw_ex._wpnonce+"&"+c("form.pafw-ex-request").serialize(),success:function(e){console.log(e),e.success?(void 0!==e.data.message&&alert(e.data.message),void 0!==e.data.redirect_url?window.location.replace(e.data.redirect_url):s($wrapper)):(void 0!==e.data.message?alert(e.data.message):alert("처리중 오류가 발생했습니다. 관리자에게 문의해주세요."),s(a.$wrapper))}}))},updateField:function(){var e=c("input:checked",this.$exTypeSelector).val();c(".show-if-type",this.$wrapper).css("display","none"),c(".show-if-type.show-if-type-"+e,this.$wrapper).css("display","block"),"exchange"===e?this.$orderItems.each(function(e,a){var t=c(a).closest("div.cart-item-list").data("key");c(".product-checkbox input",c(a)).is(":checked")?c(".exchange-item-"+t).css("display","flex"):c(".exchange-item-"+t).css("display","none")}):c(".exchange-item").css("display","none")},loadExchangeProduct:function(){var e;"exchange"===c("input:checked",o.$exTypeSelector).val()&&(e=c(this).closest("div.cart-item-list").data("key"),c(this).is(":checked")?c(".exchange-item-"+e).css("display","flex"):c(".exchange-item-"+e).css("display","none"))}});"undefined"!=typeof _pafw_ex&&o.init()}); -
pgall-for-woocommerce/trunk/languages/pgall-for-woocommerce.pot
r3191856 r3196945 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: pgall-for-woocommerce 5.2. 0\n"5 "Project-Id-Version: pgall-for-woocommerce 5.2.2\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/pgall-for-woocommerce\n" 8 "POT-Creation-Date: 2024-11- 19 06:49:52+00:00\n"8 "POT-Creation-Date: 2024-11-25 22:39:12+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" -
pgall-for-woocommerce/trunk/pgall-for-woocommerce.php
r3191856 r3196945 6 6 Plugin URI: 7 7 Description: 코드엠샵에서 개발, 운영되는 우커머스 전용 결제 통합 시스템 입니다. 8 Version: 5.2. 08 Version: 5.2.2 9 9 Author: CodeMShop 10 10 Author URI: www.codemshop.com … … 29 29 private static $_instance = null; 30 30 protected $slug; 31 protected $version = '5.2. 0';31 protected $version = '5.2.2'; 32 32 protected $plugin_url; 33 33 protected $plugin_path; -
pgall-for-woocommerce/trunk/readme.txt
r3191856 r3196945 6 6 Tested up to: 6.7 7 7 Requires PHP: 7.2 8 Stable tag: 5.2. 08 Stable tag: 5.2.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 84 84 == Changelog == 85 85 86 = 5.2.2 = 87 [SimplePay Shortcode] Security Update - Special thanks to patchstack (https://patchstack.com/). 88 89 = 5.2.1 = 90 [공통] 내계정 페이지 스크립트에 Select2 라이브러리 지원 여부에 따른 예외처리 적용 91 86 92 = 5.2.0 = 87 93 [공통] 숏코드 결제 템플릿 보안 업데이트 적용 -
pgall-for-woocommerce/trunk/templates/checkout/pafw/instant-payment.php
r3191856 r3196945 46 46 </script> 47 47 <form class="checkout <?php esc_attr_e( $params['uid'] ); ?>"> 48 <?php wc_get_template( 'checkout/pafw/form-' . $params['template']. '.php', array( 'params' => $params ), '', PAFW()->template_path() ); ?>48 <?php wc_get_template( 'checkout/pafw/form-' . sanitize_file_name( $params['template'] ) . '.php', array( 'params' => $params ), '', PAFW()->template_path() ); ?> 49 49 </form> 50 50 </div>
Note: See TracChangeset
for help on using the changeset viewer.