Plugin Directory

Changeset 3176526


Ignore:
Timestamp:
10/28/2024 01:24:34 AM (17 months ago)
Author:
codemstory
Message:

5.1.2

[숏코드 결제] 대한민국 주소 & 체크아웃 필드 에디터 플러그인을 사용하지 않는 경우, need_shipping="no" 옵션 사용시 오류 수정
[숏코드 결제] 우커머스 체크아웃 블럭 사용 시 숏코드 결제 버튼 동작 오류 수정

Location:
pgall-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pgall-for-woocommerce/trunk/includes/class-pafw-shortcodes.php

    r3130785 r3176526  
    2525
    2626            add_filter( 'msaddr_field_is_enabled', array( __CLASS__, 'maybe_field_is_enabled' ), 10, 2 );
     27            add_filter( 'woocommerce_billing_fields', array( __CLASS__, 'maybe_filter_fields' ), 99, 2 );
     28            add_filter( 'woocommerce_shipping_fields', array( __CLASS__, 'maybe_filter_fields' ), 99, 2 );
    2729        }
    2830
     
    197199            return ob_get_clean();
    198200        }
    199 
    200201        public static function maybe_field_is_enabled( $enabled, $field ) {
    201202            static $address_fields = array(
     
    220221            return $enabled;
    221222        }
     223        public static function maybe_filter_fields( $address, $country ) {
     224            if ( defined( 'PAFW_SIMPLE_PAYMENT' ) && 'no' == pafw_get( $_POST, 'need_shipping' ) ) {
     225                static $filter_fields = array(
     226                    'billing_postcode',
     227                    'billing_address_1',
     228                    'billing_address_2',
     229                    'billing_state',
     230                    'billing_city',
     231                    'shipping_postcode',
     232                    'shipping_address_1',
     233                    'shipping_address_2',
     234                    'shipping_state',
     235                    'shipping_city',
     236                );
     237
     238                $address = array_diff_key( $address, array_flip( $filter_fields ) );
     239            }
     240
     241            return $address;
     242        }
    222243    }
    223244
  • pgall-for-woocommerce/trunk/includes/pafw-functions.php

    r3133013 r3176526  
    521521
    522522add_filter( 'pafw_enqueue_scripts', function ( $enqueue ) {
    523     return $enqueue && 'yes' != get_option( 'pafw-use-woocommerce-blocks', 'no' );
     523    return $enqueue && ( defined( 'PAFW_SIMPLE_PAYMENT' ) || 'yes' != get_option( 'pafw-use-woocommerce-blocks', 'no' ) );
    524524} );
    525525function pafw_maybe_set_payment_token( $order, $token ) {
  • pgall-for-woocommerce/trunk/languages/pgall-for-woocommerce.pot

    r3168183 r3176526  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: pgall-for-woocommerce 5.1.1\n"
     5"Project-Id-Version: pgall-for-woocommerce 5.1.2\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/pgall-for-woocommerce\n"
    8 "POT-Creation-Date: 2024-10-14 04:45:20+00:00\n"
     8"POT-Creation-Date: 2024-10-28 01:00:42+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    34173417msgstr ""
    34183418
    3419 #: includes/class-pafw-shortcodes.php:33
     3419#: includes/class-pafw-shortcodes.php:35
    34203420msgid "=== 결제 정보 확인 후 결제를 진행 해 주세요. ==="
    34213421msgstr ""
    34223422
    3423 #: includes/class-pafw-shortcodes.php:42 includes/class-pafw-shortcodes.php:126
     3423#: includes/class-pafw-shortcodes.php:44 includes/class-pafw-shortcodes.php:128
    34243424msgid "정보입력"
    34253425msgstr ""
    34263426
    3427 #: includes/class-pafw-shortcodes.php:43 includes/class-pafw-shortcodes.php:127
     3427#: includes/class-pafw-shortcodes.php:45 includes/class-pafw-shortcodes.php:129
    34283428msgid "이름 또는 내용을 입력하세요."
    34293429msgstr ""
    34303430
    3431 #: includes/class-pafw-shortcodes.php:44 includes/class-pafw-shortcodes.php:128
     3431#: includes/class-pafw-shortcodes.php:46 includes/class-pafw-shortcodes.php:130
    34323432msgid "금액"
    34333433msgstr ""
    34343434
    3435 #: includes/class-pafw-shortcodes.php:45 includes/class-pafw-shortcodes.php:129
     3435#: includes/class-pafw-shortcodes.php:47 includes/class-pafw-shortcodes.php:131
    34363436msgid "결제할 금액을 입력하세요."
    34373437msgstr ""
    34383438
    3439 #: includes/class-pafw-shortcodes.php:53
     3439#: includes/class-pafw-shortcodes.php:55
    34403440msgid "구매하기"
    34413441msgstr ""
  • pgall-for-woocommerce/trunk/pgall-for-woocommerce.php

    r3168183 r3176526  
    66Plugin URI:
    77Description: 코드엠샵에서 개발, 운영되는 우커머스 전용 결제 통합 시스템 입니다.
    8 Version: 5.1.1
     8Version: 5.1.2
    99Author: CodeMShop
    1010Author URI: www.codemshop.com
     
    2929        private static $_instance = null;
    3030        protected $slug;
    31         protected $version = '5.1.1';
     31        protected $version = '5.1.2';
    3232        protected $plugin_url;
    3333        protected $plugin_path;
  • pgall-for-woocommerce/trunk/readme.txt

    r3168183 r3176526  
    66Tested up to: 6.6
    77Requires PHP: 7.2
    8 Stable tag: 5.1.1
     8Stable tag: 5.1.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8484== Changelog ==
    8585
     86= 5.1.2 =
     87[숏코드 결제] 대한민국 주소 & 체크아웃 필드 에디터 플러그인을 사용하지 않는 경우, need_shipping="no" 옵션 사용시 오류 수정
     88[숏코드 결제] 우커머스 체크아웃 블럭 사용 시 숏코드 결제 버튼 동작 오류 수정
     89
    8690= 5.1.1 =
    8791[나이스페이] 결제창 언어 및 로고이미지 설정 기능 추가
Note: See TracChangeset for help on using the changeset viewer.