From 2d408ff0b36f5c5b45bdc2bca5ad2640b5aeda1c Mon Sep 17 00:00:00 2001 From: Thuan Bui Date: Sun, 30 Oct 2022 13:52:40 +0000 Subject: [PATCH] Change order of form fields --- vietnam-payment-gateways.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/vietnam-payment-gateways.php b/vietnam-payment-gateways.php index 9f06606..973be99 100644 --- a/vietnam-payment-gateways.php +++ b/vietnam-payment-gateways.php @@ -78,10 +78,9 @@ function vnpg_init_gateway_class() { 'default' => __( 'Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account.', 'woocommerce' ), 'desc_tip' => true, ), - 'template_id' => array( - 'title' => __( 'VietQR Template ID', 'vnpg'), - 'type' => 'text', - 'default' => 'compact' + 'bank' => array( + 'title' => __('Bank Name', 'vnpg'), + 'type' => 'text', ), 'account_number' => array( 'title' => __( 'Account Number', 'vnpg'), @@ -91,17 +90,19 @@ function vnpg_init_gateway_class() { 'title' => __( 'Account Name', 'vnpg'), 'type' => 'text' ), - 'prefix' => array( + 'prefix' => array( 'title' => __('Prefix', 'vnpg'), 'type' => 'text', 'description' => __('Prefix used to combine with order code to create money transfer content, Set rules: no spaces, no more than 15 characters and no special characters. Violations will be deleted', 'vnpg'), 'default' => $shopname, 'desc_tip' => true, ), - 'bank' => array( - 'title' => __('Bank Name', 'vnpg'), - 'type' => 'text', + 'template_id' => array( + 'title' => __( 'VietQR Template ID', 'vnpg'), + 'type' => 'text', + 'default' => 'compact' ), + );