From e2e172d2a80df8602556e19de928012d169d18a0 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Mon, 18 Apr 2022 14:35:28 +0530 Subject: [PATCH 01/17] issue-fixes --- .../js/woo-refund-and-exchange-lite-public.js | 4 ++ assets/src/front-end/scss/main.scss | 36 ++++++++-------- ...ss-woo-refund-and-exchange-lite-common.php | 40 +++++++++++------- ...and-exchange-lite-refund-request-email.php | 2 +- .../wps-rma-refund-request-email-template.php | 2 +- .../wps-rma-refund-request-email-template.php | 2 +- ...und-and-exchange-lite-onboarding-steps.php | 2 +- .../woo-refund-and-exchange-lite-en_US.mo | Bin 723 -> 723 bytes .../woo-refund-and-exchange-lite-en_US.po | 6 +-- ...=> woo-refund-and-exchange-lite-en_US.pot} | 4 +- package-lock.json | 14 +++--- ...ss-woo-refund-and-exchange-lite-public.php | 2 + .../woo-refund-and-exchange-lite-public.css | 36 ++++++++-------- ...oo-refund-and-exchange-lite-public.min.css | 2 +- .../js/woo-refund-and-exchange-lite-public.js | 5 ++- ...woo-refund-and-exchange-lite-public.min.js | 2 +- .../partials/wps-rma-refund-request-form.php | 4 +- woocommerce-refund-and-exchange-lite.php | 4 +- 18 files changed, 91 insertions(+), 76 deletions(-) rename languages/{woo-refund-and-exchange-lite.pot => woo-refund-and-exchange-lite-en_US.pot} (99%) diff --git a/assets/src/front-end/js/woo-refund-and-exchange-lite-public.js b/assets/src/front-end/js/woo-refund-and-exchange-lite-public.js index 083c927..76ef043 100755 --- a/assets/src/front-end/js/woo-refund-and-exchange-lite-public.js +++ b/assets/src/front-end/js/woo-refund-and-exchange-lite-public.js @@ -36,6 +36,8 @@ jQuery( document ).on( 'ready', function(){ $(document).find('.wps_rma_return_request_morefiles').data( 'count', count - 1 ); $(this).parent( '.add_field_input_div' ).remove(); }); + var check_refund_method = wrael_public_param.check_refund_method; + var check_refund_manually = wrael_public_param.wps_refund_manually; // show the bank details field on selected refund method. var wps_wrma_refund_method = $('input[name=wps_wrma_refund_method]:checked').val(); @@ -43,6 +45,8 @@ jQuery( document ).on( 'ready', function(){ $( '#bank_details' ).show(); } else if( ! wrael_public_param.check_pro_active ) { $( '#bank_details' ).show(); + } else if ( wrael_public_param.check_pro_active && 'on' != check_refund_method && 'on' == check_refund_manually ) { + $( '#bank_details' ).show(); } else { $( '#bank_details' ).hide(); } diff --git a/assets/src/front-end/scss/main.scss b/assets/src/front-end/scss/main.scss index fb03180..a530f13 100755 --- a/assets/src/front-end/scss/main.scss +++ b/assets/src/front-end/scss/main.scss @@ -26,41 +26,41 @@ box-sizing: border-box; } -textarea, input[type=text], -input[type=number], -input[type=email], input[type=tel], -input[type=url], input[type=password], -input[type=search], .input-text{ +.wps-rma-form__wrapper textarea,.wps-rma-form__wrapper input[type=text], +.wps-rma-form__wrapper input[type=number], +.wps-rma-form__wrapper input[type=email], .wps-rma-form__wrapper input[type=tel], +.wps-rma-form__wrapper input[type=url],.wps-rma-form__wrapper input[type=password], +.wps-rma-form__wrapper input[type=search],.wps-rma-form__wrapper .input-text{ background-color: transparent !important; border: 1px solid #ccc !important; box-shadow: none !important; padding: 10px 14px; } -input[type=text]:focus, -input[type=number]:focus, -input[type=email]:focus, -input[type=tel]:focus, -input[type=url]:focus, -.wps_order_msg_sub_containerinput[type=password]:focus, -input[type=search]:focus, -textarea:focus, -a:focus, +.wps-rma-form__wrapper input[type=text]:focus, +.wps-rma-form__wrapper input[type=number]:focus, +.wps-rma-form__wrapper input[type=email]:focus, +.wps-rma-form__wrapper input[type=tel]:focus, +.wps-rma-form__wrapper input[type=url]:focus, +.wps_order_msg_sub_container input[type=password]:focus, +.wps-rma-form__wrapper input[type=search]:focus, +.wps-rma-form__wrapper textarea:focus, +.wps-rma-form__wrapper a:focus, .input-text:focus { outline: none !important; } -label{ +.wps-rma-form__wrapper label{ margin-bottom: 8px; display: inline-block; line-height: 1.2; } -h4{ +.wps-rma-form__wrapper h4{ font-size: 18px !important; } -.wps_rma_flex{ +.wps-rma-form__wrapper .wps_rma_flex{ display: flex; flex-wrap: wrap; } -select { +.wps-rma-form__wrapper select { padding: 10px 14px; } .wps_rma_refund_form_wrapper input[type=text]:focus, diff --git a/common/class-woo-refund-and-exchange-lite-common.php b/common/class-woo-refund-and-exchange-lite-common.php index 8527b71..4e64357 100755 --- a/common/class-woo-refund-and-exchange-lite-common.php +++ b/common/class-woo-refund-and-exchange-lite-common.php @@ -258,28 +258,36 @@ public function wps_rma_add_custom_order_status( $wps_rma_order_statuses ) { */ public function wps_rma_role_capability() { $wps_rma_customer_role = get_role( 'customer' ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); + if ( ! empty( $wps_rma_customer_role ) ) { + $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); + } $wps_rma_customer_role = get_role( 'administrator' ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-approve', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-cancel', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-manage-stock', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-amount', true ); + if ( ! empty( $wps_rma_customer_role ) ) { + $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-approve', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-cancel', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-manage-stock', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-amount', true ); + } $wps_rma_customer_role = get_role( 'editor' ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-approve', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-cancel', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-manage-stock', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-amount', true ); + if ( ! empty( $wps_rma_customer_role ) ) { + $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-approve', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-cancel', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-manage-stock', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-amount', true ); + } $wps_rma_customer_role = get_role( 'shop_manager' ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-approve', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-cancel', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-manage-stock', true ); - $wps_rma_customer_role->add_cap( 'wps-rma-refund-amount', true ); + if ( ! empty( $wps_rma_customer_role ) ) { + $wps_rma_customer_role->add_cap( 'wps-rma-refund-request', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-approve', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-cancel', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-manage-stock', true ); + $wps_rma_customer_role->add_cap( 'wps-rma-refund-amount', true ); + } } /** diff --git a/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php b/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php index 636b19f..bd0a6e0 100755 --- a/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php +++ b/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php @@ -112,7 +112,7 @@ '; $attachment = array(); -$to = get_option( 'admin_email' ); +$to = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); $admin_email = WC()->mailer()->emails['wps_rma_refund_request_email']; $restrict_mail1 = apply_filters( 'wps_rma_restrict_refund_request_user_mail', true ); $restrict_mail2 = apply_filters( 'wps_rma_restrict_refund_request_admin_mail', true ); diff --git a/emails/templates/plain/wps-rma-refund-request-email-template.php b/emails/templates/plain/wps-rma-refund-request-email-template.php index b0dd801..57a6d39 100755 --- a/emails/templates/plain/wps-rma-refund-request-email-template.php +++ b/emails/templates/plain/wps-rma-refund-request-email-template.php @@ -14,7 +14,7 @@ echo esc_html( $email_heading ) . "\n\n"; $message = $msg; -$admin_mail = get_option( 'admin_email' ); +$admin_mail = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); if ( $to === $admin_mail && ( ! empty( $additional_content ) || empty( $additional_content ) ) ) { echo wp_kses_post( $message ); } else { diff --git a/emails/templates/wps-rma-refund-request-email-template.php b/emails/templates/wps-rma-refund-request-email-template.php index 6097816..761ff38 100755 --- a/emails/templates/wps-rma-refund-request-email-template.php +++ b/emails/templates/wps-rma-refund-request-email-template.php @@ -14,7 +14,7 @@ do_action( 'woocommerce_email_header', $email_heading, $email ); $message = $msg; -$admin_mail = get_option( 'admin_email' ); +$admin_mail = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); if ( $to === $admin_mail && ( ! empty( $additional_content ) || empty( $additional_content ) ) ) { echo wp_kses_post( $message ); } else { diff --git a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php index af7ce84..9957c1f 100755 --- a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php +++ b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php @@ -535,7 +535,7 @@ public function wps_rma_add_deactivation_form_fields() { 'type' => 'hidden', 'placeholder' => '', 'name' => 'org_plugin_name', - 'value' => '', + 'value' => self::$wps_rma_plugin_name, 'required' => '', 'class' => '', ), diff --git a/languages/woo-refund-and-exchange-lite-en_US.mo b/languages/woo-refund-and-exchange-lite-en_US.mo index 82b89a1ecfb490a36d4f0ded32c86293d827e8b8..8f8fb32c5eb478a0a01b3ee2113ac2fb2d7a50d7 100644 GIT binary patch delta 23 ecmcc2dYN@X4WrS-T4{DeBLzc4E0c}$O_%^&M+W%- delta 23 ecmcc2dYN@X4Wq%tT4{Cz3k5?{E2E9`O_%^&Y6kuQ diff --git a/languages/woo-refund-and-exchange-lite-en_US.po b/languages/woo-refund-and-exchange-lite-en_US.po index a6327cd..9cd1683 100644 --- a/languages/woo-refund-and-exchange-lite-en_US.po +++ b/languages/woo-refund-and-exchange-lite-en_US.po @@ -1,8 +1,8 @@ msgid "" msgstr "" -"Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.0\n" -"POT-Creation-Date: 2022-04-08 15:26+0530\n" -"PO-Revision-Date: 2022-04-08 15:26+0530\n" +"Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.2\n" +"POT-Creation-Date: 2022-04-12 11:30+0530\n" +"PO-Revision-Date: 2022-04-12 11:46+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" "Language: en_US\n" diff --git a/languages/woo-refund-and-exchange-lite.pot b/languages/woo-refund-and-exchange-lite-en_US.pot similarity index 99% rename from languages/woo-refund-and-exchange-lite.pot rename to languages/woo-refund-and-exchange-lite-en_US.pot index fb0358d..c860e62 100644 --- a/languages/woo-refund-and-exchange-lite.pot +++ b/languages/woo-refund-and-exchange-lite-en_US.pot @@ -1,8 +1,8 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.0\n" -"POT-Creation-Date: 2022-04-08 15:26+0530\n" +"Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.2\n" +"POT-Creation-Date: 2022-04-12 11:29+0530\n" "PO-Revision-Date: 2021-08-21 11:15+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" diff --git a/package-lock.json b/package-lock.json index cda4294..0829426 100755 --- a/package-lock.json +++ b/package-lock.json @@ -3163,14 +3163,6 @@ "webpack-cli": "^3.3.11", "webpack-livereload-plugin": "^2.3.0", "webpack-sources": "^2.2.0" - }, - "dependencies": { - "prettier": { - "version": "npm:wp-prettier@2.2.1-beta-1", - "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz", - "integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==", - "dev": true - } } }, "@wordpress/stylelint-config": { @@ -15706,6 +15698,12 @@ "dev": true, "optional": true }, + "prettier": { + "version": "npm:wp-prettier@2.2.1-beta-1", + "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz", + "integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==", + "dev": true + }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", diff --git a/public/class-woo-refund-and-exchange-lite-public.php b/public/class-woo-refund-and-exchange-lite-public.php index 5c79d0d..7602f00 100755 --- a/public/class-woo-refund-and-exchange-lite-public.php +++ b/public/class-woo-refund-and-exchange-lite-public.php @@ -80,6 +80,8 @@ public function wrael_public_enqueue_scripts() { 'return_reason_msg' => esc_html__( 'Please enter refund reason.', 'woo-refund-and-exchange-lite' ), 'return_select_product' => esc_html__( 'Please select product to refund.', 'woo-refund-and-exchange-lite' ), 'check_pro_active' => esc_html( $pro_active ), + 'check_refund_method' => get_option( 'wps_rma_refund_method' ), + 'wps_refund_manually' => get_option( 'wps_rma_refund_manually_de' ), ) ); wp_enqueue_script( $this->plugin_name ); diff --git a/public/css/woo-refund-and-exchange-lite-public.css b/public/css/woo-refund-and-exchange-lite-public.css index 6c5bac7..88d27e4 100755 --- a/public/css/woo-refund-and-exchange-lite-public.css +++ b/public/css/woo-refund-and-exchange-lite-public.css @@ -49,46 +49,46 @@ box-sizing: border-box; } -textarea, input[type=text], -input[type=number], -input[type=email], input[type=tel], -input[type=url], input[type=password], -input[type=search], .input-text { +.wps-rma-form__wrapper textarea, .wps-rma-form__wrapper input[type=text], +.wps-rma-form__wrapper input[type=number], +.wps-rma-form__wrapper input[type=email], .wps-rma-form__wrapper input[type=tel], +.wps-rma-form__wrapper input[type=url], .wps-rma-form__wrapper input[type=password], +.wps-rma-form__wrapper input[type=search], .wps-rma-form__wrapper .input-text { background-color: transparent !important; border: 1px solid #ccc !important; box-shadow: none !important; padding: 10px 14px; } -input[type=text]:focus, -input[type=number]:focus, -input[type=email]:focus, -input[type=tel]:focus, -input[type=url]:focus, -.wps_order_msg_sub_containerinput[type=password]:focus, -input[type=search]:focus, -textarea:focus, -a:focus, +.wps-rma-form__wrapper input[type=text]:focus, +.wps-rma-form__wrapper input[type=number]:focus, +.wps-rma-form__wrapper input[type=email]:focus, +.wps-rma-form__wrapper input[type=tel]:focus, +.wps-rma-form__wrapper input[type=url]:focus, +.wps_order_msg_sub_container input[type=password]:focus, +.wps-rma-form__wrapper input[type=search]:focus, +.wps-rma-form__wrapper textarea:focus, +.wps-rma-form__wrapper a:focus, .input-text:focus { outline: none !important; } -label { +.wps-rma-form__wrapper label { margin-bottom: 8px; display: inline-block; line-height: 1.2; } -h4 { +.wps-rma-form__wrapper h4 { font-size: 18px !important; } -.wps_rma_flex { +.wps-rma-form__wrapper .wps_rma_flex { display: flex; flex-wrap: wrap; } -select { +.wps-rma-form__wrapper select { padding: 10px 14px; } diff --git a/public/css/woo-refund-and-exchange-lite-public.min.css b/public/css/woo-refund-and-exchange-lite-public.min.css index b20709f..aef218c 100755 --- a/public/css/woo-refund-and-exchange-lite-public.min.css +++ b/public/css/woo-refund-and-exchange-lite-public.min.css @@ -1 +1 @@ -*,:after,:before{box-sizing:border-box}.wps_order_msg_history_container .wps_reload_messages .reload-icon{margin-left:10px;width:25px}.wps_order_msg_sub_container{border:1px solid #ccc;max-height:400px;min-height:200px;overflow-y:auto;padding:30px}*,:after,:before{box-sizing:border-box}.input-text,input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],textarea{background-color:transparent!important;border:1px solid #ccc!important;box-shadow:none!important;padding:10px 14px}.input-text:focus,.wps_order_msg_sub_containerinput[type=password]:focus,a:focus,input[type=email]:focus,input[type=number]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,textarea:focus{outline:none!important}label{display:inline-block;line-height:1.2;margin-bottom:8px}h4{font-size:18px!important}.wps_rma_flex{display:flex;flex-wrap:wrap}select{padding:10px 14px}.wps_rma_refund_form_wrapper .input-text:focus,.wps_rma_refund_form_wrapper input[type=email]:focus,.wps_rma_refund_form_wrapper input[type=number]:focus,.wps_rma_refund_form_wrapper input[type=password]:focus,.wps_rma_refund_form_wrapper input[type=search]:focus,.wps_rma_refund_form_wrapper input[type=tel]:focus,.wps_rma_refund_form_wrapper input[type=text]:focus,.wps_rma_refund_form_wrapper input[type=url]:focus,.wps_rma_refund_form_wrapper textarea:focus{background-color:transparent}.wps_rma_refund_form_wrapper .wps-rma-subject__dropdown select{border-radius:0;padding:5px 105px 5px 5px;width:100%}.wps_rma_refund_form_wrapper .wps_rma_other_subject input{width:100%}.wps-rma-product__table{border-collapse:collapse;min-width:665px;width:100%}.wps-rma-form__wrapper h2.woocommerce-column__title{font-weight:600}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject:focus-visible{outline:none}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject option{box-shadow:none}.wps-rma-product__table-wrapper{overflow-x:auto;padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_product_title{padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_refund_request__row{justify-content:space-between}.wps_rma_refund_form_wrapper .wps_rma__column{width:100%}.wps-rma-form__wrapper.wps-rma-form__wrapper{border:1px solid #333}.wps-rma-form__wrapper .wps-rma-form__header{background-color:#333}.wps-rma-form__wrapper .wps-rma-form__heading{color:#fff;font-size:24px;font-weight:500;margin-top:0;padding:10px 15px}.wps-rma-form__wrapper td,.wps-rma-form__wrapper th{border:1px solid #ccc;padding:15px;text-align:center;vertical-align:middle}.wps-rma-form__wrapper th{color:#333}.wps-rma-form__wrapper .wps-rma-product__wrap{align-items:center;display:flex;justify-content:center}.wps-rma-form__wrapper .wps-rma__product-title{margin-left:20px;text-align:left}.wps-rma-product__table tbody td,fieldset,fieldset legend,table.wps-rma-product__table:not(.has-background) tbody td,table.wps-rma-product__table:not(.has-background) tbody tr:nth-child(2n) td{background-color:#fff}.wps-rma-form__wrapper .wps-rma-row__pd{padding:0 15px}.wps-rma-form__wrapper .wps-rma-col{width:100%}.wps-rma-form__wrapper .wps-rma-col.wps_rma_flex{justify-content:flex-start}.wps-rma-form__wrapper .wps_rma_other_subject{margin:25px 0}.wps_rma_attach_files{margin-top:10px}.wps-rma-subject__dropdown{margin-top:25px}.wps-rma-form__wrapper textarea{width:100%}.wps-rma-form__wrapper .product-quantity input{height:48px;margin:0 auto;width:197px}.wps-rma-form__wrapper td:last-child,.wps-rma-form__wrapper th:last-child{padding-right:15px}.wps-rma-form__wrapper td.product-total{text-align:center}.wps-order-msg-attachment-wrapper{align-items:center;justify-content:space-between;margin-top:20px}.wps-order-attachment input#wps_order_msg_attachment{max-width:230px}#wps_order_msg_submit{background:#374585;border:1px solid #374585;border-radius:3px;color:#fff;cursor:pointer;font-size:16px;margin:0;padding:6px 30px;text-decoration:none}form#wps_order_new_msg_form{margin-bottom:40px}.wps_rma_order_msg_wrapper .wps-order-msg-attachment-wrapper label{color:#000}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex{align-items:center}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex a{margin-left:20px;width:18px}.wps-order-msg__row{word-wrap:break-word;background-color:#fff;border:1px solid #ddd;margin-bottom:30px;padding:30px 30px 30px 0;width:auto}.wps_order_msg_sender{background-color:#4f62b9;color:#fff;display:inline-block;font-size:18px;font-weight:600;line-height:1.8;padding:8px 52px 8px 30px;position:relative}span.wps_order_msg_sender:after{background-color:transparent;border-left:24px solid transparent;border-right:24px solid transparent;border-top:24px solid #fff;content:"";height:100%;position:absolute;right:0;top:0;transform:rotate(90deg);width:0}.wps_order_msg_date{color:#1f1f1f;display:block;margin-top:10px;padding-left:30px}.wps_order_msg_attach_container{padding-left:30px}.wps_order_msg_detail_container{padding:20px 0 20px 30px}img.wps_order_msg_attachment_thumbnail{padding-bottom:8px;padding-top:8px}.wps_rma_order_msg_wrapper h4{background-color:#dadada;color:#1f1f1f!important;font-weight:600!important;line-height:1.6;padding:7px 15px}.wps-order-attachment input:focus{outline:none}.wps-order-msg__row{border-color:#ddd}.wps-order-msg__row:last-child{margin-bottom:0}.wps_order_msg_notice_wrapper,.wps_order_msg_sender_details.wps_rma_flex{align-items:center;justify-content:space-between}.wps_order_msg_notice_wrapper{border-radius:5px;color:#fff;display:none;flex-wrap:wrap;font-weight:600;margin-bottom:20px;padding:5px 15px}.wps_order_msg_notice_wrapper p{color:#fff;margin-bottom:0}a.wps_order_send_msg_dismiss{color:#fff;font-size:16px;font-weight:700}.wps_order_msg_sent_notice{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wps-loader-icon{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;transition:all .3s;transition-timing-function:ease-in}.wps_order_msg_sub_container{display:flex;flex-wrap:wrap}.wps-order-msg__row{max-width:calc(50% - 10px);width:100%}.wps-order-msg__row:nth-child(2n-1){margin-right:10px}.wps-order-msg__row:nth-child(2n){margin-left:10px}.wmb-order-admin__msg-container .wps_order_msg_sender{background-color:#71b02f}.wps_rma_order_msg_wrapper textarea{width:100%}div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail{border:1px solid #000;border-radius:3px;display:table;margin-left:auto;margin-left:0!important;margin-right:auto;margin-right:0!important;max-width:60px;padding:5px}.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{color:green;display:none}.wps_rma_exchange_notification>img,.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{background-color:#000;bottom:0;height:100%;opacity:.5;padding:0;position:fixed;right:0;width:100%;z-index:99999}.wps_rma_return_notification_checkbox:after{background:hsla(0,0%,100%,.6) none repeat scroll 0 0;bottom:0;content:"";height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wps_rma_return_notification_checkbox img{left:0;margin:0 auto;position:absolute;right:0;text-align:center;top:50%;transform:translateY(-50%);z-index:99999999}.wps_rma_return_notification_checkbox{display:none}.return,.view_msg{margin-top:4px}.wps_rma_refund_request__row{padding:0 15px}.wps_rma_customer_detail{overflow:hidden;padding:30px 15px}@media only screen and (max-width:820px){.wps-order-msg__row{max-width:100%}.wps-order-msg__row:nth-child(2n),.wps-order-msg__row:nth-child(2n-1){margin-right:0}}@media only screen and (min-width:600px){.wps-rma-refund-request__row{display:flex;flex-wrap:nowrap}.wps-rma-form__wrapper .wps-rma-col:nth-child(2){padding-left:30px;width:60%}.wps_rma_refund_form_wrapper .wps_rma__column-right{justify-content:flex-end;margin-left:40px;max-width:calc(40% - 40px)}.wps-rma-form__wrapper .wps-rma-col:nth-child(2) p{margin-left:auto;max-width:220px}}@media only screen and (max-width:480px){.wps_order_msg_sub_container{padding:15px}.wps-order-msg__row{padding:15px 15px 15px 0}.wps_order_msg_detail_container{padding:15px 0 15px 15px}.wps_order_msg_attach_container{padding-left:15px}.wps-rma-form__wrapper textarea{height:150px!important}}@media only screen and (max-width:375px){.wps-order-msg-attachment-wrapper.wps_rma_flex{display:block}} \ No newline at end of file +*,:after,:before{box-sizing:border-box}.wps_order_msg_history_container .wps_reload_messages .reload-icon{margin-left:10px;width:25px}.wps_order_msg_sub_container{border:1px solid #ccc;max-height:400px;min-height:200px;overflow-y:auto;padding:30px}*,:after,:before{box-sizing:border-box}.wps-rma-form__wrapper .input-text,.wps-rma-form__wrapper input[type=email],.wps-rma-form__wrapper input[type=number],.wps-rma-form__wrapper input[type=password],.wps-rma-form__wrapper input[type=search],.wps-rma-form__wrapper input[type=tel],.wps-rma-form__wrapper input[type=text],.wps-rma-form__wrapper input[type=url],.wps-rma-form__wrapper textarea{background-color:transparent!important;border:1px solid #ccc!important;box-shadow:none!important;padding:10px 14px}.input-text:focus,.wps-rma-form__wrapper a:focus,.wps-rma-form__wrapper input[type=email]:focus,.wps-rma-form__wrapper input[type=number]:focus,.wps-rma-form__wrapper input[type=search]:focus,.wps-rma-form__wrapper input[type=tel]:focus,.wps-rma-form__wrapper input[type=text]:focus,.wps-rma-form__wrapper input[type=url]:focus,.wps-rma-form__wrapper textarea:focus,.wps_order_msg_sub_container input[type=password]:focus{outline:none!important}.wps-rma-form__wrapper label{display:inline-block;line-height:1.2;margin-bottom:8px}.wps-rma-form__wrapper h4{font-size:18px!important}.wps-rma-form__wrapper .wps_rma_flex{display:flex;flex-wrap:wrap}.wps-rma-form__wrapper select{padding:10px 14px}.wps_rma_refund_form_wrapper .input-text:focus,.wps_rma_refund_form_wrapper input[type=email]:focus,.wps_rma_refund_form_wrapper input[type=number]:focus,.wps_rma_refund_form_wrapper input[type=password]:focus,.wps_rma_refund_form_wrapper input[type=search]:focus,.wps_rma_refund_form_wrapper input[type=tel]:focus,.wps_rma_refund_form_wrapper input[type=text]:focus,.wps_rma_refund_form_wrapper input[type=url]:focus,.wps_rma_refund_form_wrapper textarea:focus{background-color:transparent}.wps_rma_refund_form_wrapper .wps-rma-subject__dropdown select{border-radius:0;padding:5px 105px 5px 5px;width:100%}.wps_rma_refund_form_wrapper .wps_rma_other_subject input{width:100%}.wps-rma-product__table{border-collapse:collapse;min-width:665px;width:100%}.wps-rma-form__wrapper h2.woocommerce-column__title{font-weight:600}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject:focus-visible{outline:none}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject option{box-shadow:none}.wps-rma-product__table-wrapper{overflow-x:auto;padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_product_title{padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_refund_request__row{justify-content:space-between}.wps_rma_refund_form_wrapper .wps_rma__column{width:100%}.wps-rma-form__wrapper.wps-rma-form__wrapper{border:1px solid #333}.wps-rma-form__wrapper .wps-rma-form__header{background-color:#333}.wps-rma-form__wrapper .wps-rma-form__heading{color:#fff;font-size:24px;font-weight:500;margin-top:0;padding:10px 15px}.wps-rma-form__wrapper td,.wps-rma-form__wrapper th{border:1px solid #ccc;padding:15px;text-align:center;vertical-align:middle}.wps-rma-form__wrapper th{color:#333}.wps-rma-form__wrapper .wps-rma-product__wrap{align-items:center;display:flex;justify-content:center}.wps-rma-form__wrapper .wps-rma__product-title{margin-left:20px;text-align:left}.wps-rma-product__table tbody td,fieldset,fieldset legend,table.wps-rma-product__table:not(.has-background) tbody td,table.wps-rma-product__table:not(.has-background) tbody tr:nth-child(2n) td{background-color:#fff}.wps-rma-form__wrapper .wps-rma-row__pd{padding:0 15px}.wps-rma-form__wrapper .wps-rma-col{width:100%}.wps-rma-form__wrapper .wps-rma-col.wps_rma_flex{justify-content:flex-start}.wps-rma-form__wrapper .wps_rma_other_subject{margin:25px 0}.wps_rma_attach_files{margin-top:10px}.wps-rma-subject__dropdown{margin-top:25px}.wps-rma-form__wrapper textarea{width:100%}.wps-rma-form__wrapper .product-quantity input{height:48px;margin:0 auto;width:197px}.wps-rma-form__wrapper td:last-child,.wps-rma-form__wrapper th:last-child{padding-right:15px}.wps-rma-form__wrapper td.product-total{text-align:center}.wps-order-msg-attachment-wrapper{align-items:center;justify-content:space-between;margin-top:20px}.wps-order-attachment input#wps_order_msg_attachment{max-width:230px}#wps_order_msg_submit{background:#374585;border:1px solid #374585;border-radius:3px;color:#fff;cursor:pointer;font-size:16px;margin:0;padding:6px 30px;text-decoration:none}form#wps_order_new_msg_form{margin-bottom:40px}.wps_rma_order_msg_wrapper .wps-order-msg-attachment-wrapper label{color:#000}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex{align-items:center}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex a{margin-left:20px;width:18px}.wps-order-msg__row{word-wrap:break-word;background-color:#fff;border:1px solid #ddd;margin-bottom:30px;padding:30px 30px 30px 0;width:auto}.wps_order_msg_sender{background-color:#4f62b9;color:#fff;display:inline-block;font-size:18px;font-weight:600;line-height:1.8;padding:8px 52px 8px 30px;position:relative}span.wps_order_msg_sender:after{background-color:transparent;border-left:24px solid transparent;border-right:24px solid transparent;border-top:24px solid #fff;content:"";height:100%;position:absolute;right:0;top:0;transform:rotate(90deg);width:0}.wps_order_msg_date{color:#1f1f1f;display:block;margin-top:10px;padding-left:30px}.wps_order_msg_attach_container{padding-left:30px}.wps_order_msg_detail_container{padding:20px 0 20px 30px}img.wps_order_msg_attachment_thumbnail{padding-bottom:8px;padding-top:8px}.wps_rma_order_msg_wrapper h4{background-color:#dadada;color:#1f1f1f!important;font-weight:600!important;line-height:1.6;padding:7px 15px}.wps-order-attachment input:focus{outline:none}.wps-order-msg__row{border-color:#ddd}.wps-order-msg__row:last-child{margin-bottom:0}.wps_order_msg_notice_wrapper,.wps_order_msg_sender_details.wps_rma_flex{align-items:center;justify-content:space-between}.wps_order_msg_notice_wrapper{border-radius:5px;color:#fff;display:none;flex-wrap:wrap;font-weight:600;margin-bottom:20px;padding:5px 15px}.wps_order_msg_notice_wrapper p{color:#fff;margin-bottom:0}a.wps_order_send_msg_dismiss{color:#fff;font-size:16px;font-weight:700}.wps_order_msg_sent_notice{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wps-loader-icon{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;transition:all .3s;transition-timing-function:ease-in}.wps_order_msg_sub_container{display:flex;flex-wrap:wrap}.wps-order-msg__row{max-width:calc(50% - 10px);width:100%}.wps-order-msg__row:nth-child(2n-1){margin-right:10px}.wps-order-msg__row:nth-child(2n){margin-left:10px}.wmb-order-admin__msg-container .wps_order_msg_sender{background-color:#71b02f}.wps_rma_order_msg_wrapper textarea{width:100%}div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail{border:1px solid #000;border-radius:3px;display:table;margin-left:auto;margin-left:0!important;margin-right:auto;margin-right:0!important;max-width:60px;padding:5px}.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{color:green;display:none}.wps_rma_exchange_notification>img,.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{background-color:#000;bottom:0;height:100%;opacity:.5;padding:0;position:fixed;right:0;width:100%;z-index:99999}.wps_rma_return_notification_checkbox:after{background:hsla(0,0%,100%,.6) none repeat scroll 0 0;bottom:0;content:"";height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wps_rma_return_notification_checkbox img{left:0;margin:0 auto;position:absolute;right:0;text-align:center;top:50%;transform:translateY(-50%);z-index:99999999}.wps_rma_return_notification_checkbox{display:none}.return,.view_msg{margin-top:4px}.wps_rma_refund_request__row{padding:0 15px}.wps_rma_customer_detail{overflow:hidden;padding:30px 15px}@media only screen and (max-width:820px){.wps-order-msg__row{max-width:100%}.wps-order-msg__row:nth-child(2n),.wps-order-msg__row:nth-child(2n-1){margin-right:0}}@media only screen and (min-width:600px){.wps-rma-refund-request__row{display:flex;flex-wrap:nowrap}.wps-rma-form__wrapper .wps-rma-col:nth-child(2){padding-left:30px;width:60%}.wps_rma_refund_form_wrapper .wps_rma__column-right{justify-content:flex-end;margin-left:40px;max-width:calc(40% - 40px)}.wps-rma-form__wrapper .wps-rma-col:nth-child(2) p{margin-left:auto;max-width:220px}}@media only screen and (max-width:480px){.wps_order_msg_sub_container{padding:15px}.wps-order-msg__row{padding:15px 15px 15px 0}.wps_order_msg_detail_container{padding:15px 0 15px 15px}.wps_order_msg_attach_container{padding-left:15px}.wps-rma-form__wrapper textarea{height:150px!important}}@media only screen and (max-width:375px){.wps-order-msg-attachment-wrapper.wps_rma_flex{display:block}} \ No newline at end of file diff --git a/public/js/woo-refund-and-exchange-lite-public.js b/public/js/woo-refund-and-exchange-lite-public.js index a7d3f47..76ef043 100755 --- a/public/js/woo-refund-and-exchange-lite-public.js +++ b/public/js/woo-refund-and-exchange-lite-public.js @@ -1,5 +1,4 @@ - jQuery( document ).on( 'ready', function(){ $ = jQuery; // Show refund subject field if other option is selected. @@ -37,6 +36,8 @@ jQuery( document ).on( 'ready', function(){ $(document).find('.wps_rma_return_request_morefiles').data( 'count', count - 1 ); $(this).parent( '.add_field_input_div' ).remove(); }); + var check_refund_method = wrael_public_param.check_refund_method; + var check_refund_manually = wrael_public_param.wps_refund_manually; // show the bank details field on selected refund method. var wps_wrma_refund_method = $('input[name=wps_wrma_refund_method]:checked').val(); @@ -44,6 +45,8 @@ jQuery( document ).on( 'ready', function(){ $( '#bank_details' ).show(); } else if( ! wrael_public_param.check_pro_active ) { $( '#bank_details' ).show(); + } else if ( wrael_public_param.check_pro_active && 'on' != check_refund_method && 'on' == check_refund_manually ) { + $( '#bank_details' ).show(); } else { $( '#bank_details' ).hide(); } diff --git a/public/js/woo-refund-and-exchange-lite-public.min.js b/public/js/woo-refund-and-exchange-lite-public.min.js index 4e89738..d64533c 100755 --- a/public/js/woo-refund-and-exchange-lite-public.min.js +++ b/public/js/woo-refund-and-exchange-lite-public.min.js @@ -1 +1 @@ -jQuery(document).on("ready",(function(){$=jQuery;var e=$("#wps_rma_return_request_subject").val();null==e||""==e?$("#wps_rma_return_request_subject_text").show():$("#wps_rma_return_request_subject_text").hide(),$("#wps_rma_return_request_subject").on("click",(function(){var e=$(this).val();null==e||""==e?$("#wps_rma_return_request_subject_text").show():$("#wps_rma_return_request_subject_text").hide()})),$(".wps_rma_return_request_morefiles").on("click",(function(){var e=$(this).data("count");e<$(this).data("max")&&($("#wps_rma_return_request_files").append('
X
'),$(document).find(".wps_rma_return_request_morefiles").data("count",e+1))})),$(document).on("click",".wps_rma_delete_field",(function(){var e=$(document).find(".wps_rma_return_request_morefiles").data("count");$(document).find(".wps_rma_return_request_morefiles").data("count",e-1),$(this).parent(".add_field_input_div").remove()}));var t=$("input[name=wps_wrma_refund_method]:checked").val();""!==t&&"manual_method"===t?$("#bank_details").show():wrael_public_param.check_pro_active?$("#bank_details").hide():$("#bank_details").show(),$(document).on("click","input[name=wps_wrma_refund_method]",(function(){""!==$(this).val()&&"manual_method"===$(this).val()?$("#bank_details").show():$("#bank_details").hide()}))})); \ No newline at end of file +jQuery(document).on("ready",(function(){$=jQuery;var e=$("#wps_rma_return_request_subject").val();null==e||""==e?$("#wps_rma_return_request_subject_text").show():$("#wps_rma_return_request_subject_text").hide(),$("#wps_rma_return_request_subject").on("click",(function(){var e=$(this).val();null==e||""==e?$("#wps_rma_return_request_subject_text").show():$("#wps_rma_return_request_subject_text").hide()})),$(".wps_rma_return_request_morefiles").on("click",(function(){var e=$(this).data("count");e<$(this).data("max")&&($("#wps_rma_return_request_files").append('
X
'),$(document).find(".wps_rma_return_request_morefiles").data("count",e+1))})),$(document).on("click",".wps_rma_delete_field",(function(){var e=$(document).find(".wps_rma_return_request_morefiles").data("count");$(document).find(".wps_rma_return_request_morefiles").data("count",e-1),$(this).parent(".add_field_input_div").remove()}));var _=wrael_public_param.check_refund_method,t=wrael_public_param.wps_refund_manually,r=$("input[name=wps_wrma_refund_method]:checked").val();""!==r&&"manual_method"===r?$("#bank_details").show():wrael_public_param.check_pro_active?wrael_public_param.check_pro_active&&"on"!=_&&"on"==t?$("#bank_details").show():$("#bank_details").hide():$("#bank_details").show(),$(document).on("click","input[name=wps_wrma_refund_method]",(function(){""!==$(this).val()&&"manual_method"===$(this).val()?$("#bank_details").show():$("#bank_details").hide()}))})); \ No newline at end of file diff --git a/public/partials/wps-rma-refund-request-form.php b/public/partials/wps-rma-refund-request-form.php index d8a7cb6..74f13bb 100755 --- a/public/partials/wps-rma-refund-request-form.php +++ b/public/partials/wps-rma-refund-request-form.php @@ -36,7 +36,7 @@ $rr_reason = ''; if ( isset( $condition ) && 'yes' === $condition && isset( $order_id ) && ! empty( $order_id ) && ! empty( $order_obj ) ) { $order_customer_id = get_post_meta( $order_id, '_customer_user', true ); - if ( get_current_user_id() > 0 ) { + if ( ! current_user_can( 'wps-rma-refund-request' ) ) { if ( get_current_user_id() != $order_customer_id ) { $myaccount_page = get_option( 'woocommerce_myaccount_page_id' ); $myaccount_page_url = get_permalink( $myaccount_page ); @@ -388,7 +388,7 @@ Elevate your e-commerce store by exploring more on WP Swings - * Version: 4.0.1 + * Version: 4.0.2 * Author: WP Swings * Author URI: https://wpswings.com/?utm_source=wpswings-official&utm_medium=rma-org-page&utm_campaign=wpswings-official * Text Domain: woo-refund-and-exchange-lite @@ -60,7 +60,7 @@ * @since 1.0.0 */ function define_woo_refund_and_exchange_lite_constants() { - woo_refund_and_exchange_lite_constants( 'WOO_REFUND_AND_EXCHANGE_LITE_VERSION', '4.0.1' ); + woo_refund_and_exchange_lite_constants( 'WOO_REFUND_AND_EXCHANGE_LITE_VERSION', '4.0.2' ); woo_refund_and_exchange_lite_constants( 'WOO_REFUND_AND_EXCHANGE_LITE_DIR_PATH', plugin_dir_path( __FILE__ ) ); woo_refund_and_exchange_lite_constants( 'WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL', plugin_dir_url( __FILE__ ) ); woo_refund_and_exchange_lite_constants( 'WOO_REFUND_AND_EXCHANGE_LITE_SERVER_URL', 'https://wpswings.com' ); From 7a1b3bf4c027ff031d4147d281e9880fb96bd614 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Mon, 18 Apr 2022 17:19:53 +0530 Subject: [PATCH 02/17] lang-update --- .../woo-refund-and-exchange-lite-en_US.mo | Bin 723 -> 723 bytes .../woo-refund-and-exchange-lite-en_US.po | 28 +++++++++--------- .../woo-refund-and-exchange-lite-en_US.pot | 26 ++++++++-------- woocommerce-refund-and-exchange-lite.php | 4 +-- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/languages/woo-refund-and-exchange-lite-en_US.mo b/languages/woo-refund-and-exchange-lite-en_US.mo index 8f8fb32c5eb478a0a01b3ee2113ac2fb2d7a50d7..20b5c706ad62a045bd82acf092bdd82102e922c9 100644 GIT binary patch delta 17 Ycmcc2dYN^?Og0MzLvt&`jq^>I05^ICkpKVy delta 17 Ycmcc2dYN^?Og1A0LqjW*jq^>I05>BAhyVZp diff --git a/languages/woo-refund-and-exchange-lite-en_US.po b/languages/woo-refund-and-exchange-lite-en_US.po index 9cd1683..00fb650 100644 --- a/languages/woo-refund-and-exchange-lite-en_US.po +++ b/languages/woo-refund-and-exchange-lite-en_US.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.2\n" -"POT-Creation-Date: 2022-04-12 11:30+0530\n" -"PO-Revision-Date: 2022-04-12 11:46+0530\n" +"POT-Creation-Date: 2022-04-18 17:16+0530\n" +"PO-Revision-Date: 2022-04-18 17:16+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" "Language: en_US\n" @@ -286,7 +286,7 @@ msgstr "" #: admin/partials/email_template/woo-refund-and-exchange-lite-refund-request-accept-email.php:38 #: common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php:45 -#: public/class-woo-refund-and-exchange-lite-public.php:225 +#: public/class-woo-refund-and-exchange-lite-public.php:227 #: public/partials/wps-rma-refund-request-form.php:90 msgid "Product" msgstr "" @@ -516,8 +516,8 @@ msgstr "" #: admin/partials/woo-refund-and-exchange-lite-policies.php:37 #: admin/partials/woo-refund-and-exchange-lite-policies.php:107 #: includes/class-woo-refund-and-exchange-lite.php:411 -#: public/class-woo-refund-and-exchange-lite-public.php:127 -#: public/class-woo-refund-and-exchange-lite-public.php:188 +#: public/class-woo-refund-and-exchange-lite-public.php:129 +#: public/class-woo-refund-and-exchange-lite-public.php:190 msgid "Refund" msgstr "" @@ -628,7 +628,7 @@ msgstr "" #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:48 #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:104 -#: public/class-woo-refund-and-exchange-lite-public.php:226 +#: public/class-woo-refund-and-exchange-lite-public.php:228 #: public/partials/wps-rma-refund-request-form.php:92 msgid "Total" msgstr "" @@ -643,7 +643,7 @@ msgstr "" #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:118 #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:202 -#: public/class-woo-refund-and-exchange-lite-public.php:289 +#: public/class-woo-refund-and-exchange-lite-public.php:291 msgid "Refund Amount" msgstr "" @@ -854,7 +854,7 @@ msgid "view-order-msg" msgstr "" #: includes/class-woo-refund-and-exchange-lite-activator.php:94 -#: public/class-woo-refund-and-exchange-lite-public.php:105 +#: public/class-woo-refund-and-exchange-lite-public.php:107 msgid "View Order Messages" msgstr "" @@ -1137,24 +1137,24 @@ msgstr "" msgid "Please select product to refund." msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:158 +#: public/class-woo-refund-and-exchange-lite-public.php:160 msgid "View Order Message" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:213 +#: public/class-woo-refund-and-exchange-lite-public.php:215 msgid "Refund Requested Product" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:221 +#: public/class-woo-refund-and-exchange-lite-public.php:223 msgid "Following product Refund request made on" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:304 +#: public/class-woo-refund-and-exchange-lite-public.php:306 msgid "Update Request" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:314 -#: public/class-woo-refund-and-exchange-lite-public.php:323 +#: public/class-woo-refund-and-exchange-lite-public.php:316 +#: public/class-woo-refund-and-exchange-lite-public.php:325 msgid "The above product Refund request is cancelled on" msgstr "" diff --git a/languages/woo-refund-and-exchange-lite-en_US.pot b/languages/woo-refund-and-exchange-lite-en_US.pot index c860e62..744ae79 100644 --- a/languages/woo-refund-and-exchange-lite-en_US.pot +++ b/languages/woo-refund-and-exchange-lite-en_US.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.2\n" -"POT-Creation-Date: 2022-04-12 11:29+0530\n" +"POT-Creation-Date: 2022-04-18 17:16+0530\n" "PO-Revision-Date: 2021-08-21 11:15+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" @@ -288,7 +288,7 @@ msgstr "" #: admin/partials/email_template/woo-refund-and-exchange-lite-refund-request-accept-email.php:38 #: common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php:45 -#: public/class-woo-refund-and-exchange-lite-public.php:225 +#: public/class-woo-refund-and-exchange-lite-public.php:227 #: public/partials/wps-rma-refund-request-form.php:90 msgid "Product" msgstr "" @@ -519,8 +519,8 @@ msgstr "" #: admin/partials/woo-refund-and-exchange-lite-policies.php:37 #: admin/partials/woo-refund-and-exchange-lite-policies.php:107 #: includes/class-woo-refund-and-exchange-lite.php:411 -#: public/class-woo-refund-and-exchange-lite-public.php:127 -#: public/class-woo-refund-and-exchange-lite-public.php:188 +#: public/class-woo-refund-and-exchange-lite-public.php:129 +#: public/class-woo-refund-and-exchange-lite-public.php:190 msgid "Refund" msgstr "" @@ -631,7 +631,7 @@ msgstr "" #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:48 #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:104 -#: public/class-woo-refund-and-exchange-lite-public.php:226 +#: public/class-woo-refund-and-exchange-lite-public.php:228 #: public/partials/wps-rma-refund-request-form.php:92 msgid "Total" msgstr "" @@ -646,7 +646,7 @@ msgstr "" #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:118 #: admin/partials/woo-refund-and-exchange-lite-return-meta.php:202 -#: public/class-woo-refund-and-exchange-lite-public.php:289 +#: public/class-woo-refund-and-exchange-lite-public.php:291 msgid "Refund Amount" msgstr "" @@ -859,7 +859,7 @@ msgid "view-order-msg" msgstr "" #: includes/class-woo-refund-and-exchange-lite-activator.php:94 -#: public/class-woo-refund-and-exchange-lite-public.php:105 +#: public/class-woo-refund-and-exchange-lite-public.php:107 msgid "View Order Messages" msgstr "" @@ -1144,24 +1144,24 @@ msgstr "" msgid "Please select product to refund." msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:158 +#: public/class-woo-refund-and-exchange-lite-public.php:160 msgid "View Order Message" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:213 +#: public/class-woo-refund-and-exchange-lite-public.php:215 msgid "Refund Requested Product" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:221 +#: public/class-woo-refund-and-exchange-lite-public.php:223 msgid "Following product Refund request made on" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:304 +#: public/class-woo-refund-and-exchange-lite-public.php:306 msgid "Update Request" msgstr "" -#: public/class-woo-refund-and-exchange-lite-public.php:314 -#: public/class-woo-refund-and-exchange-lite-public.php:323 +#: public/class-woo-refund-and-exchange-lite-public.php:316 +#: public/class-woo-refund-and-exchange-lite-public.php:325 msgid "The above product Refund request is cancelled on" msgstr "" diff --git a/woocommerce-refund-and-exchange-lite.php b/woocommerce-refund-and-exchange-lite.php index e325db7..095930c 100755 --- a/woocommerce-refund-and-exchange-lite.php +++ b/woocommerce-refund-and-exchange-lite.php @@ -14,7 +14,7 @@ * @wordpress-plugin * Plugin Name: Return Refund and Exchange for WooCommerce * Plugin URI: https://wordpress.org/plugins/woo-refund-and-exchange-lite/ - * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of Woocommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings + * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of WooCommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings * Version: 4.0.2 * Author: WP Swings * Author URI: https://wpswings.com/?utm_source=wpswings-official&utm_medium=rma-org-page&utm_campaign=wpswings-official @@ -24,7 +24,7 @@ * Requires at least: 4.6 * Tested up to: 5.9.3 * WC requires at least: 4.0 - * WC tested up to: 6.3.1 + * WC tested up to: 6.4.1 * * License: GNU General Public License v3.0 * License URI: http://www.gnu.org/licenses/gpl-3.0.html From 99a694a576421f7e82a9f6d16e7c3d290d9aa9ea Mon Sep 17 00:00:00 2001 From: mohddanish Date: Wed, 20 Apr 2022 17:47:42 +0530 Subject: [PATCH 03/17] fixes --- ...ass-woo-refund-and-exchange-lite-admin.php | 45 +++++++++---------- .../js/woo-refund-and-exchange-lite-admin.js | 9 ++-- .../woo-refund-and-exchange-lite-admin.min.js | 2 +- .../js/woo-refund-and-exchange-lite-admin.js | 9 ++-- ...und-and-exchange-lite-onboarding-steps.php | 4 +- package-lock.json | 14 +++--- 6 files changed, 41 insertions(+), 42 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 671bf63..b04e71b 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1229,7 +1229,6 @@ public function wps_rma_lite_admin_menus() { */ public function wps_rma_lite_upgrade_notice( $plugin_file, $plugin_data, $status ) { ?> -
@@ -1243,35 +1242,31 @@ public function wps_rma_lite_upgrade_notice( $plugin_file, $plugin_data, $status
- - -
-

- -

- wps_rma_get_count( 'pending', 'count', 'orders' ); - $wps_rma_pending_users_count = $this->wps_rma_get_count( 'pending', 'count', 'users' ); - $wps_rma_pending_order_msgs_count = $this->wps_rma_get_count( 'pending', 'count', 'order_messages' ); - if ( ! empty( $wps_rma_pending_orders_count ) || ! empty( $wps_rma_pending_users_count ) || ! empty( $wps_rma_pending_order_msgs_count ) ) { - ?> -

- - here - . -

- -
- - + wps_rma_get_count( 'pending', 'count', 'orders' ); + $wps_rma_pending_users_count = $this->wps_rma_get_count( 'pending', 'count', 'users' ); + $wps_rma_pending_order_msgs_count = $this->wps_rma_get_count( 'pending', 'count', 'order_messages' ); + if ( ! empty( $wps_rma_pending_orders_count ) || ! empty( $wps_rma_pending_users_count ) || ! empty( $wps_rma_pending_order_msgs_count ) ) { + ?> + + +
+

+ + here + . +

+
+ + + tr<"bottom"lip>',ordering:!0,buttons:["copyHtml5","excelHtml5","csvHtml5"],language:{lengthMenu:"Rows per page _MENU_",paginate:{next:'',previous:''}}})})),jQuery(document).ready((function(){$=jQuery,jQuery("#order_refunds").length&&jQuery("#order_refunds").find(".refund").each((function(){var e={action:"wps_rma_refund_info",refund_id:jQuery(this).data("order_refund_id"),order_id:jQuery("#post_ID").val(),security_check:wrael_admin_param.wps_rma_nonce},r=jQuery(this);jQuery.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,success:function(e){e&&r.hide()}})}));const e=mdc.textField.MDCTextField,r=([].map.call(document.querySelectorAll(".mdc-text-field"),(function(r){return new e(r)})),mdc.ripple.MDCRipple),a=([].map.call(document.querySelectorAll(".mdc-button"),(function(e){return new r(e)})),mdc.switchControl.MDCSwitch);[].map.call(document.querySelectorAll(".mdc-switch"),(function(e){return new a(e)}));$(document).find(".wps-defaut-multiselect").length>0&&$(document).find(".wps-defaut-multiselect").select2(),$("a[href='admin.php?page=woo_refund_and_exchange_lite_menu']").addClass("submenu-font-size-fix"),$(".wps-password-hidden").click((function(){"text"==$(".wps-form__password").attr("type")?$(".wps-form__password").attr("type","password"):$(".wps-form__password").attr("type","text")})),$(".wps_rma_order_statues").select2();var t=[];function i(){let e=[];$.each($(".add_more_rma_policies"),(function(){var r=$(this).children(".wps_rma_on_functionality").val(),a=$(this).children(".wps_rma_settings").val(),t=new Object;t.name=r,t.value=a,e.push(t)})),e.forEach((function(e){var r=t.filter((function(r,a){return r.name==e.name}));if(r.length){var a=t.indexOf(r[0]);t[a].value=t[a].value.concat(e.value)}else"string"==typeof e.value&&(e.value=[e.value]),t.push(e)}))}function _(){$.each($(".wps_rma_settings"),(function(){""==$(this).val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_maximum_days"==$(this).val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_order_status"==$(this).val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide()):"wps_rma_tax_handling"==$(this).val()&&($(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions_label").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_settings_label").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show())}))}function s(e,r,a){return e.replace(new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),a)}i(),_(),$(document).on("change",".wps_rma_settings, .wps_rma_on_functionality",(function(){var e=$(this).parent(".add_more_rma_policies").children(".wps_rma_on_functionality").val(),r=$(this).parent(".add_more_rma_policies").children(".wps_rma_settings").val(),a=$(this);""!=r&&null!=r&&t.forEach((function(t){e==t.name&&null!=t.value&&-1!=$.inArray(r,t.value)&&(alert(wrael_admin_param.wps_policy_already_exist),a.parent(".add_more_rma_policies").remove())})),""==a.val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_maximum_days"==a.val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_order_status"==a.val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide()):"wps_rma_tax_handling"==a.val()&&($(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions_label").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_settings_label").show()),t=[],i()})),$(document).on("submit","#save_policies_setting_form",(function(e){$.each($(".wps_rma_settings"),(function(){""==$(this).val()&&$(this).parent(".add_more_rma_policies").remove()}))})),$(document).on("click","#wps_rma_add_more",(function(){var e=wrael_admin_param.check_pro_active,r=$(".add_more_rma_policies").last().children(".wps_rma_get_current_i").val();r=parseInt(r)+1;var a=$("#add_more_rma_policies_clone").html();a=s(a,"wps_rma_setting[1]","wps_rma_setting["+r+"]"),a=s(a,"wps_rma_order_statues1","wps_rma_order_statues"),e&&(a=show_correct_field_pro(a)),$("#div_add_more_rma_policies").append('
'+a+'
'),$(".add_more_rma_policies").last().children(".wps_rma_get_current_i").val(r),$(".wps_rma_order_statues").select2(),e&&wps_rma_do_something(),_(),i()})),$(document).on("click",".rma_policy_delete",(function(){$(this).parent(".add_more_rma_policies").remove(),_(),i()})),$(".wps_rma_return_loader").hide(),$(document).on("click","#wps_rma_accept_return",(function(){$("#wps_rma_return_package").hide(),$(".wps_rma_return_loader").show();var e={action:"wps_rma_return_req_approve",orderid:$(this).data("orderid"),date:$(this).data("date"),security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){$(".wps_rma_return_loader").hide(),$(".refund-actions .cancel-action").hide(),window.location.reload()}})})),$(document).on("click","#wps_rma_cancel_return",(function(){$(".wps_rma_return_loader").show();var e={action:"wps_rma_return_req_cancel",orderid:$(this).data("orderid"),date:$(this).data("date"),security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){$(".wps_rma_return_loader").hide(),window.location.reload()}})})),$(document).on("click","#wps_rma_left_amount",(function(){$(this).attr("disabled","disabled");var e=$(this).data("orderid"),r=$(this).data("refund_method"),a=$(".wps_rma_total_amount_for_refund").val();$(".wps_rma_return_loader").show();var t={action:"wps_rma_refund_amount",order_id:e,refund_method:r,refund_amount:a,security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:t,dataType:"json",success:function(e){if($(".wps_rma_return_loader").show(),""==e.refund_method||"manual_method"==e.refund_method){$("html, body").animate({scrollTop:$("#order_shipping_line_items").offset().top},2e3),$("div.wc-order-refund-items").slideDown(),$("div.wc-order-data-row-toggle").not("div.wc-order-refund-items").slideUp(),$("div.wc-order-totals-items").slideUp();var r=$("#wps_rma_refund_reason").val();$("#refund_amount").val(a),$("#refund_reason").val(r);var t=accounting.unformat(a,woocommerce_admin.mon_decimal_point);$("button .wc-order-refund-amount .amount").text(accounting.formatMoney(t,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format}))}else window.location.reload()}})})),$(document).on("click","#wps_rma_stock_back",(function(){$(this).attr("disabled","disabled");var e={action:"wps_rma_manage_stock",order_id:$(this).data("orderid"),type:$(this).data("type"),security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){$(this).removeAttr("disabled"),e.result?($("#post").prepend('

'+e.msg+'

'),$("html, body").animate({scrollTop:$("body").offset().top},2e3,"linear",(function(){window.setTimeout((function(){window.location.reload()}),1e3)}))):($("#post").prepend('

'+e.msg+'

'),$("html, body").animate({scrollTop:jQuer$("body").offset().top},2e3,"linear",(function(){})))}})})),$(document).on("click","#wps_rma_generate_key_setting",(function(e){e.preventDefault();var r={action:"wps_rma_api_secret_key",security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:r,dataType:"json",success:function(e){window.location.reload()}})}))})),jQuery(document).ready((function(e){const r=wrael_admin_param.ajaxurl,a=wrael_admin_param.wps_rma_nonce,t=wrael_admin_param.wps_rma_callback,i=wrael_admin_param.wps_rma_pending_orders,_=wrael_admin_param.wps_rma_pending_orders_count,s=wrael_admin_param.wps_rma_pending_users,n=wrael_admin_param.wps_rma_pending_users_count,o=wrael_admin_param.wps_rma_pending_order_msgs,d=wrael_admin_param.wps_rma_pending_order_msgs_count;jQuery(document).on("click","#wps_rma_migration_start-button",(function(e){e.preventDefault(),Swal.fire({icon:"warning",title:"We Have got "+_+" Orders Data,
"+d+" Order Messages Data And "+n+" Users Data",text:"Click to start Migration",footer:"Please do not reload/close this page until prompted",showCloseButton:!0,showCancelButton:!0,focusConfirm:!1,confirmButtonText:' Start',confirmButtonAriaLabel:"Thumbs up",cancelButtonText:' Cancel',cancelButtonAriaLabel:"Thumbs down"}).then((e=>{e.isConfirmed?(Swal.fire({title:"Orders Data are being migrated!",html:"Do not reload/close this tab.",footer:''+_+" are left to migrate",didOpen:()=>{Swal.showLoading()}}),m(i)):e.isDismissed&&Swal.fire("Migration Stopped","","info")}))}));const m=e=>{var i={action:t,event:"wps_rma_import_single_order",nonce:a,orders:e};jQuery.post(r,i).done((function(r){e=JSON.parse(r)})).then((function(e){e=JSON.parse(e).orders,jQuery.isEmptyObject(e)?count=0:count=Object.keys(e).length,jQuery(".order-progress-report").text(count+" are left to migrate"),jQuery.isEmptyObject(e)?(Swal.fire({title:"Order Messages Data are being migrated!",html:"Do not reload/close this tab.",footer:''+d+" are left to migrate",didOpen:()=>{Swal.showLoading()}}),c(o)):m(e)}),(function(e){console.error(e)}))},c=e=>{var i={action:t,event:"wps_rma_import_single_order_msg",nonce:a,order_msgs:e};jQuery.post(r,i).done((function(r){e=JSON.parse(r)})).then((function(e){e=JSON.parse(e).order_msgs,jQuery.isEmptyObject(e)?count=0:count=Object.keys(e).length,jQuery(".order-progress-report").text(count+" are left to migrate"),jQuery.isEmptyObject(e)?(Swal.fire({title:"Users Data are being migrated!",html:"Do not reload/close this tab.",footer:''+n+" are left to migrate",didOpen:()=>{Swal.showLoading()}}),l(s)):c(e)}),(function(e){console.error(e)}))},l=e=>{var i={action:t,event:"wps_rma_import_single_user",nonce:a,users:e};jQuery.post(r,i).done((function(r){e=JSON.parse(r)})).then((function(e){e=JSON.parse(e).users,jQuery.isEmptyObject(e)?count=0:count=Object.keys(e).length,jQuery(".order-progress-report").text(count+" are left to migrate"),jQuery.isEmptyObject(e)?Swal.fire({title:"All of the Data are Migrated successfully!"}):l(e)}),(function(e){console.error(e)}))}}));var wps_rma_migration_success=function(){0!=wrael_admin_param.wps_rma_pending_orders_count&&0!=wrael_admin_param.wps_rma_pending_users_count&&0!=wrael_admin_param.wps_rma_pending_order_msgs_count?(jQuery("#wps_rma_migration_start-button").click(),jQuery("#wps_rma_migration_start-button").show()):jQuery("#wps_rma_migration_start-button").hide()}; \ No newline at end of file +jQuery(document).ready((function(){jQuery("#wrael-datatable").DataTable({stateSave:!0,dom:'<"wps-dt-buttons"fB>tr<"bottom"lip>',ordering:!0,buttons:["copyHtml5","excelHtml5","csvHtml5"],language:{lengthMenu:"Rows per page _MENU_",paginate:{next:'',previous:''}}})})),jQuery(document).ready((function(){$=jQuery,jQuery("#order_refunds").length&&jQuery("#order_refunds").find(".refund").each((function(){var e={action:"wps_rma_refund_info",refund_id:jQuery(this).data("order_refund_id"),order_id:jQuery("#post_ID").val(),security_check:wrael_admin_param.wps_rma_nonce},r=jQuery(this);jQuery.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,success:function(e){e&&r.hide()}})}));const e=mdc.textField.MDCTextField,r=([].map.call(document.querySelectorAll(".mdc-text-field"),(function(r){return new e(r)})),mdc.ripple.MDCRipple),a=([].map.call(document.querySelectorAll(".mdc-button"),(function(e){return new r(e)})),mdc.switchControl.MDCSwitch);[].map.call(document.querySelectorAll(".mdc-switch"),(function(e){return new a(e)}));$(document).find(".wps-defaut-multiselect").length>0&&$(document).find(".wps-defaut-multiselect").select2(),$("a[href='admin.php?page=woo_refund_and_exchange_lite_menu']").addClass("submenu-font-size-fix"),$(".wps-password-hidden").click((function(){"text"==$(".wps-form__password").attr("type")?$(".wps-form__password").attr("type","password"):$(".wps-form__password").attr("type","text")})),$(".wps_rma_order_statues").select2();var t=[];function i(){let e=[];$.each($(".add_more_rma_policies"),(function(){var r=$(this).children(".wps_rma_on_functionality").val(),a=$(this).children(".wps_rma_settings").val(),t=new Object;t.name=r,t.value=a,e.push(t)})),e.forEach((function(e){var r=t.filter((function(r,a){return r.name==e.name}));if(r.length){var a=t.indexOf(r[0]);t[a].value=t[a].value.concat(e.value)}else"string"==typeof e.value&&(e.value=[e.value]),t.push(e)}))}function _(){$.each($(".wps_rma_settings"),(function(){""==$(this).val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_maximum_days"==$(this).val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_order_status"==$(this).val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide()):"wps_rma_tax_handling"==$(this).val()&&($(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions_label").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_settings_label").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show())}))}function s(e,r,a){return e.replace(new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),a)}i(),_(),$(document).on("change",".wps_rma_settings, .wps_rma_on_functionality",(function(){var e=$(this).parent(".add_more_rma_policies").children(".wps_rma_on_functionality").val(),r=$(this).parent(".add_more_rma_policies").children(".wps_rma_settings").val(),a=$(this);""!=r&&null!=r&&t.forEach((function(t){e==t.name&&null!=t.value&&-1!=$.inArray(r,t.value)&&(alert(wrael_admin_param.wps_policy_already_exist),a.parent(".add_more_rma_policies").remove())})),""==a.val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_maximum_days"==a.val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide()):"wps_rma_order_status"==a.val()?($(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide()):"wps_rma_tax_handling"==a.val()&&($(this).parent(".add_more_rma_policies").children(".wps_rma_tax_handling").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_order_statues").next().hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_max_number_days").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions1").hide(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions2").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_conditions_label").show(),$(this).parent(".add_more_rma_policies").children(".wps_rma_settings_label").show()),t=[],i()})),$(document).on("submit","#save_policies_setting_form",(function(e){$.each($(".wps_rma_settings"),(function(){""==$(this).val()&&$(this).parent(".add_more_rma_policies").remove()}))})),$(document).on("click","#wps_rma_add_more",(function(){var e=wrael_admin_param.check_pro_active,r=$(".add_more_rma_policies").last().children(".wps_rma_get_current_i").val();r=parseInt(r)+1;var a=$("#add_more_rma_policies_clone").html();a=s(a,"wps_rma_setting[1]","wps_rma_setting["+r+"]"),a=s(a,"wps_rma_order_statues1","wps_rma_order_statues"),e&&(a=show_correct_field_pro(a)),$("#div_add_more_rma_policies").append('
'+a+'
'),$(".add_more_rma_policies").last().children(".wps_rma_get_current_i").val(r),$(".wps_rma_order_statues").select2(),e&&wps_rma_do_something(),_(),i()})),$(document).on("click",".rma_policy_delete",(function(){$(this).parent(".add_more_rma_policies").remove(),_(),i()})),$(".wps_rma_return_loader").hide(),$(document).on("click","#wps_rma_accept_return",(function(){$("#wps_rma_return_package").hide(),$(".wps_rma_return_loader").show();var e={action:"wps_rma_return_req_approve",orderid:$(this).data("orderid"),date:$(this).data("date"),security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){$(".wps_rma_return_loader").hide(),$(".refund-actions .cancel-action").hide(),window.location.reload()}})})),$(document).on("click","#wps_rma_cancel_return",(function(){$(".wps_rma_return_loader").show();var e={action:"wps_rma_return_req_cancel",orderid:$(this).data("orderid"),date:$(this).data("date"),security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){$(".wps_rma_return_loader").hide(),window.location.reload()}})})),$(document).on("click","#wps_rma_left_amount",(function(){$(this).attr("disabled","disabled");var e=$(this).data("orderid"),r=$(this).data("refund_method"),a=$(".wps_rma_total_amount_for_refund").val();$(".wps_rma_return_loader").show();var t={action:"wps_rma_refund_amount",order_id:e,refund_method:r,refund_amount:a,security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:t,dataType:"json",success:function(e){if($(".wps_rma_return_loader").show(),""==e.refund_method||"manual_method"==e.refund_method){$("html, body").animate({scrollTop:$("#order_shipping_line_items").offset().top},2e3),$("div.wc-order-refund-items").slideDown(),$("div.wc-order-data-row-toggle").not("div.wc-order-refund-items").slideUp(),$("div.wc-order-totals-items").slideUp();var r=$("#wps_rma_refund_reason").val();$("#refund_amount").val(a),$("#refund_reason").val(r);var t=accounting.unformat(a,woocommerce_admin.mon_decimal_point);$("button .wc-order-refund-amount .amount").text(accounting.formatMoney(t,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format}))}else window.location.reload()}})})),$(document).on("click","#wps_rma_stock_back",(function(){$(this).attr("disabled","disabled");var e={action:"wps_rma_manage_stock",order_id:$(this).data("orderid"),type:$(this).data("type"),security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){$(this).removeAttr("disabled"),e.result?($("#post").prepend('

'+e.msg+'

'),$("html, body").animate({scrollTop:$("body").offset().top},2e3,"linear",(function(){window.setTimeout((function(){window.location.reload()}),1e3)}))):($("#post").prepend('

'+e.msg+'

'),$("html, body").animate({scrollTop:jQuer$("body").offset().top},2e3,"linear",(function(){})))}})})),$(document).on("click","#wps_rma_generate_key_setting",(function(e){e.preventDefault();var r={action:"wps_rma_api_secret_key",security_check:wrael_admin_param.wps_rma_nonce};$.ajax({url:wrael_admin_param.ajaxurl,type:"POST",data:r,dataType:"json",success:function(e){window.location.reload()}})}))})),jQuery(document).ready((function(e){const r=wrael_admin_param.ajaxurl,a=wrael_admin_param.wps_rma_nonce,t=wrael_admin_param.wps_rma_callback,i=wrael_admin_param.wps_rma_pending_orders,_=wrael_admin_param.wps_rma_pending_orders_count,s=wrael_admin_param.wps_rma_pending_users,n=wrael_admin_param.wps_rma_pending_users_count,o=wrael_admin_param.wps_rma_pending_order_msgs,d=wrael_admin_param.wps_rma_pending_order_msgs_count;jQuery(document).on("click","#wps_rma_migration_start-button",(function(e){e.preventDefault(),Swal.fire({icon:"warning",title:"We Have got "+_+" Orders Data,
"+d+" Order Messages Data And "+n+" Users Data",text:"Click to start Migration",footer:"Please do not reload/close this page until prompted",showCloseButton:!0,showCancelButton:!0,focusConfirm:!1,confirmButtonText:' Start',confirmButtonAriaLabel:"Thumbs up",cancelButtonText:' Cancel',cancelButtonAriaLabel:"Thumbs down"}).then((e=>{e.isConfirmed?(Swal.fire({title:"Orders Data are being migrated!",html:"Do not reload/close this tab.",footer:''+_+" are left to migrate",didOpen:()=>{Swal.showLoading()}}),m(i)):e.isDismissed&&Swal.fire("Migration Stopped","","info")}))}));const m=e=>{var i={action:t,event:"wps_rma_import_single_order",nonce:a,orders:e};jQuery.post(r,i).done((function(r){e=JSON.parse(r)})).then((function(e){e=JSON.parse(e).orders,jQuery.isEmptyObject(e)?count=0:count=Object.keys(e).length,jQuery(".order-progress-report").text(count+" are left to migrate"),jQuery.isEmptyObject(e)?(Swal.fire({title:"Order Messages Data are being migrated!",html:"Do not reload/close this tab.",footer:''+d+" are left to migrate",didOpen:()=>{Swal.showLoading()}}),c(o)):m(e)}),(function(e){console.error(e)}))},c=e=>{var i={action:t,event:"wps_rma_import_single_order_msg",nonce:a,order_msgs:e};jQuery.post(r,i).done((function(r){e=JSON.parse(r)})).then((function(e){e=JSON.parse(e).order_msgs,jQuery.isEmptyObject(e)?count=0:count=Object.keys(e).length,jQuery(".order-progress-report").text(count+" are left to migrate"),jQuery.isEmptyObject(e)?(Swal.fire({title:"Users Data are being migrated!",html:"Do not reload/close this tab.",footer:''+n+" are left to migrate",didOpen:()=>{Swal.showLoading()}}),l(s)):c(e)}),(function(e){console.error(e)}))},l=e=>{var i={action:t,event:"wps_rma_import_single_user",nonce:a,users:e};jQuery.post(r,i).done((function(r){e=JSON.parse(r)})).then((function(e){e=JSON.parse(e).users,jQuery.isEmptyObject(e)?count=0:count=Object.keys(e).length,jQuery(".order-progress-report").text(count+" are left to migrate"),jQuery.isEmptyObject(e)?window.location.reload():l(e)}),(function(e){console.error(e)}))}}));var wps_rma_migration_success=function(){0!=wrael_admin_param.wps_rma_pending_orders_count||0!=wrael_admin_param.wps_rma_pending_users_count||0!=wrael_admin_param.wps_rma_pending_order_msgs_count?(jQuery("#wps_rma_migration_start-button").click(),jQuery("#wps_rma_migration_start-button").show()):jQuery("#wps_rma_migration_start-button").hide()}; \ No newline at end of file diff --git a/assets/src/back-end/js/woo-refund-and-exchange-lite-admin.js b/assets/src/back-end/js/woo-refund-and-exchange-lite-admin.js index fec3fad..a31c690 100755 --- a/assets/src/back-end/js/woo-refund-and-exchange-lite-admin.js +++ b/assets/src/back-end/js/woo-refund-and-exchange-lite-admin.js @@ -537,9 +537,10 @@ jQuery(document).ready( function($) { startImportUsers(users); } else { // All users imported! - Swal.fire({ - title : 'All of the Data are Migrated successfully!', - }); + // Swal.fire({ + // title : 'All of the Data are Migrated successfully!', + // }); + window.location.reload(); } }, function(error) { console.error(error); @@ -550,7 +551,7 @@ jQuery(document).ready( function($) { var wps_rma_migration_success = function() { - if ( wrael_admin_param.wps_rma_pending_orders_count != 0 && wrael_admin_param.wps_rma_pending_users_count != 0 && wrael_admin_param.wps_rma_pending_order_msgs_count != 0 ) { + if ( wrael_admin_param.wps_rma_pending_orders_count != 0 || wrael_admin_param.wps_rma_pending_users_count != 0 || wrael_admin_param.wps_rma_pending_order_msgs_count != 0 ) { jQuery( "#wps_rma_migration_start-button" ).click(); jQuery( "#wps_rma_migration_start-button" ).show(); }else{ diff --git a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php index 9957c1f..0644693 100755 --- a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php +++ b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php @@ -676,7 +676,7 @@ protected function wps_rma_hubwoo_submit_form( $form_data = array(), $action_typ $form_id = self::$wps_rma_deactivation_form_id; } - $url = 'submissions/v3/integration/submit/' . self::$wps_rma_portal_id . '/' . $form_id; + $url = 'submissions/v3/integration/submit/' . self::$wps_rma_portal_id . '/' . $form_id; $headers = 'Content-Type: application/json'; @@ -690,7 +690,6 @@ protected function wps_rma_hubwoo_submit_form( $form_data = array(), $action_typ ), ) ); - $response = $this->wps_rma_hic_post( $url, $form_data, $headers ); if ( 200 == $response['status_code'] ) { @@ -724,6 +723,7 @@ private function wps_rma_hic_post( $endpoint, $post_params, $headers ) { 'cookies' => array(), ); $response = wp_remote_post( $url, $request ); + if ( is_wp_error( $response ) ) { $status_code = 500; $response = esc_html__( 'Unexpected Error Occured', 'woo-refund-and-exchange-lite' ); diff --git a/package-lock.json b/package-lock.json index 0829426..cda4294 100755 --- a/package-lock.json +++ b/package-lock.json @@ -3163,6 +3163,14 @@ "webpack-cli": "^3.3.11", "webpack-livereload-plugin": "^2.3.0", "webpack-sources": "^2.2.0" + }, + "dependencies": { + "prettier": { + "version": "npm:wp-prettier@2.2.1-beta-1", + "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz", + "integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==", + "dev": true + } } }, "@wordpress/stylelint-config": { @@ -15698,12 +15706,6 @@ "dev": true, "optional": true }, - "prettier": { - "version": "npm:wp-prettier@2.2.1-beta-1", - "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz", - "integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==", - "dev": true - }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", From 0a6efbea511f5554baba9d92f126cbaa0445e9e1 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Fri, 22 Apr 2022 15:15:18 +0530 Subject: [PATCH 04/17] changes --- .../class-woo-refund-and-exchange-lite-admin.php | 16 +--------------- ...refund-and-exchange-lite-onboarding-steps.php | 3 ++- ...refund-and-exchange-lite-common-functions.php | 1 + .../woo-refund-and-exchange-lite-onboarding.js | 1 - 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index b04e71b..83257e9 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1228,21 +1228,7 @@ public function wps_rma_lite_admin_menus() { * @param string $status Status filter currently applied to the plugin list. */ public function wps_rma_lite_upgrade_notice( $plugin_file, $plugin_data, $status ) { - ?> - - -
-
-

:

-
-
-

3.1.4 WP Swings.

WP Swings - .

-
-
- - - wps_rma_get_count( 'pending', 'count', 'orders' ); $wps_rma_pending_users_count = $this->wps_rma_get_count( 'pending', 'count', 'users' ); $wps_rma_pending_order_msgs_count = $this->wps_rma_get_count( 'pending', 'count', 'order_messages' ); diff --git a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php index 0644693..69a212f 100755 --- a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php +++ b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php @@ -110,7 +110,7 @@ public function __construct() { self::$wps_rma_store_name = get_bloginfo( 'name' ); self::$wps_rma_store_url = home_url(); self::$wps_rma_plugin_name = 'woo-refund-and-exchange-lite'; - self::$wps_rma_plugin_name_label = 'WooCommerce Refund and Exchange Lite'; + self::$wps_rma_plugin_name_label = 'RETURN REFUND AND EXCHANGE FOR WOOCOMMERCE'; add_action( 'admin_enqueue_scripts', array( $this, 'wps_rma_onboarding_enqueue_styles' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'wps_rma_onboarding_enqueue_scripts' ) ); @@ -229,6 +229,7 @@ public function wps_rma_onboarding_enqueue_scripts() { * @since 1.0.0 */ public function wps_rma_add_onboarding_popup_screen() { + if ( $this->wps_rma_valid_page_screen_check() && $this->wps_rma_show_onboarding_popup_check() ) { require_once WOO_REFUND_AND_EXCHANGE_LITE_DIR_PATH . 'onboarding/templates/woo-refund-and-exchange-lite-onboarding-template.php'; } diff --git a/includes/woo-refund-and-exchange-lite-common-functions.php b/includes/woo-refund-and-exchange-lite-common-functions.php index a18a073..bd156ef 100755 --- a/includes/woo-refund-and-exchange-lite-common-functions.php +++ b/includes/woo-refund-and-exchange-lite-common-functions.php @@ -193,6 +193,7 @@ function wps_rma_lite_send_order_msg_callback( $order_id, $msg, $sender, $to ) { * @param string $currency_symbol . */ function wps_wrma_format_price( $price, $currency_symbol ) { + $price = apply_filters( 'formatted_woocommerce_price', number_format( $price, wc_get_price_decimals(), wc_get_price_decimal_separator(), wc_get_price_thousand_separator() ), $price, wc_get_price_decimals(), wc_get_price_decimal_separator(), wc_get_price_thousand_separator() ); $price = apply_filters( 'wps_rma_price_change_everywhere', $price ); $currency_pos = get_option( 'woocommerce_currency_pos' ); switch ( $currency_pos ) { diff --git a/onboarding/js/woo-refund-and-exchange-lite-onboarding.js b/onboarding/js/woo-refund-and-exchange-lite-onboarding.js index 1b70e28..66de89d 100755 --- a/onboarding/js/woo-refund-and-exchange-lite-onboarding.js +++ b/onboarding/js/woo-refund-and-exchange-lite-onboarding.js @@ -95,7 +95,6 @@ jQuery(document).ready(function($) { e.preventDefault(); var form_data = JSON.stringify(jQuery('form.wps-wrael-on-boarding-form').serializeArray()); - jQuery.ajax({ type: 'post', dataType: 'json', From 074ab654d56d8cda2d5a1fcd5db1f6106fd1b858 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Fri, 22 Apr 2022 19:15:31 +0530 Subject: [PATCH 05/17] plugin-label-name-change --- admin/class-woo-refund-and-exchange-lite-admin.php | 1 + .../class-woo-refund-and-exchange-lite-onboarding-steps.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 83257e9..d900634 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1202,6 +1202,7 @@ public function wps_rma_lite_upgrade_notice1() { /** Add submenu in woocommerce setting */ public function wps_rma_lite_admin_menus() { + global $submenu; $permalink = admin_url( 'admin.php?page=woo_refund_and_exchange_lite_menu' ); // phpcs:disable diff --git a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php index 69a212f..0f01f62 100755 --- a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php +++ b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php @@ -109,8 +109,8 @@ class Woo_Refund_And_Exchange_Lite_Onboarding_Steps { public function __construct() { self::$wps_rma_store_name = get_bloginfo( 'name' ); self::$wps_rma_store_url = home_url(); - self::$wps_rma_plugin_name = 'woo-refund-and-exchange-lite'; - self::$wps_rma_plugin_name_label = 'RETURN REFUND AND EXCHANGE FOR WOOCOMMERCE'; + self::$wps_rma_plugin_name = 'Return Refund and Exchange for WooCommerce'; + self::$wps_rma_plugin_name_label = 'Return Refund and Exchange for WooCommerce'; add_action( 'admin_enqueue_scripts', array( $this, 'wps_rma_onboarding_enqueue_styles' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'wps_rma_onboarding_enqueue_scripts' ) ); From 284cf70cfade6fea269e0b6b00b33a5ec9ef6165 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Sat, 23 Apr 2022 12:34:18 +0530 Subject: [PATCH 06/17] fixes --- ...ass-woo-refund-and-exchange-lite-admin.php | 2 +- ...-refund-and-exchange-lite-incompatible.php | 2 +- ...und-and-exchange-lite-common-functions.php | 45 ------------------- 3 files changed, 2 insertions(+), 47 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index d900634..2089b7b 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -86,7 +86,6 @@ public function wrael_admin_enqueue_styles( $hook ) { if ( isset( $screen->id ) && 'shop_order' === $screen->id ) { wp_enqueue_style( $this->plugin_name, WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'admin/css/woo-refund-and-exchange-lite-order-edit-page.min.css', array(), $this->version, 'all' ); } - } /** @@ -183,6 +182,7 @@ public function wrael_options_page() { $wrael_menus = // Add Sub Menu. apply_filters( 'wps_add_plugins_menus_array', array() ); + if ( is_array( $wrael_menus ) && ! empty( $wrael_menus ) ) { foreach ( $wrael_menus as $wrael_key => $wrael_value ) { add_submenu_page( 'wps-plugins', $wrael_value['name'], $wrael_value['name'], 'manage_options', $wrael_value['menu_link'], array( $wrael_value['instance'], $wrael_value['function'] ) ); diff --git a/admin/partials/woo-refund-and-exchange-lite-incompatible.php b/admin/partials/woo-refund-and-exchange-lite-incompatible.php index c43cb49..58103b7 100644 --- a/admin/partials/woo-refund-and-exchange-lite-incompatible.php +++ b/admin/partials/woo-refund-and-exchange-lite-incompatible.php @@ -19,7 +19,7 @@ $wps_rma_pending_orders_count = $wrael_plugin_admin->wps_rma_get_count( 'pending', 'count', 'orders' ); $wps_rma_pending_users_count = $wrael_plugin_admin->wps_rma_get_count( 'pending', 'count', 'users' ); $wps_rma_pending_order_msgs_count = $wrael_plugin_admin->wps_rma_get_count( 'pending', 'count', 'order_messages' ); -if ( $wps_rma_pending_orders_count != 0 || $wps_rma_pending_users_count != 0 || $wps_rma_pending_order_msgs_count != 0 ) { +if ( 0 !== $wps_rma_pending_orders_count || 0 !== $wps_rma_pending_users_count || 0 !== $wps_rma_pending_order_msgs_count ) { $wps_par_global_custom_css = 'const triggerError = () => { swal({ diff --git a/includes/woo-refund-and-exchange-lite-common-functions.php b/includes/woo-refund-and-exchange-lite-common-functions.php index bd156ef..ce424ff 100755 --- a/includes/woo-refund-and-exchange-lite-common-functions.php +++ b/includes/woo-refund-and-exchange-lite-common-functions.php @@ -819,48 +819,3 @@ function wps_rma_lite_post_meta_data_migrate() { } } -/** - * Order count. - * - * @param string $status . - * @param string $action . - * @param boolean $type . - * @return $count - */ -function get_count( $status = 'all', $action = 'count', $type = false ) { - - if ( 'orders' === $type ) { - switch ( $status ) { - case 'pending': - $sql = "SELECT (`post_id`) FROM `wp_postmeta` WHERE `meta_key` LIKE '%ced_rnx_request_made%' OR `meta_key` LIKE '%ced_rnx_return_product%' OR `meta_key` OR '%ced_rnx_return_attachment%' OR `meta_key` LIKE '%mwb_wrma_return_product%' LIMIT 5"; - break; - default: - $sql = false; - break; - } - } elseif ( 'users' === $type ) { - switch ( $status ) { - case 'pending': - $sql = "SELECT (`user_id`) FROM `wp_usermeta` WHERE `meta_key` = 'mwb_wrma_refund_wallet_coupon' LIMIT 5"; - break; - - default: - $sql = false; - break; - } - } - - if ( empty( $sql ) ) { - return 0; - } - - global $wpdb; - $result = $wpdb->get_results( $sql, ARRAY_A ); // @codingStandardsIgnoreLine. - - if ( 'count' === $action ) { - $result = ! empty( $result ) ? count( $result ) : 0; - } - // $result = ! empty( $result ) ? count( $result ) : 0; - - return $result; -} From f89eba3e22b9577d287a01f0cc1315e967ec21de Mon Sep 17 00:00:00 2001 From: mohddanish Date: Mon, 25 Apr 2022 19:30:05 +0530 Subject: [PATCH 07/17] fix-phpcs-issue --- public/partials/wps-rma-refund-request-form.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/partials/wps-rma-refund-request-form.php b/public/partials/wps-rma-refund-request-form.php index 74f13bb..53fa1a7 100755 --- a/public/partials/wps-rma-refund-request-form.php +++ b/public/partials/wps-rma-refund-request-form.php @@ -202,9 +202,18 @@ array( + 'type' => array(), + 'value' => array(), + 'class' => array(), + 'name' => array(), + 'disabled' => array(), + ), + ); $qty_html = ''; echo // Refund form Quantity html. - apply_filters( 'wps_rma_change_quanity', $qty_html, $item_qty ); // phpcs:ignore + wp_kses( apply_filters( 'wps_rma_change_quanity', $qty_html, $item_qty ), $allow_html ); // phpcs:ignore ?> From a0eeb3f1840be7914b38b98de7d97bbad3f815df Mon Sep 17 00:00:00 2001 From: mohddanish Date: Thu, 28 Apr 2022 10:24:07 +0530 Subject: [PATCH 08/17] phpcs-fixes --- ...ass-woo-refund-and-exchange-lite-admin.php | 9 +- .../woo-refund-and-exchange-lite-admin.css | 10 +- ...woo-refund-and-exchange-lite-admin.min.css | 2 +- admin/css/wps-order-edit-page-lite.scss.css | 253 ++++++++++++++++++ .../css/wps-order-edit-page-lite.scss.min.css | 1 + admin/image/Demo.svg | 0 admin/image/Documentation.svg | 2 +- admin/image/Support.svg | 2 +- .../scss/wps-order-edit-page-lite.scss | 16 +- assets/src/front-end/scss/main.scss | 7 - .../woo-refund-and-exchange-lite-public.css | 9 - ...oo-refund-and-exchange-lite-public.min.css | 2 +- woocommerce-refund-and-exchange-lite.php | 5 +- 13 files changed, 278 insertions(+), 40 deletions(-) create mode 100755 admin/css/wps-order-edit-page-lite.scss.css create mode 100755 admin/css/wps-order-edit-page-lite.scss.min.css mode change 100755 => 100644 admin/image/Demo.svg mode change 100755 => 100644 admin/image/Documentation.svg mode change 100755 => 100644 admin/image/Support.svg diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 2089b7b..43f86e4 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -84,7 +84,8 @@ public function wrael_admin_enqueue_styles( $hook ) { wp_enqueue_style( 'wps-datatable-css', WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'package/lib/datatables/media/css/jquery.dataTables.min.css', array(), $this->version, 'all' ); } if ( isset( $screen->id ) && 'shop_order' === $screen->id ) { - wp_enqueue_style( $this->plugin_name, WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'admin/css/woo-refund-and-exchange-lite-order-edit-page.min.css', array(), $this->version, 'all' ); + // wp_enqueue_style( $this->plugin_name, WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'admin/css/woo-refund-and-exchange-lite-order-edit-page.min.css', array(), $this->version, 'all' ); + wp_enqueue_style( $this->plugin_name, WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'admin/css/wps-order-edit-page-lite.scss.min.css', array(), $this->version, 'all' ); } } @@ -438,10 +439,12 @@ public function wrael_admin_save_tab_settings() { $setting = sanitize_text_field( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ); $setting = trim( preg_replace( '/\s\s+/', ' ', $setting ) ); } - if ( 'wps_rma_refund_rules_editor' === $wrael_genaral_setting['id'] ) { + if ( 'wps_rma_refund_rules_editor' === $wrael_genaral_setting['id'] ) { update_option( 'wps_rma_refund_rules_editor', wp_kses_post( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) ); + } elseif ( 'wps_rma_refund_form_css' === $wrael_genaral_setting['id'] ) { + update_option( 'wps_rma_refund_form_css', wp_kses_post( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) ); } else { - update_option( sanitize_text_field( wp_unslash( $wrael_genaral_setting['id'] ) ), is_array( $_POST[ $wrael_genaral_setting['id'] ] ) ? $this->wps_sanitize_array( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) : stripslashes( sanitize_text_field( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) ) ); + update_option( sanitize_text_field( wp_unslash( $wrael_genaral_setting['id'] ) ), is_array( $_POST[ $wrael_genaral_setting['id'] ] ) ? map_deep( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ), 'sanitize_text_field' ) : stripslashes( sanitize_text_field( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) ) ); } } else { update_option( sanitize_text_field( wp_unslash( $wrael_genaral_setting['id'] ) ), '' ); diff --git a/admin/css/woo-refund-and-exchange-lite-admin.css b/admin/css/woo-refund-and-exchange-lite-admin.css index cf3398a..326fe8d 100755 --- a/admin/css/woo-refund-and-exchange-lite-admin.css +++ b/admin/css/woo-refund-and-exchange-lite-admin.css @@ -751,7 +751,9 @@ select { .thumb img { width: 50px; } - +.toplevel_page_wps-plugins div img { + width: 20px !important; +} @media (max-width: 768px){ .wps-header-container { justify-content: flex-start; @@ -770,14 +772,12 @@ select { max-width: 100%; } } - @media (max-width: 992px){ .wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item { flex: 0 0 50%; max-width: 50%; } } - @media only screen and (max-width: 1140px){ .add_more_rma_policies select, .add_more_rma_policies label, @@ -789,7 +789,6 @@ select { margin-top: 8px; } } - @media only screen and (max-width: 520px){ .wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords { flex-direction: column; @@ -799,7 +798,4 @@ select { flex: 0 0 100%; max-width: 100%; } -} -.toplevel_page_wps-plugins div img{ - width: 20px ! important; } \ No newline at end of file diff --git a/admin/css/woo-refund-and-exchange-lite-admin.min.css b/admin/css/woo-refund-and-exchange-lite-admin.min.css index 142eecd..51ae479 100755 --- a/admin/css/woo-refund-and-exchange-lite-admin.min.css +++ b/admin/css/woo-refund-and-exchange-lite-admin.min.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-display:swap;font-family:NunitoSans-ExtraBold;font-style:bold;src:url(../fonts/nunito-sans/NunitoSans-ExtraBold.ttf)}@font-face{font-display:swap;font-family:NunitoSans-SemiBold;font-style:bold;src:url(../fonts/nunito-sans/NunitoSans-SemiBold.ttf)}@font-face{font-display:swap;font-family:NunitoSans-Bold;font-style:bold;src:url(../fonts/nunito-sans/NunitoSans-Bold.ttf)}@font-face{font-display:swap;font-family:NunitoSans-Regular;font-style:normal;src:url(../fonts/nunito-sans/NunitoSans-Regular.ttf)}:root{--mdc-theme-primary:#2196f3;--mdc-theme-secondary:#2196f3}.wp-swings_page_woo_refund_and_exchange_lite_menu #sswpbody-content{font-family:NunitoSans-Regular,sans-serif;margin:0}body{background-color:#e5f4fe}*,:after,:before{box-sizing:border-box}a,a:focus,a:hover{text-decoration:none}a:focus{box-shadow:none}h1,h2,h3,h4,h5,h6,p,ul{margin:0}ul{list-style:none;padding:0}input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,option,select,select:focus,textarea:focus{box-shadow:none!important}option,select{border-color:rgba(0,0,0,.38)!important;color:rgba(0,0,0,.7)!important}select{padding:10px 30px 10px 15px!important}.wps-link:focus{border:none;outline:none}.wps-info-img{display:inline-block;margin-right:6px;margin-top:-3px;max-width:15px}.wps-link{color:#000;display:inline-block;font-family:NunitoSans-Bold;font-size:14px;font-style:normal;font-weight:700;letter-spacing:.3px;line-height:24px;transition:.3s ease}.wps-link.active,.wps-link:hover{color:#2196f3!important}.wps-link.active{position:relative}.wps-link:after{border-bottom:3px solid #2196f3;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0}.wps-bg-white{background-color:#fff;margin-right:15px}.wps-r-8{border-radius:8px}.wps-pl-4{padding:0 4px!important}.wps-section{padding:28px 32px}.wps-header-container{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:8px;margin-right:15px;margin-top:15px;padding:28px 32px}.wps-header-container .wps-header-title{color:#2196f3;flex:0 0 100%;font-family:NunitoSans-ExtraBold;font-size:20px;font-style:normal;font-weight:800;letter-spacing:.3px;line-height:24px;max-width:calc(100% - 200px)}.wps-form-group{display:flex;flex-wrap:wrap;margin:0 -15px 35px}.wps-form-group .wps-form-group__label{flex:0 0 100%;max-width:200px;padding:0 15px}.wps-form-group .wps-form-group__label .wps-form-label{font-family:NunitoSans-SemiBold;font-size:14px;letter-spacing:.3px;line-height:24px}.wps-form-group .wps-form-group__control{flex:0 0 100%;max-width:calc(100% - 200px);padding:0 15px}.wps-form-group .wps-form-group__control .wps-form-select:hover select{border-color:rgba(0,0,0,.87)!important;color:rgba(0,0,0,.87)}.wps-form-group .wps-form-group__control .wps-form-select:focus select{border-color:#2196f3!important}.wps-form-group .wps-form-group__control .wps-form-select .mdl-textfield__label{display:block;max-width:450px;padding-left:16px;padding-right:16px}.wps-form-group .wps-form-group__control .mdc-switch__native-control{height:48px;width:68px}.wps-form-group .wps-password-hidden{opacity:.7;outline:none;transition:opacity .2s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wps-form-group .wps-password-hidden:hover{opacity:1}.select2.select2-container{max-width:100%}.table-responsive{-webkit-overflow-scrolling:touch;background:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(63,71,86,.1);overflow-x:auto;padding:16px}.wps-col-wrap{margin-bottom:35px}.wps-options{box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)!important}.mdc-button{border-radius:35px!important;height:100%;padding:12px 24px!important}.mdc-floating-label{color:#2196f3}.mdc-floating-label--float-above,.mdc-floating-label--shake{color:#2196f3!important}#admin-hooks-listing,#wps-wrael-table-inner-container,#public-hooks-listing{width:100%}#admin-hooks-listing table thead th,#wps-wrael-table-inner-container table thead th,#public-hooks-listing table thead th{font-family:NunitoSans-ExtraBold;font-size:18px}.wps-btn{border:1px solid #2196f3;border-radius:30px;cursor:pointer;display:inline-block;font-family:NunitoSans-Regular;font-size:14px;font-weight:400;min-width:140px;outline:0;padding:16px 32px;text-align:center;text-transform:capitalize}.wps-btn,.wps-btn:active,.wps-btn:focus,.wps-btn:hover{color:#fff}.wps-btn__filled{background-color:#2196f3}.wps-overview__wrapper{width:calc(100% - 20px)}.wps-overview__wrapper .wps-overview__banner{background-color:#fff;margin:10px 0 25px;overflow:hidden;padding:10px}.wps-overview__wrapper .wps-overview__banner img{width:100%}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description{background-color:#fff;margin-bottom:30px;padding:25px 0;text-align:left}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description h2{color:#163062;font-size:30px;font-weight:600;letter-spacing:.5px;line-height:150%;margin:10px 0;text-align:left}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description p{color:#565857;font-size:16px;letter-spacing:.5px}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description h3{color:#163062;font-size:18px;font-weight:600;letter-spacing:.3px;margin-bottom:15px;margin-top:25px}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description .wps-overview__features{list-style:none}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description .wps-overview__features li{color:#565857;font-size:16px;letter-spacing:.5px;line-height:24px}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description .wps-overview__features li:before{color:#1a3365;content:"⚬";font-size:20px;font-weight:400;vertical-align:middle}.wps-overview__wrapper .wps-overview__content h2{color:#163062;font-size:30px;font-weight:600;letter-spacing:.5px;line-height:150%;margin:10px 0;text-align:left}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords{display:flex;flex-wrap:wrap;margin:0 -15px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{display:flex;flex:0 0 33.33%;flex-wrap:wrap;margin-bottom:20px;max-width:33.33%;padding:0 15px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card{background-color:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 4px 10px #efefef;color:#fff;flex-grow:1;padding:30px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-image{overflow:hidden}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-image img{max-width:80px;-o-object-fit:cover;object-fit:cover;width:auto}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-text .wps-overview__keywords-heading{color:#163062;font-size:28px;font-weight:600;letter-spacing:.3px;line-height:38px;margin:15px 0}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-text .wps-overview__keywords-description{color:#565857;font-size:16px;letter-spacing:.5px}.wps-navbar{border-bottom:1px solid rgba(63,71,86,.25);padding:0 32px}.wps-navbar .wps-navbar__items{display:flex;flex-wrap:wrap}.wps-navbar .wps-navbar__items li{margin-bottom:0;margin-right:32px}.wps-navbar .wps-navbar__items li a{color:#000;padding:18px 0}.wps-wrael-wrap{border:1px solid #ddd;border-radius:10px;box-shadow:0 4px 10px #efefef;margin:0 auto;max-width:600px;padding:10px 20px}.wps-wrael-wrap h2{color:#163062;font-size:24px;font-weight:600;letter-spacing:.5px;line-height:150%;margin:10px 0;text-align:left}.wps-wrael-wrap .wps_rma_license_text>p{margin:10px 0}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form .wps-wrael-form-table input#wps_rma_license_key{font-size:14px;height:50px;transition:.3s ease;width:100%}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form .wps-wrael-form-table input#wps_rma_license_key:hover{border-color:#000}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form .wps-wrael-form-table input#wps_rma_license_key:focus{border-color:#2196f3;box-shadow:none;outline:none}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form #wps_rma_license_activation_status{font-weight:600;padding:0 10px}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form button{background-color:#163062;border:1px solid #163062;font-weight:600;height:40px;letter-spacing:1.5px;text-transform:uppercase;transition:.5s ease;width:100%}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form button:hover{background-color:#fff;color:#163062}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form button:focus{box-shadow:none;outline:none}.dataTables_wrapper{padding:20px 10px}.dataTables_wrapper .dataTable{border-bottom:1px solid rgba(33,33,33,.08)!important}.dataTables_wrapper .dataTable thead{text-align:left}.dataTables_wrapper .dataTable thead th{border-bottom:1px solid rgba(33,33,33,.08);font-family:NunitoSans-SemiBold!important;font-size:16px!important;font-weight:400;letter-spacing:.25px;line-height:24px;padding:15px}.dataTables_wrapper .dataTable tr,.dataTables_wrapper .dataTable tr td{background-color:#fff!important}.dataTables_wrapper .wps-dt-buttons{align-items:center;display:flex;justify-content:flex-end}.dataTables_wrapper .wps-dt-buttons .dt-buttons{margin:0 10px}.dataTables_wrapper .wps-dt-buttons .dt-buttons .dt-button{background-color:#fff;border:1px solid #c7c7c7;border-radius:2px;padding:5px 10px;transition:.5s ease}.dataTables_wrapper .wps-dt-buttons .dt-buttons .dt-button:hover{background:#efefef;cursor:pointer}.dataTables_wrapper .bottom{display:flex;flex-wrap:wrap;justify-content:flex-end;margin:10px 0}.dataTables_wrapper .bottom .dataTables_length{font-family:NunitoSans-SemiBold;font-size:14px;font-weight:400;letter-spacing:.25px;margin-right:14px}.dataTables_wrapper .bottom .dataTables_length select{margin:0 25px;min-width:90px;padding:5px 30px 5px 15px!important}.dataTables_wrapper .bottom .dataTables_info{font-family:NunitoSans-SemiBold;font-size:14px;font-weight:400;letter-spacing:.25px;margin-right:5px}.dataTables_wrapper .bottom .dataTables_paginate{padding:0}.dataTables_wrapper .bottom .dataTables_paginate span .paginate_button{display:none!important}.dataTables_wrapper .bottom .dataTables_paginate .paginate_button{display:inline-block}.dataTables_wrapper .bottom .dataTables_paginate .paginate_button:hover{background:#f4f4f4!important;cursor:pointer!important}#add_more_rma_policies_clone{display:none}.wps-form-group__breaker{background-color:#e5f4fe;color:#2196f3;margin-bottom:30px;margin-left:-32px;margin-right:-32px;padding:15px 0 15px 30px;text-transform:uppercase}#save_policies_setting_form input,#save_policies_setting_form select{margin-left:0}#save_policies_setting_form input[type=date],#save_policies_setting_form input[type=datetime-local],#save_policies_setting_form input[type=datetime],#save_policies_setting_form input[type=email],#save_policies_setting_form input[type=month],#save_policies_setting_form input[type=number],#save_policies_setting_form input[type=password],#save_policies_setting_form input[type=search],#save_policies_setting_form input[type=tel],#save_policies_setting_form input[type=text],#save_policies_setting_form input[type=time],#save_policies_setting_form input[type=url],#save_policies_setting_form input[type=week]{max-height:50px;padding:10px 15px}#save_policies_setting_form select{max-height:50px;min-height:50px}#save_policies_setting_form .add_more_rma_policies{padding-bottom:20px}#save_policies_setting_form .add_more_rma_policies:last-child{padding-bottom:0}.add_more_rma_policies input,.add_more_rma_policies label,.add_more_rma_policies select,.add_more_rma_policies select+span{margin-right:30px}.admin-bar #save_policies_setting_form #wps_rma_add_more,.admin-bar #save_policies_setting_form .wps_rma_save_settings{background:#2196f3;border:none;border-radius:100px;color:#fff;display:inline-block;font-size:14px;letter-spacing:.25px;line-height:16px;padding:16px 25px;text-transform:uppercase}.admin-bar #save_policies_setting_form input.wps_rma_save_settings{margin-left:10px}.admin-bar #save_policies_setting_form .wps_rma_policy_condition{min-width:180px}.admin-bar #save_policies_setting_form input.rma_policy_delete{background-color:transparent;border:1px solid rgba(0,0,0,.38);border-radius:3px}#save_policies_setting_form .select2-selection--multiple input[type=search]{padding:0}#save_policies_setting_form .select2-container .select2-selection--multiple{min-height:50px}#save_policies_setting_form .wps_rma_tax_handling,#save_policies_setting_form .select2.select2-container.select2-container--default,#save_policies_setting_form input.wps_rma_max_number_days{max-width:180px;min-width:180px}.wps-wrael-gen-section-form .mdc-text-field+.mdc-text-field-helper-line,.wps-wrael-gen-section-form .wps-form-group .wps-form-group__control .wps-form-select .mdl-textfield__label{padding-left:0;padding-top:5px}#adminmenuwrap .dashicons-before img{height:auto;width:26px}#adminmenuwrap #adminmenu .submenu-font-size-fix{font-size:11px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card{text-align:center}.wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-text .wps-overview__keywords-heading{font-size:22px;line-height:32px}.wps-form-group__breaker{font-size:25px}.wps_admin_order_msg_history_title .wps_order_heading .reload-icon{width:30px}.thumb img{width:50px}@media (max-width:768px){.wps-header-container{justify-content:flex-start}.wps-header-container .wps-header-title{max-width:100%}.wps-header-container .wps-link{margin-top:15px}.wps-header-container span{margin:15px 5px 0}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{flex:0 0 100%;max-width:100%}}@media (max-width:992px){.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{flex:0 0 50%;max-width:50%}}@media only screen and (max-width:1140px){.add_more_rma_policies input,.add_more_rma_policies label,.add_more_rma_policies select,span.select2.select2-container.select2-container--default{margin-top:8px}}@media only screen and (max-width:520px){.wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords{flex-direction:column}.wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{flex:0 0 100%;max-width:100%}}.toplevel_page_wps-plugins div img{width: 20px ! important;} \ No newline at end of file +@charset "UTF-8";@font-face{font-display:swap;font-family:NunitoSans-ExtraBold;font-style:bold;src:url(../fonts/nunito-sans/NunitoSans-ExtraBold.ttf)}@font-face{font-display:swap;font-family:NunitoSans-SemiBold;font-style:bold;src:url(../fonts/nunito-sans/NunitoSans-SemiBold.ttf)}@font-face{font-display:swap;font-family:NunitoSans-Bold;font-style:bold;src:url(../fonts/nunito-sans/NunitoSans-Bold.ttf)}@font-face{font-display:swap;font-family:NunitoSans-Regular;font-style:normal;src:url(../fonts/nunito-sans/NunitoSans-Regular.ttf)}:root{--mdc-theme-primary:#2196f3;--mdc-theme-secondary:#2196f3}.wp-swings_page_woo_refund_and_exchange_lite_menu #sswpbody-content{font-family:NunitoSans-Regular,sans-serif;margin:0}body{background-color:#e5f4fe}*,:after,:before{box-sizing:border-box}a,a:focus,a:hover{text-decoration:none}a:focus{box-shadow:none}h1,h2,h3,h4,h5,h6,p,ul{margin:0}ul{list-style:none;padding:0}input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,option,select,select:focus,textarea:focus{box-shadow:none!important}option,select{border-color:rgba(0,0,0,.38)!important;color:rgba(0,0,0,.7)!important}select{padding:10px 30px 10px 15px!important}.wps-link:focus{border:none;outline:none}.wps-info-img{display:inline-block;margin-right:6px;margin-top:-3px;max-width:15px}.wps-link{color:#000;display:inline-block;font-family:NunitoSans-Bold;font-size:14px;font-style:normal;font-weight:700;letter-spacing:.3px;line-height:24px;transition:.3s ease}.wps-link.active,.wps-link:hover{color:#2196f3!important}.wps-link.active{position:relative}.wps-link:after{border-bottom:3px solid #2196f3;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0}.wps-bg-white{background-color:#fff;margin-right:15px}.wps-r-8{border-radius:8px}.wps-pl-4{padding:0 4px!important}.wps-section{padding:28px 32px}.wps-header-container{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:8px;margin-right:15px;margin-top:15px;padding:28px 32px}.wps-header-container .wps-header-title{color:#2196f3;flex:0 0 100%;font-family:NunitoSans-ExtraBold;font-size:20px;font-style:normal;font-weight:800;letter-spacing:.3px;line-height:24px;max-width:calc(100% - 200px)}.wps-form-group{display:flex;flex-wrap:wrap;margin:0 -15px 35px}.wps-form-group .wps-form-group__label{flex:0 0 100%;max-width:200px;padding:0 15px}.wps-form-group .wps-form-group__label .wps-form-label{font-family:NunitoSans-SemiBold;font-size:14px;letter-spacing:.3px;line-height:24px}.wps-form-group .wps-form-group__control{flex:0 0 100%;max-width:calc(100% - 200px);padding:0 15px}.wps-form-group .wps-form-group__control .wps-form-select:hover select{border-color:rgba(0,0,0,.87)!important;color:rgba(0,0,0,.87)}.wps-form-group .wps-form-group__control .wps-form-select:focus select{border-color:#2196f3!important}.wps-form-group .wps-form-group__control .wps-form-select .mdl-textfield__label{display:block;max-width:450px;padding-left:16px;padding-right:16px}.wps-form-group .wps-form-group__control .mdc-switch__native-control{height:48px;width:68px}.wps-form-group .wps-password-hidden{opacity:.7;outline:none;transition:opacity .2s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wps-form-group .wps-password-hidden:hover{opacity:1}.select2.select2-container{max-width:100%}.table-responsive{-webkit-overflow-scrolling:touch;background:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(63,71,86,.1);overflow-x:auto;padding:16px}.wps-col-wrap{margin-bottom:35px}.wps-options{box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)!important}.mdc-button{border-radius:35px!important;height:100%;padding:12px 24px!important}.mdc-floating-label{color:#2196f3}.mdc-floating-label--float-above,.mdc-floating-label--shake{color:#2196f3!important}#admin-hooks-listing,#public-hooks-listing,#wps-wrael-table-inner-container{width:100%}#admin-hooks-listing table thead th,#public-hooks-listing table thead th,#wps-wrael-table-inner-container table thead th{font-family:NunitoSans-ExtraBold;font-size:18px}.wps-btn{border:1px solid #2196f3;border-radius:30px;cursor:pointer;display:inline-block;font-family:NunitoSans-Regular;font-size:14px;font-weight:400;min-width:140px;outline:0;padding:16px 32px;text-align:center;text-transform:capitalize}.wps-btn,.wps-btn:active,.wps-btn:focus,.wps-btn:hover{color:#fff}.wps-btn__filled{background-color:#2196f3}.wps-overview__wrapper{width:calc(100% - 20px)}.wps-overview__wrapper .wps-overview__banner{background-color:#fff;margin:10px 0 25px;overflow:hidden;padding:10px}.wps-overview__wrapper .wps-overview__banner img{width:100%}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description{background-color:#fff;margin-bottom:30px;padding:25px 0;text-align:left}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description h2{color:#163062;font-size:30px;font-weight:600;letter-spacing:.5px;line-height:150%;margin:10px 0;text-align:left}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description p{color:#565857;font-size:16px;letter-spacing:.5px}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description h3{color:#163062;font-size:18px;font-weight:600;letter-spacing:.3px;margin-bottom:15px;margin-top:25px}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description .wps-overview__features{list-style:none}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description .wps-overview__features li{color:#565857;font-size:16px;letter-spacing:.5px;line-height:24px}.wps-overview__wrapper .wps-overview__content .wps-overview__content-description .wps-overview__features li:before{color:#1a3365;content:"⚬";font-size:20px;font-weight:400;vertical-align:middle}.wps-overview__wrapper .wps-overview__content h2{color:#163062;font-size:30px;font-weight:600;letter-spacing:.5px;line-height:150%;margin:10px 0;text-align:left}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords{display:flex;flex-wrap:wrap;margin:0 -15px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{display:flex;flex:0 0 33.33%;flex-wrap:wrap;margin-bottom:20px;max-width:33.33%;padding:0 15px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card{background-color:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 4px 10px #efefef;color:#fff;flex-grow:1;padding:30px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-image{overflow:hidden}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-image img{max-width:80px;-o-object-fit:cover;object-fit:cover;width:auto}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-text .wps-overview__keywords-heading{color:#163062;font-size:28px;font-weight:600;letter-spacing:.3px;line-height:38px;margin:15px 0}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-text .wps-overview__keywords-description{color:#565857;font-size:16px;letter-spacing:.5px}.wps-navbar{border-bottom:1px solid rgba(63,71,86,.25);padding:0 32px}.wps-navbar .wps-navbar__items{display:flex;flex-wrap:wrap}.wps-navbar .wps-navbar__items li{margin-bottom:0;margin-right:32px}.wps-navbar .wps-navbar__items li a{color:#000;padding:18px 0}.wps-wrael-wrap{border:1px solid #ddd;border-radius:10px;box-shadow:0 4px 10px #efefef;margin:0 auto;max-width:600px;padding:10px 20px}.wps-wrael-wrap h2{color:#163062;font-size:24px;font-weight:600;letter-spacing:.5px;line-height:150%;margin:10px 0;text-align:left}.wps-wrael-wrap .wps_rma_license_text>p{margin:10px 0}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form .wps-wrael-form-table input#wps_rma_license_key{font-size:14px;height:50px;transition:.3s ease;width:100%}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form .wps-wrael-form-table input#wps_rma_license_key:hover{border-color:#000}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form .wps-wrael-form-table input#wps_rma_license_key:focus{border-color:#2196f3;box-shadow:none;outline:none}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form #wps_rma_license_activation_status{font-weight:600;padding:0 10px}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form button{background-color:#163062;border:1px solid #163062;font-weight:600;height:40px;letter-spacing:1.5px;text-transform:uppercase;transition:.5s ease;width:100%}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form button:hover{background-color:#fff;color:#163062}.wps-wrael-wrap .wps_rma_license_text #wps_rma_license_form button:focus{box-shadow:none;outline:none}.dataTables_wrapper{padding:20px 10px}.dataTables_wrapper .dataTable{border-bottom:1px solid rgba(33,33,33,.08)!important}.dataTables_wrapper .dataTable thead{text-align:left}.dataTables_wrapper .dataTable thead th{border-bottom:1px solid rgba(33,33,33,.08);font-family:NunitoSans-SemiBold!important;font-size:16px!important;font-weight:400;letter-spacing:.25px;line-height:24px;padding:15px}.dataTables_wrapper .dataTable tr,.dataTables_wrapper .dataTable tr td{background-color:#fff!important}.dataTables_wrapper .wps-dt-buttons{align-items:center;display:flex;justify-content:flex-end}.dataTables_wrapper .wps-dt-buttons .dt-buttons{margin:0 10px}.dataTables_wrapper .wps-dt-buttons .dt-buttons .dt-button{background-color:#fff;border:1px solid #c7c7c7;border-radius:2px;padding:5px 10px;transition:.5s ease}.dataTables_wrapper .wps-dt-buttons .dt-buttons .dt-button:hover{background:#efefef;cursor:pointer}.dataTables_wrapper .bottom{display:flex;flex-wrap:wrap;justify-content:flex-end;margin:10px 0}.dataTables_wrapper .bottom .dataTables_length{font-family:NunitoSans-SemiBold;font-size:14px;font-weight:400;letter-spacing:.25px;margin-right:14px}.dataTables_wrapper .bottom .dataTables_length select{margin:0 25px;min-width:90px;padding:5px 30px 5px 15px!important}.dataTables_wrapper .bottom .dataTables_info{font-family:NunitoSans-SemiBold;font-size:14px;font-weight:400;letter-spacing:.25px;margin-right:5px}.dataTables_wrapper .bottom .dataTables_paginate{padding:0}.dataTables_wrapper .bottom .dataTables_paginate span .paginate_button{display:none!important}.dataTables_wrapper .bottom .dataTables_paginate .paginate_button{display:inline-block}.dataTables_wrapper .bottom .dataTables_paginate .paginate_button:hover{background:#f4f4f4!important;cursor:pointer!important}#add_more_rma_policies_clone{display:none}.wps-form-group__breaker{background-color:#e5f4fe;color:#2196f3;margin-bottom:30px;margin-left:-32px;margin-right:-32px;padding:15px 0 15px 30px;text-transform:uppercase}#save_policies_setting_form input,#save_policies_setting_form select{margin-left:0}#save_policies_setting_form input[type=date],#save_policies_setting_form input[type=datetime-local],#save_policies_setting_form input[type=datetime],#save_policies_setting_form input[type=email],#save_policies_setting_form input[type=month],#save_policies_setting_form input[type=number],#save_policies_setting_form input[type=password],#save_policies_setting_form input[type=search],#save_policies_setting_form input[type=tel],#save_policies_setting_form input[type=text],#save_policies_setting_form input[type=time],#save_policies_setting_form input[type=url],#save_policies_setting_form input[type=week]{max-height:50px;padding:10px 15px}#save_policies_setting_form select{max-height:50px;min-height:50px}#save_policies_setting_form .add_more_rma_policies{padding-bottom:20px}#save_policies_setting_form .add_more_rma_policies:last-child{padding-bottom:0}.add_more_rma_policies input,.add_more_rma_policies label,.add_more_rma_policies select,.add_more_rma_policies select+span{margin-right:30px}.admin-bar #save_policies_setting_form #wps_rma_add_more,.admin-bar #save_policies_setting_form .wps_rma_save_settings{background:#2196f3;border:none;border-radius:100px;color:#fff;display:inline-block;font-size:14px;letter-spacing:.25px;line-height:16px;padding:16px 25px;text-transform:uppercase}.admin-bar #save_policies_setting_form input.wps_rma_save_settings{margin-left:10px}.admin-bar #save_policies_setting_form .wps_rma_policy_condition{min-width:180px}.admin-bar #save_policies_setting_form input.rma_policy_delete{background-color:transparent;border:1px solid rgba(0,0,0,.38);border-radius:3px}#save_policies_setting_form .select2-selection--multiple input[type=search]{padding:0}#save_policies_setting_form .select2-container .select2-selection--multiple{min-height:50px}#save_policies_setting_form .select2.select2-container.select2-container--default,#save_policies_setting_form .wps_rma_tax_handling,#save_policies_setting_form input.wps_rma_max_number_days{max-width:180px;min-width:180px}.wps-wrael-gen-section-form .mdc-text-field+.mdc-text-field-helper-line,.wps-wrael-gen-section-form .wps-form-group .wps-form-group__control .wps-form-select .mdl-textfield__label{padding-left:0;padding-top:5px}#adminmenuwrap .dashicons-before img{height:auto;width:26px}#adminmenuwrap #adminmenu .submenu-font-size-fix{font-size:11px}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card{text-align:center}.wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item .wps-overview__keywords-card .wps-overview__keywords-text .wps-overview__keywords-heading{font-size:22px;line-height:32px}.wps-form-group__breaker{font-size:25px}.wps_admin_order_msg_history_title .wps_order_heading .reload-icon{width:30px}.thumb img{width:50px}.toplevel_page_wps-plugins div img{width:20px!important}@media (max-width:768px){.wps-header-container{justify-content:flex-start}.wps-header-container .wps-header-title{max-width:100%}.wps-header-container .wps-link{margin-top:15px}.wps-header-container span{margin:15px 5px 0}.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{flex:0 0 100%;max-width:100%}}@media (max-width:992px){.wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{flex:0 0 50%;max-width:50%}}@media only screen and (max-width:1140px){.add_more_rma_policies input,.add_more_rma_policies label,.add_more_rma_policies select,span.select2.select2-container.select2-container--default{margin-top:8px}}@media only screen and (max-width:520px){.wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords{flex-direction:column}.wps-section .wps-overview__wrapper .wps-overview__content .wps-overview__keywords .wps-overview__keywords-item{flex:0 0 100%;max-width:100%}} \ No newline at end of file diff --git a/admin/css/wps-order-edit-page-lite.scss.css b/admin/css/wps-order-edit-page-lite.scss.css new file mode 100755 index 0000000..f2e0646 --- /dev/null +++ b/admin/css/wps-order-edit-page-lite.scss.css @@ -0,0 +1,253 @@ +/*BACKEND CSS*/ +/*common-css*/ +.wps_rma_flex { + display: flex; + flex-wrap: wrap; +} + +/*Edit order page*/ +#wps_rma_order_refund #wps_rma_return_meta_wrapper td { + width: 20%; + text-align: center; + border-bottom: 1px solid #eeeeee; + padding: 10px 0; +} + +#wps_rma_return_meta_wrapper > table > thead > tr > th { + padding-bottom: 10px; + border-bottom: 1px solid #eeeeee; +} + +#wps_rma_order_refund #wps_rma_return_meta_wrapper td img { + width: 80px; + height: auto; +} + +#wps_rma_return_meta_wrapper > table { + width: 100%; +} + +.wps_rma_refund_pd-top { + padding-top: 10px; +} + +/*wps_rma_order_msg_history*/ +#wps_rma_order_msg_history .wps_reload_messages { + display: inline-block; + width: 16px; + margin-left: 10px; + vertical-align: middle; +} + +#wps_rma_order_msg_history .wps_reload_messages img { + width: 100%; +} + +.wps_admin_order_msg_history_container { + padding: 15px; + border: solid darkgrey 1px; + overflow-y: auto; + max-height: 400px; + min-height: 110px; +} + +.wps-order-msg__row { + margin-bottom: 30px; + border: 1px solid #dddddd; + padding-top: 27px; + padding-right: 27px; + padding-left: 0; + padding-bottom: 27px; + width: auto; + word-wrap: break-word; +} + +.wps_order_messages .wps_order_msg_sender { + background-color: #4f62b9; + color: #ffffff; + display: inline-block; + font-size: 12pt; + font-weight: 600; + padding: 8px 52px 8px 30px; + position: relative; +} + +.wps_order_messages .wps_order_msg_sender:before { + position: absolute; + content: ""; + top: -11px; + right: 8px; + height: 100%; + background-color: transparent; + border-top: 22px solid #ffffff; + border-left: 22px solid transparent; + border-right: 22px solid transparent; + transform: rotate(90deg); +} + +.wps_order_messages_info { + justify-content: space-between; + align-items: center; +} + +span.wps_order_msg_date { + font-size: 16px; + display: block; + margin-top: 10px; + padding-left: 30px; + color: #1f1f1f; +} + +.wps-loader-icon { + -webkit-animation: spin 1s infinite linear; + animation: spin 1s infinite linear; + transition: all 0.3s; + transition-timing-function: ease-in; +} + +.wps_order_msg_detail_container { + padding: 20px 0 20px 30px; +} + +.wps_order_msg_attach_container { + padding-left: 30px; +} + +.wps_order_msg_attachments_title { + padding-bottom: 8px; +} + +.wps_rma_admin_order_msg_wrapper textarea { + width: 100%; + min-height: 230px; +} + +.wps_order_msg_notice_wrapper { + color: #fff; + border-radius: 5px; + display: none; + justify-content: space-between; + flex-wrap: wrap; + align-items: center; + padding: 5px 15px; + font-weight: 600; + margin-top: 30px; + background: #64CD83; +} + +.wps_order_msg_notice_wrapper p { + margin: 0px; + font-size: 16px; +} + +.wps_order_msg_notice_wrapper a { + color: #ffffff; + text-decoration: none; +} + +.wps-order-msg__attachment-lable { + margin-top: 15px; +} + +.wps-order-msg-attachment-wrapper { + justify-content: space-between; +} + +/*new-css*/ +.wps_order_msg_sub_container { + display: flex; + flex-wrap: wrap; +} + +.wps-order-msg__row { + width: 100%; +} + +.wmb-order-admin__msg-container .wps_order_msg_sender { + background-color: #71b02f; +} + +.wps_rma_order_msg_wrapper textarea { + width: 100%; +} + +#wps_order_msg_submit { + background: #374585; + border: 1px solid #374585; + color: #fff; + text-decoration: none; + font-size: 16px; + border-radius: 3px; +} + +/*media-query*/ +div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail { + border: 1px solid black; + border-radius: 3px; + max-width: 60px; + display: table; + margin-left: auto; + margin-right: auto; + padding: 5px; +} + +div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail { + margin-left: 0 !important; + margin-right: 0 !important; +} + +@media only screen and (max-width: 575px) { + .wps-order-msg__row { + max-width: 100%; + } + + .wps-order-msg__row:nth-child(2n-1), +.wps-order-msg__row:nth-child(2n) { + margin-right: 0; + } +} + +@media only screen and (max-width: 480px) { + .wps_order_messages_info { + flex-direction: column; + align-items: flex-start; + } + + span.wps_order_msg_date { + margin-top: 15px; + padding-left: 15px; + } + + .wps_order_msg_detail_container { + padding: 15px 0 15px 15px; + } + + .wps_order_msg_attach_container { + padding-left: 15px; + } + + .wps_order_messages .wps_order_msg_sender:before { + right: 7px; + } + + .wc-wp-version-gte-53 .select2-container .select2-search--inline .select2-search__field, +.woocommerce-feature-enabled-activity-panels .select2-container--default .select2-selection--multiple .select2-selection__rendered, +.select2-container--default .select2-selection--multiple .select2-selection__rendered li, +.woocommerce-feature-enabled-activity-panels span.select2-selection.select2-selection--multiple, +.woocommerce-feature-enabled-activity-panels span.selection, +.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .add_item_id, +.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .select2-container, +.woocommerce-feature-enabled-activity-panels select#grant_access_id { + width: 100% !important; + display: inline-block; + } + + .woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .add_item_id, +.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .select2-container { + width: 100% !important; + } + + .wp-admin .wps-order-msg-btn { + margin-top: 20px; + } +} \ No newline at end of file diff --git a/admin/css/wps-order-edit-page-lite.scss.min.css b/admin/css/wps-order-edit-page-lite.scss.min.css new file mode 100755 index 0000000..faaa952 --- /dev/null +++ b/admin/css/wps-order-edit-page-lite.scss.min.css @@ -0,0 +1 @@ +.wps_rma_flex{display:flex;flex-wrap:wrap}#wps_rma_order_refund #wps_rma_return_meta_wrapper td{border-bottom:1px solid #eee;padding:10px 0;text-align:center;width:20%}#wps_rma_return_meta_wrapper>table>thead>tr>th{border-bottom:1px solid #eee;padding-bottom:10px}#wps_rma_order_refund #wps_rma_return_meta_wrapper td img{height:auto;width:80px}#wps_rma_return_meta_wrapper>table{width:100%}.wps_rma_refund_pd-top{padding-top:10px}#wps_rma_order_msg_history .wps_reload_messages{display:inline-block;margin-left:10px;vertical-align:middle;width:16px}#wps_rma_order_msg_history .wps_reload_messages img{width:100%}.wps_admin_order_msg_history_container{border:1px solid #a9a9a9;max-height:400px;min-height:110px;overflow-y:auto;padding:15px}.wps-order-msg__row{word-wrap:break-word;border:1px solid #ddd;margin-bottom:30px;padding:27px 27px 27px 0;width:auto}.wps_order_messages .wps_order_msg_sender{background-color:#4f62b9;color:#fff;display:inline-block;font-size:12pt;font-weight:600;padding:8px 52px 8px 30px;position:relative}.wps_order_messages .wps_order_msg_sender:before{background-color:transparent;border-left:22px solid transparent;border-right:22px solid transparent;border-top:22px solid #fff;content:"";height:100%;position:absolute;right:8px;top:-11px;transform:rotate(90deg)}.wps_order_messages_info{align-items:center;justify-content:space-between}span.wps_order_msg_date{color:#1f1f1f;display:block;font-size:16px;margin-top:10px;padding-left:30px}.wps-loader-icon{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;transition:all .3s;transition-timing-function:ease-in}.wps_order_msg_detail_container{padding:20px 0 20px 30px}.wps_order_msg_attach_container{padding-left:30px}.wps_order_msg_attachments_title{padding-bottom:8px}.wps_rma_admin_order_msg_wrapper textarea{min-height:230px;width:100%}.wps_order_msg_notice_wrapper{align-items:center;background:#64cd83;border-radius:5px;color:#fff;display:none;flex-wrap:wrap;font-weight:600;justify-content:space-between;margin-top:30px;padding:5px 15px}.wps_order_msg_notice_wrapper p{font-size:16px;margin:0}.wps_order_msg_notice_wrapper a{color:#fff;text-decoration:none}.wps-order-msg__attachment-lable{margin-top:15px}.wps-order-msg-attachment-wrapper{justify-content:space-between}.wps_order_msg_sub_container{display:flex;flex-wrap:wrap}.wps-order-msg__row{width:100%}.wmb-order-admin__msg-container .wps_order_msg_sender{background-color:#71b02f}.wps_rma_order_msg_wrapper textarea{width:100%}#wps_order_msg_submit{background:#374585;border:1px solid #374585;border-radius:3px;color:#fff;font-size:16px;text-decoration:none}div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail{border:1px solid #000;border-radius:3px;display:table;margin-left:auto;margin-left:0!important;margin-right:auto;margin-right:0!important;max-width:60px;padding:5px}@media only screen and (max-width:575px){.wps-order-msg__row{max-width:100%}.wps-order-msg__row:nth-child(2n),.wps-order-msg__row:nth-child(2n-1){margin-right:0}}@media only screen and (max-width:480px){.wps_order_messages_info{align-items:flex-start;flex-direction:column}span.wps_order_msg_date{margin-top:15px;padding-left:15px}.wps_order_msg_detail_container{padding:15px 0 15px 15px}.wps_order_msg_attach_container{padding-left:15px}.wps_order_messages .wps_order_msg_sender:before{right:7px}.select2-container--default .select2-selection--multiple .select2-selection__rendered li,.wc-wp-version-gte-53 .select2-container .select2-search--inline .select2-search__field,.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .add_item_id,.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .select2-container,.woocommerce-feature-enabled-activity-panels .select2-container--default .select2-selection--multiple .select2-selection__rendered,.woocommerce-feature-enabled-activity-panels select#grant_access_id,.woocommerce-feature-enabled-activity-panels span.select2-selection.select2-selection--multiple,.woocommerce-feature-enabled-activity-panels span.selection{display:inline-block;width:100%!important}.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .add_item_id,.woocommerce-feature-enabled-activity-panels #woocommerce-order-downloads .buttons .select2-container{width:100%!important}.wp-admin .wps-order-msg-btn{margin-top:20px}} \ No newline at end of file diff --git a/admin/image/Demo.svg b/admin/image/Demo.svg old mode 100755 new mode 100644 diff --git a/admin/image/Documentation.svg b/admin/image/Documentation.svg old mode 100755 new mode 100644 index 117ec44..7ef88fa --- a/admin/image/Documentation.svg +++ b/admin/image/Documentation.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/admin/image/Support.svg b/admin/image/Support.svg old mode 100755 new mode 100644 index 17ee8f1..89331c9 --- a/admin/image/Support.svg +++ b/admin/image/Support.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/src/back-end/scss/wps-order-edit-page-lite.scss b/assets/src/back-end/scss/wps-order-edit-page-lite.scss index 3a8565c..e21d6ae 100755 --- a/assets/src/back-end/scss/wps-order-edit-page-lite.scss +++ b/assets/src/back-end/scss/wps-order-edit-page-lite.scss @@ -139,14 +139,14 @@ span.wps_order_msg_date { } .wps-order-msg__row { width: 100%; - max-width: calc(50% - 40px); -} -.wps-order-msg__row:nth-child(2n-1) { - margin-right: 10px; -} -.wps-order-msg__row:nth-child(2n) { - margin-left: 10px; -} + // max-width: calc(50% - 40px); +} +// .wps-order-msg__row:nth-child(2n-1) { +// margin-right: 10px; +// } +// .wps-order-msg__row:nth-child(2n) { +// margin-left: 10px; +// } .wmb-order-admin__msg-container .wps_order_msg_sender { background-color: #71b02f; } diff --git a/assets/src/front-end/scss/main.scss b/assets/src/front-end/scss/main.scss index a530f13..aa4df57 100755 --- a/assets/src/front-end/scss/main.scss +++ b/assets/src/front-end/scss/main.scss @@ -320,13 +320,6 @@ a.wps_order_send_msg_dismiss{ } .wps-order-msg__row { width: 100%; - max-width: calc(50% - 10px); -} -.wps-order-msg__row:nth-child(2n-1) { - margin-right: 10px; -} -.wps-order-msg__row:nth-child(2n) { - margin-left: 10px; } .wmb-order-admin__msg-container .wps_order_msg_sender { background-color: #71b02f; diff --git a/public/css/woo-refund-and-exchange-lite-public.css b/public/css/woo-refund-and-exchange-lite-public.css index 88d27e4..a46d681 100755 --- a/public/css/woo-refund-and-exchange-lite-public.css +++ b/public/css/woo-refund-and-exchange-lite-public.css @@ -406,15 +406,6 @@ a.wps_order_send_msg_dismiss { .wps-order-msg__row { width: 100%; - max-width: calc(50% - 10px); -} - -.wps-order-msg__row:nth-child(2n-1) { - margin-right: 10px; -} - -.wps-order-msg__row:nth-child(2n) { - margin-left: 10px; } .wmb-order-admin__msg-container .wps_order_msg_sender { diff --git a/public/css/woo-refund-and-exchange-lite-public.min.css b/public/css/woo-refund-and-exchange-lite-public.min.css index aef218c..a2b7ded 100755 --- a/public/css/woo-refund-and-exchange-lite-public.min.css +++ b/public/css/woo-refund-and-exchange-lite-public.min.css @@ -1 +1 @@ -*,:after,:before{box-sizing:border-box}.wps_order_msg_history_container .wps_reload_messages .reload-icon{margin-left:10px;width:25px}.wps_order_msg_sub_container{border:1px solid #ccc;max-height:400px;min-height:200px;overflow-y:auto;padding:30px}*,:after,:before{box-sizing:border-box}.wps-rma-form__wrapper .input-text,.wps-rma-form__wrapper input[type=email],.wps-rma-form__wrapper input[type=number],.wps-rma-form__wrapper input[type=password],.wps-rma-form__wrapper input[type=search],.wps-rma-form__wrapper input[type=tel],.wps-rma-form__wrapper input[type=text],.wps-rma-form__wrapper input[type=url],.wps-rma-form__wrapper textarea{background-color:transparent!important;border:1px solid #ccc!important;box-shadow:none!important;padding:10px 14px}.input-text:focus,.wps-rma-form__wrapper a:focus,.wps-rma-form__wrapper input[type=email]:focus,.wps-rma-form__wrapper input[type=number]:focus,.wps-rma-form__wrapper input[type=search]:focus,.wps-rma-form__wrapper input[type=tel]:focus,.wps-rma-form__wrapper input[type=text]:focus,.wps-rma-form__wrapper input[type=url]:focus,.wps-rma-form__wrapper textarea:focus,.wps_order_msg_sub_container input[type=password]:focus{outline:none!important}.wps-rma-form__wrapper label{display:inline-block;line-height:1.2;margin-bottom:8px}.wps-rma-form__wrapper h4{font-size:18px!important}.wps-rma-form__wrapper .wps_rma_flex{display:flex;flex-wrap:wrap}.wps-rma-form__wrapper select{padding:10px 14px}.wps_rma_refund_form_wrapper .input-text:focus,.wps_rma_refund_form_wrapper input[type=email]:focus,.wps_rma_refund_form_wrapper input[type=number]:focus,.wps_rma_refund_form_wrapper input[type=password]:focus,.wps_rma_refund_form_wrapper input[type=search]:focus,.wps_rma_refund_form_wrapper input[type=tel]:focus,.wps_rma_refund_form_wrapper input[type=text]:focus,.wps_rma_refund_form_wrapper input[type=url]:focus,.wps_rma_refund_form_wrapper textarea:focus{background-color:transparent}.wps_rma_refund_form_wrapper .wps-rma-subject__dropdown select{border-radius:0;padding:5px 105px 5px 5px;width:100%}.wps_rma_refund_form_wrapper .wps_rma_other_subject input{width:100%}.wps-rma-product__table{border-collapse:collapse;min-width:665px;width:100%}.wps-rma-form__wrapper h2.woocommerce-column__title{font-weight:600}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject:focus-visible{outline:none}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject option{box-shadow:none}.wps-rma-product__table-wrapper{overflow-x:auto;padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_product_title{padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_refund_request__row{justify-content:space-between}.wps_rma_refund_form_wrapper .wps_rma__column{width:100%}.wps-rma-form__wrapper.wps-rma-form__wrapper{border:1px solid #333}.wps-rma-form__wrapper .wps-rma-form__header{background-color:#333}.wps-rma-form__wrapper .wps-rma-form__heading{color:#fff;font-size:24px;font-weight:500;margin-top:0;padding:10px 15px}.wps-rma-form__wrapper td,.wps-rma-form__wrapper th{border:1px solid #ccc;padding:15px;text-align:center;vertical-align:middle}.wps-rma-form__wrapper th{color:#333}.wps-rma-form__wrapper .wps-rma-product__wrap{align-items:center;display:flex;justify-content:center}.wps-rma-form__wrapper .wps-rma__product-title{margin-left:20px;text-align:left}.wps-rma-product__table tbody td,fieldset,fieldset legend,table.wps-rma-product__table:not(.has-background) tbody td,table.wps-rma-product__table:not(.has-background) tbody tr:nth-child(2n) td{background-color:#fff}.wps-rma-form__wrapper .wps-rma-row__pd{padding:0 15px}.wps-rma-form__wrapper .wps-rma-col{width:100%}.wps-rma-form__wrapper .wps-rma-col.wps_rma_flex{justify-content:flex-start}.wps-rma-form__wrapper .wps_rma_other_subject{margin:25px 0}.wps_rma_attach_files{margin-top:10px}.wps-rma-subject__dropdown{margin-top:25px}.wps-rma-form__wrapper textarea{width:100%}.wps-rma-form__wrapper .product-quantity input{height:48px;margin:0 auto;width:197px}.wps-rma-form__wrapper td:last-child,.wps-rma-form__wrapper th:last-child{padding-right:15px}.wps-rma-form__wrapper td.product-total{text-align:center}.wps-order-msg-attachment-wrapper{align-items:center;justify-content:space-between;margin-top:20px}.wps-order-attachment input#wps_order_msg_attachment{max-width:230px}#wps_order_msg_submit{background:#374585;border:1px solid #374585;border-radius:3px;color:#fff;cursor:pointer;font-size:16px;margin:0;padding:6px 30px;text-decoration:none}form#wps_order_new_msg_form{margin-bottom:40px}.wps_rma_order_msg_wrapper .wps-order-msg-attachment-wrapper label{color:#000}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex{align-items:center}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex a{margin-left:20px;width:18px}.wps-order-msg__row{word-wrap:break-word;background-color:#fff;border:1px solid #ddd;margin-bottom:30px;padding:30px 30px 30px 0;width:auto}.wps_order_msg_sender{background-color:#4f62b9;color:#fff;display:inline-block;font-size:18px;font-weight:600;line-height:1.8;padding:8px 52px 8px 30px;position:relative}span.wps_order_msg_sender:after{background-color:transparent;border-left:24px solid transparent;border-right:24px solid transparent;border-top:24px solid #fff;content:"";height:100%;position:absolute;right:0;top:0;transform:rotate(90deg);width:0}.wps_order_msg_date{color:#1f1f1f;display:block;margin-top:10px;padding-left:30px}.wps_order_msg_attach_container{padding-left:30px}.wps_order_msg_detail_container{padding:20px 0 20px 30px}img.wps_order_msg_attachment_thumbnail{padding-bottom:8px;padding-top:8px}.wps_rma_order_msg_wrapper h4{background-color:#dadada;color:#1f1f1f!important;font-weight:600!important;line-height:1.6;padding:7px 15px}.wps-order-attachment input:focus{outline:none}.wps-order-msg__row{border-color:#ddd}.wps-order-msg__row:last-child{margin-bottom:0}.wps_order_msg_notice_wrapper,.wps_order_msg_sender_details.wps_rma_flex{align-items:center;justify-content:space-between}.wps_order_msg_notice_wrapper{border-radius:5px;color:#fff;display:none;flex-wrap:wrap;font-weight:600;margin-bottom:20px;padding:5px 15px}.wps_order_msg_notice_wrapper p{color:#fff;margin-bottom:0}a.wps_order_send_msg_dismiss{color:#fff;font-size:16px;font-weight:700}.wps_order_msg_sent_notice{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wps-loader-icon{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;transition:all .3s;transition-timing-function:ease-in}.wps_order_msg_sub_container{display:flex;flex-wrap:wrap}.wps-order-msg__row{max-width:calc(50% - 10px);width:100%}.wps-order-msg__row:nth-child(2n-1){margin-right:10px}.wps-order-msg__row:nth-child(2n){margin-left:10px}.wmb-order-admin__msg-container .wps_order_msg_sender{background-color:#71b02f}.wps_rma_order_msg_wrapper textarea{width:100%}div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail{border:1px solid #000;border-radius:3px;display:table;margin-left:auto;margin-left:0!important;margin-right:auto;margin-right:0!important;max-width:60px;padding:5px}.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{color:green;display:none}.wps_rma_exchange_notification>img,.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{background-color:#000;bottom:0;height:100%;opacity:.5;padding:0;position:fixed;right:0;width:100%;z-index:99999}.wps_rma_return_notification_checkbox:after{background:hsla(0,0%,100%,.6) none repeat scroll 0 0;bottom:0;content:"";height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wps_rma_return_notification_checkbox img{left:0;margin:0 auto;position:absolute;right:0;text-align:center;top:50%;transform:translateY(-50%);z-index:99999999}.wps_rma_return_notification_checkbox{display:none}.return,.view_msg{margin-top:4px}.wps_rma_refund_request__row{padding:0 15px}.wps_rma_customer_detail{overflow:hidden;padding:30px 15px}@media only screen and (max-width:820px){.wps-order-msg__row{max-width:100%}.wps-order-msg__row:nth-child(2n),.wps-order-msg__row:nth-child(2n-1){margin-right:0}}@media only screen and (min-width:600px){.wps-rma-refund-request__row{display:flex;flex-wrap:nowrap}.wps-rma-form__wrapper .wps-rma-col:nth-child(2){padding-left:30px;width:60%}.wps_rma_refund_form_wrapper .wps_rma__column-right{justify-content:flex-end;margin-left:40px;max-width:calc(40% - 40px)}.wps-rma-form__wrapper .wps-rma-col:nth-child(2) p{margin-left:auto;max-width:220px}}@media only screen and (max-width:480px){.wps_order_msg_sub_container{padding:15px}.wps-order-msg__row{padding:15px 15px 15px 0}.wps_order_msg_detail_container{padding:15px 0 15px 15px}.wps_order_msg_attach_container{padding-left:15px}.wps-rma-form__wrapper textarea{height:150px!important}}@media only screen and (max-width:375px){.wps-order-msg-attachment-wrapper.wps_rma_flex{display:block}} \ No newline at end of file +*,:after,:before{box-sizing:border-box}.wps_order_msg_history_container .wps_reload_messages .reload-icon{margin-left:10px;width:25px}.wps_order_msg_sub_container{border:1px solid #ccc;max-height:400px;min-height:200px;overflow-y:auto;padding:30px}*,:after,:before{box-sizing:border-box}.wps-rma-form__wrapper .input-text,.wps-rma-form__wrapper input[type=email],.wps-rma-form__wrapper input[type=number],.wps-rma-form__wrapper input[type=password],.wps-rma-form__wrapper input[type=search],.wps-rma-form__wrapper input[type=tel],.wps-rma-form__wrapper input[type=text],.wps-rma-form__wrapper input[type=url],.wps-rma-form__wrapper textarea{background-color:transparent!important;border:1px solid #ccc!important;box-shadow:none!important;padding:10px 14px}.input-text:focus,.wps-rma-form__wrapper a:focus,.wps-rma-form__wrapper input[type=email]:focus,.wps-rma-form__wrapper input[type=number]:focus,.wps-rma-form__wrapper input[type=search]:focus,.wps-rma-form__wrapper input[type=tel]:focus,.wps-rma-form__wrapper input[type=text]:focus,.wps-rma-form__wrapper input[type=url]:focus,.wps-rma-form__wrapper textarea:focus,.wps_order_msg_sub_container input[type=password]:focus{outline:none!important}.wps-rma-form__wrapper label{display:inline-block;line-height:1.2;margin-bottom:8px}.wps-rma-form__wrapper h4{font-size:18px!important}.wps-rma-form__wrapper .wps_rma_flex{display:flex;flex-wrap:wrap}.wps-rma-form__wrapper select{padding:10px 14px}.wps_rma_refund_form_wrapper .input-text:focus,.wps_rma_refund_form_wrapper input[type=email]:focus,.wps_rma_refund_form_wrapper input[type=number]:focus,.wps_rma_refund_form_wrapper input[type=password]:focus,.wps_rma_refund_form_wrapper input[type=search]:focus,.wps_rma_refund_form_wrapper input[type=tel]:focus,.wps_rma_refund_form_wrapper input[type=text]:focus,.wps_rma_refund_form_wrapper input[type=url]:focus,.wps_rma_refund_form_wrapper textarea:focus{background-color:transparent}.wps_rma_refund_form_wrapper .wps-rma-subject__dropdown select{border-radius:0;padding:5px 105px 5px 5px;width:100%}.wps_rma_refund_form_wrapper .wps_rma_other_subject input{width:100%}.wps-rma-product__table{border-collapse:collapse;min-width:665px;width:100%}.wps-rma-form__wrapper h2.woocommerce-column__title{font-weight:600}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject:focus-visible{outline:none}.wps_rma_refund_form_wrapper select#wps_rma_return_request_subject option{box-shadow:none}.wps-rma-product__table-wrapper{overflow-x:auto;padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_product_title{padding:0 15px}.wps_rma_refund_form_wrapper .wps_rma_refund_request__row{justify-content:space-between}.wps_rma_refund_form_wrapper .wps_rma__column{width:100%}.wps-rma-form__wrapper.wps-rma-form__wrapper{border:1px solid #333}.wps-rma-form__wrapper .wps-rma-form__header{background-color:#333}.wps-rma-form__wrapper .wps-rma-form__heading{color:#fff;font-size:24px;font-weight:500;margin-top:0;padding:10px 15px}.wps-rma-form__wrapper td,.wps-rma-form__wrapper th{border:1px solid #ccc;padding:15px;text-align:center;vertical-align:middle}.wps-rma-form__wrapper th{color:#333}.wps-rma-form__wrapper .wps-rma-product__wrap{align-items:center;display:flex;justify-content:center}.wps-rma-form__wrapper .wps-rma__product-title{margin-left:20px;text-align:left}.wps-rma-product__table tbody td,fieldset,fieldset legend,table.wps-rma-product__table:not(.has-background) tbody td,table.wps-rma-product__table:not(.has-background) tbody tr:nth-child(2n) td{background-color:#fff}.wps-rma-form__wrapper .wps-rma-row__pd{padding:0 15px}.wps-rma-form__wrapper .wps-rma-col{width:100%}.wps-rma-form__wrapper .wps-rma-col.wps_rma_flex{justify-content:flex-start}.wps-rma-form__wrapper .wps_rma_other_subject{margin:25px 0}.wps_rma_attach_files{margin-top:10px}.wps-rma-subject__dropdown{margin-top:25px}.wps-rma-form__wrapper textarea{width:100%}.wps-rma-form__wrapper .product-quantity input{height:48px;margin:0 auto;width:197px}.wps-rma-form__wrapper td:last-child,.wps-rma-form__wrapper th:last-child{padding-right:15px}.wps-rma-form__wrapper td.product-total{text-align:center}.wps-order-msg-attachment-wrapper{align-items:center;justify-content:space-between;margin-top:20px}.wps-order-attachment input#wps_order_msg_attachment{max-width:230px}#wps_order_msg_submit{background:#374585;border:1px solid #374585;border-radius:3px;color:#fff;cursor:pointer;font-size:16px;margin:0;padding:6px 30px;text-decoration:none}form#wps_order_new_msg_form{margin-bottom:40px}.wps_rma_order_msg_wrapper .wps-order-msg-attachment-wrapper label{color:#000}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex{align-items:center}.wps_rma_order_msg_wrapper h4.wps-order-heading.wps_rma_flex a{margin-left:20px;width:18px}.wps-order-msg__row{word-wrap:break-word;background-color:#fff;border:1px solid #ddd;margin-bottom:30px;padding:30px 30px 30px 0;width:auto}.wps_order_msg_sender{background-color:#4f62b9;color:#fff;display:inline-block;font-size:18px;font-weight:600;line-height:1.8;padding:8px 52px 8px 30px;position:relative}span.wps_order_msg_sender:after{background-color:transparent;border-left:24px solid transparent;border-right:24px solid transparent;border-top:24px solid #fff;content:"";height:100%;position:absolute;right:0;top:0;transform:rotate(90deg);width:0}.wps_order_msg_date{color:#1f1f1f;display:block;margin-top:10px;padding-left:30px}.wps_order_msg_attach_container{padding-left:30px}.wps_order_msg_detail_container{padding:20px 0 20px 30px}img.wps_order_msg_attachment_thumbnail{padding-bottom:8px;padding-top:8px}.wps_rma_order_msg_wrapper h4{background-color:#dadada;color:#1f1f1f!important;font-weight:600!important;line-height:1.6;padding:7px 15px}.wps-order-attachment input:focus{outline:none}.wps-order-msg__row{border-color:#ddd}.wps-order-msg__row:last-child{margin-bottom:0}.wps_order_msg_notice_wrapper,.wps_order_msg_sender_details.wps_rma_flex{align-items:center;justify-content:space-between}.wps_order_msg_notice_wrapper{border-radius:5px;color:#fff;display:none;flex-wrap:wrap;font-weight:600;margin-bottom:20px;padding:5px 15px}.wps_order_msg_notice_wrapper p{color:#fff;margin-bottom:0}a.wps_order_send_msg_dismiss{color:#fff;font-size:16px;font-weight:700}.wps_order_msg_sent_notice{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wps-loader-icon{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;transition:all .3s;transition-timing-function:ease-in}.wps_order_msg_sub_container{display:flex;flex-wrap:wrap}.wps-order-msg__row{width:100%}.wmb-order-admin__msg-container .wps_order_msg_sender{background-color:#71b02f}.wps_rma_order_msg_wrapper textarea{width:100%}div.wps_order_msg_single_attachment a .wps_order_msg_attachment_thumbnail{border:1px solid #000;border-radius:3px;display:table;margin-left:auto;margin-left:0!important;margin-right:auto;margin-right:0!important;max-width:60px;padding:5px}.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{color:green;display:none}.wps_rma_exchange_notification>img,.wps_rma_return_notification>img{left:48%;position:absolute;top:45%;width:5%}.wps_rma_exchange_notification,.wps_rma_return_notification{background-color:#000;bottom:0;height:100%;opacity:.5;padding:0;position:fixed;right:0;width:100%;z-index:99999}.wps_rma_return_notification_checkbox:after{background:hsla(0,0%,100%,.6) none repeat scroll 0 0;bottom:0;content:"";height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wps_rma_return_notification_checkbox img{left:0;margin:0 auto;position:absolute;right:0;text-align:center;top:50%;transform:translateY(-50%);z-index:99999999}.wps_rma_return_notification_checkbox{display:none}.return,.view_msg{margin-top:4px}.wps_rma_refund_request__row{padding:0 15px}.wps_rma_customer_detail{overflow:hidden;padding:30px 15px}@media only screen and (max-width:820px){.wps-order-msg__row{max-width:100%}.wps-order-msg__row:nth-child(2n),.wps-order-msg__row:nth-child(2n-1){margin-right:0}}@media only screen and (min-width:600px){.wps-rma-refund-request__row{display:flex;flex-wrap:nowrap}.wps-rma-form__wrapper .wps-rma-col:nth-child(2){padding-left:30px;width:60%}.wps_rma_refund_form_wrapper .wps_rma__column-right{justify-content:flex-end;margin-left:40px;max-width:calc(40% - 40px)}.wps-rma-form__wrapper .wps-rma-col:nth-child(2) p{margin-left:auto;max-width:220px}}@media only screen and (max-width:480px){.wps_order_msg_sub_container{padding:15px}.wps-order-msg__row{padding:15px 15px 15px 0}.wps_order_msg_detail_container{padding:15px 0 15px 15px}.wps_order_msg_attach_container{padding-left:15px}.wps-rma-form__wrapper textarea{height:150px!important}}@media only screen and (max-width:375px){.wps-order-msg-attachment-wrapper.wps_rma_flex{display:block}} \ No newline at end of file diff --git a/woocommerce-refund-and-exchange-lite.php b/woocommerce-refund-and-exchange-lite.php index 095930c..891e293 100755 --- a/woocommerce-refund-and-exchange-lite.php +++ b/woocommerce-refund-and-exchange-lite.php @@ -14,7 +14,7 @@ * @wordpress-plugin * Plugin Name: Return Refund and Exchange for WooCommerce * Plugin URI: https://wordpress.org/plugins/woo-refund-and-exchange-lite/ - * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of WooCommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings + * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of WooCommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings * Version: 4.0.2 * Author: WP Swings * Author URI: https://wpswings.com/?utm_source=wpswings-official&utm_medium=rma-org-page&utm_campaign=wpswings-official @@ -204,6 +204,7 @@ function woo_refund_and_exchange_lite_settings_link( $links ) { */ function woo_refund_and_exchange_lite_custom_settings_at_plugin_tab( $links_array, $plugin_file_name ) { if ( strpos( $plugin_file_name, basename( __FILE__ ) ) ) { + $links_array[] = 'Demo image' . esc_html__( 'Demo', 'woo-refund-and-exchange-lite' ) . ''; $links_array[] = 'documentation image' . esc_html__( 'Documentation', 'woo-refund-and-exchange-lite' ) . ''; $links_array[] = 'support image' . esc_html__( 'Support', 'woo-refund-and-exchange-lite' ) . ''; } @@ -224,7 +225,7 @@ function wps_rma_lite_settings_link( $links ) { if ( ! is_plugin_active( 'woocommerce-rma-for-return-refund-and-exchange/mwb-woocommerce-rma.php' ) ) { - $links['goPro'] = '' . esc_html__( 'GO PREMIUM', 'woo-refund-and-exchange-lite' ) . ''; + $links['goPro'] = '' . esc_html__( 'GO PRO', 'woo-refund-and-exchange-lite' ) . ''; } return $links; From ee13db770c245d790983f08190767cee25a4f7a8 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Thu, 28 Apr 2022 10:43:26 +0530 Subject: [PATCH 09/17] phpcs-fixes --- admin/class-woo-refund-and-exchange-lite-admin.php | 3 +-- admin/partials/woo-refund-and-exchange-lite-incompatible.php | 1 - .../woo-refund-and-exchange-lite-refund-request-email.php | 2 +- emails/templates/wps-rma-refund-request-email-template.php | 2 +- .../class-woo-refund-and-exchange-lite-onboarding-steps.php | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 43f86e4..b544150 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -84,7 +84,6 @@ public function wrael_admin_enqueue_styles( $hook ) { wp_enqueue_style( 'wps-datatable-css', WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'package/lib/datatables/media/css/jquery.dataTables.min.css', array(), $this->version, 'all' ); } if ( isset( $screen->id ) && 'shop_order' === $screen->id ) { - // wp_enqueue_style( $this->plugin_name, WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'admin/css/woo-refund-and-exchange-lite-order-edit-page.min.css', array(), $this->version, 'all' ); wp_enqueue_style( $this->plugin_name, WOO_REFUND_AND_EXCHANGE_LITE_DIR_URL . 'admin/css/wps-order-edit-page-lite.scss.min.css', array(), $this->version, 'all' ); } } @@ -439,7 +438,7 @@ public function wrael_admin_save_tab_settings() { $setting = sanitize_text_field( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ); $setting = trim( preg_replace( '/\s\s+/', ' ', $setting ) ); } - if ( 'wps_rma_refund_rules_editor' === $wrael_genaral_setting['id'] ) { + if ( 'wps_rma_refund_rules_editor' === $wrael_genaral_setting['id'] ) { update_option( 'wps_rma_refund_rules_editor', wp_kses_post( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) ); } elseif ( 'wps_rma_refund_form_css' === $wrael_genaral_setting['id'] ) { update_option( 'wps_rma_refund_form_css', wp_kses_post( wp_unslash( $_POST[ $wrael_genaral_setting['id'] ] ) ) ); diff --git a/admin/partials/woo-refund-and-exchange-lite-incompatible.php b/admin/partials/woo-refund-and-exchange-lite-incompatible.php index 58103b7..3dcc1dd 100644 --- a/admin/partials/woo-refund-and-exchange-lite-incompatible.php +++ b/admin/partials/woo-refund-and-exchange-lite-incompatible.php @@ -38,4 +38,3 @@ wp_enqueue_script( 'wps_rma_incompatible_css' ); wp_add_inline_script( 'wps_rma_incompatible_css', $wps_par_global_custom_css ); } -?> diff --git a/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php b/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php index bd0a6e0..cdc9a4f 100755 --- a/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php +++ b/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php @@ -112,7 +112,7 @@ '; $attachment = array(); -$to = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); +$to = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); $admin_email = WC()->mailer()->emails['wps_rma_refund_request_email']; $restrict_mail1 = apply_filters( 'wps_rma_restrict_refund_request_user_mail', true ); $restrict_mail2 = apply_filters( 'wps_rma_restrict_refund_request_admin_mail', true ); diff --git a/emails/templates/wps-rma-refund-request-email-template.php b/emails/templates/wps-rma-refund-request-email-template.php index 761ff38..86727d9 100755 --- a/emails/templates/wps-rma-refund-request-email-template.php +++ b/emails/templates/wps-rma-refund-request-email-template.php @@ -14,7 +14,7 @@ do_action( 'woocommerce_email_header', $email_heading, $email ); $message = $msg; -$admin_mail = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); +$admin_mail = get_option( 'woocommerce_email_from_address', get_option( 'admin_email' ) ); if ( $to === $admin_mail && ( ! empty( $additional_content ) || empty( $additional_content ) ) ) { echo wp_kses_post( $message ); } else { diff --git a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php index 0f01f62..eb18e5d 100755 --- a/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php +++ b/includes/class-woo-refund-and-exchange-lite-onboarding-steps.php @@ -677,7 +677,7 @@ protected function wps_rma_hubwoo_submit_form( $form_data = array(), $action_typ $form_id = self::$wps_rma_deactivation_form_id; } - $url = 'submissions/v3/integration/submit/' . self::$wps_rma_portal_id . '/' . $form_id; + $url = 'submissions/v3/integration/submit/' . self::$wps_rma_portal_id . '/' . $form_id; $headers = 'Content-Type: application/json'; From 1b4732d413ed3864da55f2144248703ce9303df7 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Thu, 28 Apr 2022 12:07:28 +0530 Subject: [PATCH 10/17] links-update --- woocommerce-refund-and-exchange-lite.php | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/woocommerce-refund-and-exchange-lite.php b/woocommerce-refund-and-exchange-lite.php index 891e293..8f5883b 100755 --- a/woocommerce-refund-and-exchange-lite.php +++ b/woocommerce-refund-and-exchange-lite.php @@ -17,7 +17,7 @@ * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of WooCommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings * Version: 4.0.2 * Author: WP Swings - * Author URI: https://wpswings.com/?utm_source=wpswings-official&utm_medium=rma-org-page&utm_campaign=wpswings-official + * Author URI: https://wpswings.com/?utm_source=wpswings-rma-official&utm_medium=rma-org-backend&utm_campaign=official * Text Domain: woo-refund-and-exchange-lite * Domain Path: /languages * @@ -179,22 +179,6 @@ function run_woo_refund_and_exchange_lite() { } run_woo_refund_and_exchange_lite(); - // Add settings link on plugin page. - add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'woo_refund_and_exchange_lite_settings_link' ); - - /** - * Settings link. - * - * @since 1.0.0 - * @param Array $links Settings link array. - */ - function woo_refund_and_exchange_lite_settings_link( $links ) { - $my_link = array( - '' . esc_html__( 'Settings', 'woo-refund-and-exchange-lite' ) . '', - ); - return array_merge( $my_link, $links ); - } - /** * Adding custom setting links at the plugin activation list. * @@ -204,7 +188,7 @@ function woo_refund_and_exchange_lite_settings_link( $links ) { */ function woo_refund_and_exchange_lite_custom_settings_at_plugin_tab( $links_array, $plugin_file_name ) { if ( strpos( $plugin_file_name, basename( __FILE__ ) ) ) { - $links_array[] = 'Demo image' . esc_html__( 'Demo', 'woo-refund-and-exchange-lite' ) . ''; + $links_array[] = 'Demo image' . esc_html__( 'Demo', 'woo-refund-and-exchange-lite' ) . ''; $links_array[] = 'documentation image' . esc_html__( 'Documentation', 'woo-refund-and-exchange-lite' ) . ''; $links_array[] = 'support image' . esc_html__( 'Support', 'woo-refund-and-exchange-lite' ) . ''; } @@ -227,6 +211,7 @@ function wps_rma_lite_settings_link( $links ) { $links['goPro'] = '' . esc_html__( 'GO PRO', 'woo-refund-and-exchange-lite' ) . ''; } + $links['setting'] = '' . esc_html__( 'Settings', 'woo-refund-and-exchange-lite' ) . ''; return $links; } From 2369eddae48f76e318d596da8a1fe6bdeef51bd0 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Thu, 28 Apr 2022 15:40:49 +0530 Subject: [PATCH 11/17] submenu-fixes --- ...ass-woo-refund-and-exchange-lite-admin.php | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index b544150..6fdc8db 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1204,9 +1204,6 @@ public function wps_rma_lite_upgrade_notice1() { /** Add submenu in woocommerce setting */ public function wps_rma_lite_admin_menus() { - - global $submenu; - $permalink = admin_url( 'admin.php?page=woo_refund_and_exchange_lite_menu' ); // phpcs:disable $active_plugins = get_option( 'active_plugins', array() ); $setting_name = ''; @@ -1215,14 +1212,22 @@ public function wps_rma_lite_admin_menus() { } else { $setting_name = __( 'Refund-Exchange Lite', 'woo-refund-and-exchange-lite' ); } - $submenu['woocommerce'][] = array( - '
' . $setting_name . '
', - 'manage_options', - $permalink, - ); + add_submenu_page( 'woocommerce', $setting_name, $setting_name, 'manage_options', 'woo-refund-and-exchange-lite', array( $this, 'wps_rma_addsubmenu_woocommerce' ) ); // phpcs:enable } + /** + * This function is used to add submenu of subscription inside woocommerce. + * + * @since 1.2.0 + * @return void + */ + public function wps_rma_addsubmenu_woocommerce() { + $permalink = admin_url( 'admin.php?page=woo_refund_and_exchange_lite_menu' ); + wp_safe_redirect( $permalink ); + exit; + } + /** * Migration to new domain notice. * From 1bbdceda42d96140142b07e5b6944141cdb840f2 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Sat, 30 Apr 2022 10:03:15 +0530 Subject: [PATCH 12/17] changes --- admin/class-woo-refund-and-exchange-lite-admin.php | 6 +++--- admin/image/Demo.svg | 2 +- .../css/woo-refund-and-exchange-lite-onboarding.css | 8 +++++++- public/partials/wps-rma-refund-request-form.php | 6 +++--- woocommerce-refund-and-exchange-lite.php | 2 +- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 6fdc8db..e71156b 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1154,10 +1154,10 @@ public function wps_rma_get_count( $status = 'all', $action = 'count', $type = f if ( empty( $sql ) ) { return 0; } - + // phpcs:disable global $wpdb; - $result = $wpdb->get_results( $sql, ARRAY_A ); // @codingStandardsIgnoreLine. - + $result = $wpdb->get_results( $sql, ARRAY_A ); + // phpcs:enable if ( 'count' === $action ) { $result = ! empty( $result ) ? count( $result ) : 0; } diff --git a/admin/image/Demo.svg b/admin/image/Demo.svg index d05907f..d3d0a31 100644 --- a/admin/image/Demo.svg +++ b/admin/image/Demo.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/onboarding/css/woo-refund-and-exchange-lite-onboarding.css b/onboarding/css/woo-refund-and-exchange-lite-onboarding.css index 9ebfab8..86094e5 100755 --- a/onboarding/css/woo-refund-and-exchange-lite-onboarding.css +++ b/onboarding/css/woo-refund-and-exchange-lite-onboarding.css @@ -466,4 +466,10 @@ input#s2id_autogen1 { } -/*===== End of MEDIA QUERIES ======*/ \ No newline at end of file +/*===== End of MEDIA QUERIES ======*/ + +.wps-info-img{ + margin-right: 6px; + margin-top: -3px; + max-width: 15px; +} \ No newline at end of file diff --git a/public/partials/wps-rma-refund-request-form.php b/public/partials/wps-rma-refund-request-form.php index 53fa1a7..e15100c 100755 --- a/public/partials/wps-rma-refund-request-form.php +++ b/public/partials/wps-rma-refund-request-form.php @@ -136,8 +136,8 @@ $wps_actual_price = $tax_exc; } $wps_total_actual_price += $wps_actual_price * $item_qty; - - $purchase_note = get_post_meta( $product_id, '_purchase_note', true ); + $price = apply_filters( 'formatted_woocommerce_price', number_format( $wps_actual_price / $item->get_quantity(), wc_get_price_decimals(), wc_get_price_decimal_separator(), wc_get_price_thousand_separator() ), $wps_actual_price / $item->get_quantity(), wc_get_price_decimals(), wc_get_price_decimal_separator(), wc_get_price_thousand_separator() ); + $purchase_note = get_post_meta( $product_id, '_purchase_note', true ); ?> - +
is_visible(); diff --git a/woocommerce-refund-and-exchange-lite.php b/woocommerce-refund-and-exchange-lite.php index 8f5883b..50bb1b8 100755 --- a/woocommerce-refund-and-exchange-lite.php +++ b/woocommerce-refund-and-exchange-lite.php @@ -14,7 +14,7 @@ * @wordpress-plugin * Plugin Name: Return Refund and Exchange for WooCommerce * Plugin URI: https://wordpress.org/plugins/woo-refund-and-exchange-lite/ - * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of WooCommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings + * Description: Return Refund and Exchange for WooCommerce allows users to submit product refund. The plugin provides a dedicated mailing system that would help to communicate better between store owner and customers.This is lite version of WooCommerce Refund And Exchange. Elevate your e-commerce store by exploring more on WP Swings * Version: 4.0.2 * Author: WP Swings * Author URI: https://wpswings.com/?utm_source=wpswings-rma-official&utm_medium=rma-org-backend&utm_campaign=official From 9aae8935913b0e602bdeec20e385c12dad84d59d Mon Sep 17 00:00:00 2001 From: mohddanish Date: Mon, 2 May 2022 13:07:39 +0530 Subject: [PATCH 13/17] phpcs-ignore --- admin/class-woo-refund-and-exchange-lite-admin.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index e71156b..1d9520a 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1154,10 +1154,11 @@ public function wps_rma_get_count( $status = 'all', $action = 'count', $type = f if ( empty( $sql ) ) { return 0; } - // phpcs:disable + global $wpdb; - $result = $wpdb->get_results( $sql, ARRAY_A ); - // phpcs:enable + + $result = $wpdb->get_results( $sql, ARRAY_A ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery + if ( 'count' === $action ) { $result = ! empty( $result ) ? count( $result ) : 0; } From 98a8dcf1e169c42f9f278804d4cbdb9084052b8e Mon Sep 17 00:00:00 2001 From: mohddanish Date: Mon, 2 May 2022 15:02:31 +0530 Subject: [PATCH 14/17] phpcs-fixes --- admin/class-woo-refund-and-exchange-lite-admin.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 1d9520a..fb3a7ed 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1157,7 +1157,14 @@ public function wps_rma_get_count( $status = 'all', $action = 'count', $type = f global $wpdb; - $result = $wpdb->get_results( $sql, ARRAY_A ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery + wp_cache_delete( 'wps_rma_migration_keys' ); + + if ( empty( wp_cache_get( 'wps_rma_migration_keys' ) ) ) { + + $result = $wpdb->get_results( $sql, ARRAY_A ); // phpcs:ignore + + wp_cache_set( 'wps_rma_migration_keys', $result ); + } if ( 'count' === $action ) { $result = ! empty( $result ) ? count( $result ) : 0; From 5add972cddb40bd27770973423aeda654b7c4391 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Thu, 5 May 2022 13:57:18 +0530 Subject: [PATCH 15/17] migration-issue-fixes --- ...ass-woo-refund-and-exchange-lite-admin.php | 70 +++++++++++++------ 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index fb3a7ed..409da47 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -968,7 +968,7 @@ public function wps_rma_import_single_order( $posted_data = array() ) { // Remove this order from request. foreach ( $orders as $key => $order ) { - $order_id = ! empty( $order['post_id'] ) ? $order['post_id'] : false; + $order_id = ! empty( $order ) ? $order : false; unset( $orders[ $key ] ); break; } @@ -1044,7 +1044,8 @@ public function wps_rma_import_single_user( $user_data = array() ) { // Remove this user from request. foreach ( $users as $key => $user ) { - $user_id = ! empty( $user['user_id'] ) ? $user['user_id'] : false; + + $user_id = ! empty( $user['ID'] ) ? $user['ID'] : false; unset( $users[ $key ] ); break; } @@ -1123,49 +1124,78 @@ public function wps_rma_get_count( $status = 'all', $action = 'count', $type = f if ( 'orders' === $type ) { switch ( $status ) { case 'pending': - $sql = "SELECT (`post_id`) FROM `{$wpdb->prefix}postmeta` WHERE `meta_key` LIKE 'ced_rnx_request_made' OR `meta_key` LIKE 'ced_rnx_return_product' OR `meta_key` OR 'ced_rnx_return_attachment' OR `meta_key` LIKE 'mwb_wrma_return_product' OR `meta_key` LIKE 'mwb_return_label_attachment_exchange_path' OR `meta_key` LIKE 'mwb_wrma_exchange_attachment' OR `meta_key` OR 'mwb_return_label_attachment_name' OR `meta_key` LIKE 'mwb_wrma_return_attachment_error' OR `meta_key` LIKE 'mwb_wrma_exchange_product' OR `meta_key` LIKE 'mwb_wrma_exchange_order' OR `meta_key` LIKE 'mwb_wrma_exchange_attachment_error' OR `meta_key` LIKE 'mwb_return_label_attachment_exchange_name' OR `meta_key` LIKE 'mwb_return_label_attachment_path' OR `meta_key` LIKE 'mwb_wrma_return_product'"; + $post_meta_keys = array( + 'ced_rnx_request_made', + 'ced_rnx_return_product', + 'ced_rnx_return_attachment', + 'mwb_wrma_return_product', + 'mwb_return_label_attachment_exchange_path', + 'mwb_wrma_exchange_attachment', + 'mwb_return_label_attachment_name', + 'mwb_wrma_return_attachment_error', + 'mwb_wrma_exchange_product', + 'mwb_wrma_exchange_order', + 'mwb_wrma_exchange_attachment_error', + 'mwb_return_label_attachment_exchange_name', + 'mwb_return_label_attachment_path', + 'mwb_wrma_return_label_link', + 'mwb_wrma_return_product', + ); + $result = wc_get_orders( + array( + 'type' => 'shop_order', + 'limit' => - 1, + 'meta_key' => $post_meta_keys, // phpcs:ignore + 'return' => 'ids', + ), + ); break; default: - $sql = false; + $result = false; break; } } elseif ( 'users' === $type ) { switch ( $status ) { case 'pending': - $sql = "SELECT (`user_id`) FROM `{$wpdb->prefix}usermeta` WHERE `meta_key` = 'mwb_wrma_refund_wallet_coupon'"; + $result = get_users( + array( + 'limit' => - 1, + 'meta_key' => 'mwb_wrma_refund_wallet_coupon', // phpcs:ignore + 'fields' => array( 'ID' ), + ), + ); break; default: - $sql = false; + $result = false; break; } } elseif ( 'order_messages' === $type ) { switch ( $status ) { case 'pending': - $sql = "SELECT * FROM `{$wpdb->prefix}options` WHERE `option_name` LIKE '%mwb_cutomer_order_msg%'"; + $option_result = wp_load_alloptions(); + $result = array(); + foreach ( $option_result as $option_key => $option_value ) { + if ( similar_text( 'mwb_cutomer_order_msg', $option_key ) === 21 ) { + $array_val = array( + 'option_name' => $option_key, + 'option_value' => $option_value, + ); + $result[] = $array_val; + } + } break; default: - $sql = false; + $result = false; break; } } - if ( empty( $sql ) ) { + if ( empty( $result ) ) { return 0; } - global $wpdb; - - wp_cache_delete( 'wps_rma_migration_keys' ); - - if ( empty( wp_cache_get( 'wps_rma_migration_keys' ) ) ) { - - $result = $wpdb->get_results( $sql, ARRAY_A ); // phpcs:ignore - - wp_cache_set( 'wps_rma_migration_keys', $result ); - } - if ( 'count' === $action ) { $result = ! empty( $result ) ? count( $result ) : 0; } From 08aee3ffc0c3c6f791269944d2868974384ebd3c Mon Sep 17 00:00:00 2001 From: mohddanish Date: Fri, 6 May 2022 11:32:27 +0530 Subject: [PATCH 16/17] syntax-error-fix --- admin/class-woo-refund-and-exchange-lite-admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/class-woo-refund-and-exchange-lite-admin.php b/admin/class-woo-refund-and-exchange-lite-admin.php index 409da47..c1682b2 100755 --- a/admin/class-woo-refund-and-exchange-lite-admin.php +++ b/admin/class-woo-refund-and-exchange-lite-admin.php @@ -1147,7 +1147,7 @@ public function wps_rma_get_count( $status = 'all', $action = 'count', $type = f 'limit' => - 1, 'meta_key' => $post_meta_keys, // phpcs:ignore 'return' => 'ids', - ), + ) ); break; default: @@ -1162,7 +1162,7 @@ public function wps_rma_get_count( $status = 'all', $action = 'count', $type = f 'limit' => - 1, 'meta_key' => 'mwb_wrma_refund_wallet_coupon', // phpcs:ignore 'fields' => array( 'ID' ), - ), + ) ); break; From 9568f995e1f73362c5704f84b1cb7bc43904aac6 Mon Sep 17 00:00:00 2001 From: mohddanish Date: Mon, 9 May 2022 10:18:55 +0530 Subject: [PATCH 17/17] lang-update --- .../woo-refund-and-exchange-lite-en_US.mo | Bin 723 -> 725 bytes .../woo-refund-and-exchange-lite-en_US.po | 247 ++++++++---------- ...S.pot => woo-refund-and-exchange-lite.pot} | 241 ++++++++--------- 3 files changed, 217 insertions(+), 271 deletions(-) rename languages/{woo-refund-and-exchange-lite-en_US.pot => woo-refund-and-exchange-lite.pot} (86%) diff --git a/languages/woo-refund-and-exchange-lite-en_US.mo b/languages/woo-refund-and-exchange-lite-en_US.mo index 20b5c706ad62a045bd82acf092bdd82102e922c9..d4e9a5307088ee26ab2e5e484f8bc37e8939dbfa 100644 GIT binary patch delta 101 zcmcc2dX;s83ghgFs)ZV+x(4P7hUQi#2HFOu#s*wIiFxUziRr1jA*qSERtn((3c=-> ydFjOy9~3eh=$TCpV!Ws5lUQ7$8&Z^*SDcerl3!${0M})ukeU}C8a!E_X$b&SSRo$( delta 77 zcmcc0dYN^C3ggU)s)hU}x`q}ChUQj=X4(d(#s-u5nWPnTLsAoStrWro6oSh$^U{mC hd=m50OB2&mtrSx8;zNTc?ki+8o@~T;Z?X~7VgO#@7q9>T diff --git a/languages/woo-refund-and-exchange-lite-en_US.po b/languages/woo-refund-and-exchange-lite-en_US.po index 00fb650..5624bc6 100644 --- a/languages/woo-refund-and-exchange-lite-en_US.po +++ b/languages/woo-refund-and-exchange-lite-en_US.po @@ -1,26 +1,26 @@ msgid "" msgstr "" "Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.2\n" -"POT-Creation-Date: 2022-04-18 17:16+0530\n" -"PO-Revision-Date: 2022-04-18 17:16+0530\n" -"Last-Translator: \n" +"POT-Creation-Date: 2022-05-07 17:40+0530\n" +"PO-Revision-Date: 2022-05-07 17:40+0530\n" "Language-Team: WP Swings\n" -"Language: en_US\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" +"X-Generator: Poedit 2.0.6\n" "X-Poedit-Basepath: ..\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-KeywordsList: __;_e;_n;_x;_ex;_nx;esc_attr_e;esc_attr_x;esc_html__;" "esc_html_e;esc_html__;esc_html_x;_n_noop;_nx_noop\n" "X-Poedit-SourceCharset: UTF-8\n" +"Last-Translator: \n" +"Language: en_US\n" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPathExcluded-0: build\n" "X-Poedit-SearchPathExcluded-1: admin/js/wps-rma-swal.js\n" "X-Poedit-SearchPathExcluded-2: node_modules\n" -#: admin/class-woo-refund-and-exchange-lite-admin.php:157 +#: admin/class-woo-refund-and-exchange-lite-admin.php:156 msgid "Policy already exist" msgstr "" @@ -32,12 +32,12 @@ msgstr "" #: admin/class-woo-refund-and-exchange-lite-admin.php:359 #: admin/class-woo-refund-and-exchange-lite-admin.php:374 #: admin/class-woo-refund-and-exchange-lite-admin.php:385 -#: admin/class-woo-refund-and-exchange-lite-admin.php:514 -#: admin/class-woo-refund-and-exchange-lite-admin.php:525 -#: admin/class-woo-refund-and-exchange-lite-admin.php:564 -#: admin/class-woo-refund-and-exchange-lite-admin.php:585 -#: admin/class-woo-refund-and-exchange-lite-admin.php:638 -#: admin/class-woo-refund-and-exchange-lite-admin.php:694 +#: admin/class-woo-refund-and-exchange-lite-admin.php:516 +#: admin/class-woo-refund-and-exchange-lite-admin.php:527 +#: admin/class-woo-refund-and-exchange-lite-admin.php:566 +#: admin/class-woo-refund-and-exchange-lite-admin.php:587 +#: admin/class-woo-refund-and-exchange-lite-admin.php:640 +#: admin/class-woo-refund-and-exchange-lite-admin.php:696 msgid "YES" msgstr "" @@ -45,12 +45,12 @@ msgstr "" #: admin/class-woo-refund-and-exchange-lite-admin.php:360 #: admin/class-woo-refund-and-exchange-lite-admin.php:375 #: admin/class-woo-refund-and-exchange-lite-admin.php:386 -#: admin/class-woo-refund-and-exchange-lite-admin.php:515 -#: admin/class-woo-refund-and-exchange-lite-admin.php:526 -#: admin/class-woo-refund-and-exchange-lite-admin.php:565 -#: admin/class-woo-refund-and-exchange-lite-admin.php:586 -#: admin/class-woo-refund-and-exchange-lite-admin.php:639 -#: admin/class-woo-refund-and-exchange-lite-admin.php:695 +#: admin/class-woo-refund-and-exchange-lite-admin.php:517 +#: admin/class-woo-refund-and-exchange-lite-admin.php:528 +#: admin/class-woo-refund-and-exchange-lite-admin.php:567 +#: admin/class-woo-refund-and-exchange-lite-admin.php:588 +#: admin/class-woo-refund-and-exchange-lite-admin.php:641 +#: admin/class-woo-refund-and-exchange-lite-admin.php:697 msgid "NO" msgstr "" @@ -67,216 +67,185 @@ msgid "Enable to Show Bank Details Field For Manual Refund" msgstr "" #: admin/class-woo-refund-and-exchange-lite-admin.php:392 -#: admin/class-woo-refund-and-exchange-lite-admin.php:613 -#: admin/class-woo-refund-and-exchange-lite-admin.php:675 -#: admin/class-woo-refund-and-exchange-lite-admin.php:716 +#: admin/class-woo-refund-and-exchange-lite-admin.php:615 +#: admin/class-woo-refund-and-exchange-lite-admin.php:677 +#: admin/class-woo-refund-and-exchange-lite-admin.php:718 msgid "Save Setting" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:455 +#: admin/class-woo-refund-and-exchange-lite-admin.php:457 msgid "Id of some field is missing" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:458 -#: admin/class-woo-refund-and-exchange-lite-admin.php:905 +#: admin/class-woo-refund-and-exchange-lite-admin.php:460 +#: admin/class-woo-refund-and-exchange-lite-admin.php:907 msgid "Settings saved !" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:487 +#: admin/class-woo-refund-and-exchange-lite-admin.php:489 msgid "Order Page" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:488 +#: admin/class-woo-refund-and-exchange-lite-admin.php:490 msgid "Order View Page" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:489 +#: admin/class-woo-refund-and-exchange-lite-admin.php:491 msgid "Thank You Page" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:492 -#: admin/class-woo-refund-and-exchange-lite-admin.php:626 +#: admin/class-woo-refund-and-exchange-lite-admin.php:494 +#: admin/class-woo-refund-and-exchange-lite-admin.php:628 msgid "Default" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:498 +#: admin/class-woo-refund-and-exchange-lite-admin.php:500 msgid "Select Pages To Hide Refund Button" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:508 +#: admin/class-woo-refund-and-exchange-lite-admin.php:510 msgid "Enable to show Manage Stock Button" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:519 -#: admin/class-woo-refund-and-exchange-lite-admin.php:632 +#: admin/class-woo-refund-and-exchange-lite-admin.php:521 +#: admin/class-woo-refund-and-exchange-lite-admin.php:634 msgid "Enable Attachment" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:530 +#: admin/class-woo-refund-and-exchange-lite-admin.php:532 msgid "Attachement Limit" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:532 +#: admin/class-woo-refund-and-exchange-lite-admin.php:534 msgid "By default, It will take 5. If not given any." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:550 +#: admin/class-woo-refund-and-exchange-lite-admin.php:552 msgid "Refund Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:555 +#: admin/class-woo-refund-and-exchange-lite-admin.php:557 msgid "Write the Refund Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:558 +#: admin/class-woo-refund-and-exchange-lite-admin.php:560 msgid "Enable Refund Reason Description" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:569 +#: admin/class-woo-refund-and-exchange-lite-admin.php:571 msgid "Predefined Refund Reason" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:576 +#: admin/class-woo-refund-and-exchange-lite-admin.php:578 msgid "Write Multiple Refund Reason Separated by Comma" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:579 +#: admin/class-woo-refund-and-exchange-lite-admin.php:581 msgid "Enable Refund Rules" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:590 +#: admin/class-woo-refund-and-exchange-lite-admin.php:592 msgid "Refund Rules Editor" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:598 +#: admin/class-woo-refund-and-exchange-lite-admin.php:600 msgid "Select The Page To Redirect" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:652 +#: admin/class-woo-refund-and-exchange-lite-admin.php:654 msgid "Order Message Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:657 +#: admin/class-woo-refund-and-exchange-lite-admin.php:659 msgid "Enter Order Message Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:661 +#: admin/class-woo-refund-and-exchange-lite-admin.php:663 msgid "Select the Page to Redirect" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:688 +#: admin/class-woo-refund-and-exchange-lite-admin.php:690 msgid "Enable API" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:699 +#: admin/class-woo-refund-and-exchange-lite-admin.php:701 msgid "Secret Key" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:705 +#: admin/class-woo-refund-and-exchange-lite-admin.php:707 msgid "Please Generate the Secret Key" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:710 +#: admin/class-woo-refund-and-exchange-lite-admin.php:712 msgid "Generate Key" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:751 +#: admin/class-woo-refund-and-exchange-lite-admin.php:753 msgid "Refund Requested Products" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:758 +#: admin/class-woo-refund-and-exchange-lite-admin.php:760 msgid "Order Message History" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:861 +#: admin/class-woo-refund-and-exchange-lite-admin.php:863 msgid "Product Stock is updated Successfully." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:863 +#: admin/class-woo-refund-and-exchange-lite-admin.php:865 #, php-format msgid "%s Product Stock is updated Successfully." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:866 +#: admin/class-woo-refund-and-exchange-lite-admin.php:868 msgid "" "Product Stock is not updated as manage stock setting of product is disable." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:868 +#: admin/class-woo-refund-and-exchange-lite-admin.php:870 #, php-format msgid "" "%s Product Stock is not updated as manage stock setting of product is " "disable." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:949 +#: admin/class-woo-refund-and-exchange-lite-admin.php:951 msgid "method not found" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1183 -#: admin/class-woo-refund-and-exchange-lite-admin.php:1237 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1223 msgid "IMPORTANT NOTICE" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1184 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1224 msgid "" "Heads up, The latest update includes some substantial changes across " "different areas of the plugin" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1187 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1227 msgid "" "Please click on the Start Migration button so that all of the data migrate. " "We have Made some changes in our plugin" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1188 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1228 msgid "Start Migration" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1211 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1249 msgid "RMA Configuration" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1213 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1251 msgid "Refund-Exchange Lite" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "From the update" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "Version" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "onwards, the plugin and its support will be handled by" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "" -"is just our improvised and rebranded version with all quality solutions and " -"help being the same, so no worries at your end." -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1241 -msgid "" -"Please connect with us for all setup, support, and update related queries " -"without hesitation" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1250 -msgid "" -"Heads up, The latest update includes some substantial changes across " -"different areas of the plugin." -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1259 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1287 msgid "Please Click" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1261 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1289 msgid "To Goto the Migration Page to the Start Migration" msgstr "" @@ -317,7 +286,7 @@ msgstr "" #: admin/partials/email_template/woo-refund-and-exchange-lite-refund-request-accept-email.php:90 #: common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php:96 -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:361 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:362 msgid "Email" msgstr "" @@ -341,12 +310,12 @@ msgid "Your Refund Request is Cancelled" msgstr "" #: admin/partials/woo-refund-and-exchange-lite-admin-dashboard.php:53 -#: woocommerce-refund-and-exchange-lite.php:207 +#: woocommerce-refund-and-exchange-lite.php:192 msgid "Documentation" msgstr "" #: admin/partials/woo-refund-and-exchange-lite-admin-dashboard.php:55 -#: woocommerce-refund-and-exchange-lite.php:208 +#: woocommerce-refund-and-exchange-lite.php:193 msgid "Support" msgstr "" @@ -858,41 +827,41 @@ msgstr "" msgid "View Order Messages" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:301 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:302 msgid "What is your monthly revenue?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:320 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:321 msgid "What industry defines your business?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:326 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:327 msgid "Industry Type" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:357 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:358 msgid "What is the best email address to contact you?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:369 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:370 msgid "What is your contact number?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:374 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:375 msgid "Contact Number" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:485 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:486 msgid "" "Let us know why you are deactivating WooCommerce Refund and Exchange Lite so " "we can improve the plugin" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:489 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:490 msgid "Reason" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:729 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:730 msgid "Unexpected Error Occured" msgstr "" @@ -965,41 +934,41 @@ msgstr "" msgid "Refund request is already made and accepted" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:288 +#: includes/woo-refund-and-exchange-lite-common-functions.php:289 msgid "" "Your Giftcard has been expired so you can not proceed with the exchange. " "Thanks" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:295 +#: includes/woo-refund-and-exchange-lite-common-functions.php:296 msgid "" "Your Giftcard has been used so you can not proceed with the exchange. Thanks" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:334 +#: includes/woo-refund-and-exchange-lite-common-functions.php:335 msgid "User Request to refund product" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:338 +#: includes/woo-refund-and-exchange-lite-common-functions.php:339 msgid "" "Refund request placed successfully. You have received a notification mail " "regarding this. You will redirect to the My Account Page" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:403 +#: includes/woo-refund-and-exchange-lite-common-functions.php:404 #, php-format msgid "%1$s %2$s Item Quantity has been reduce because the return" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:413 +#: includes/woo-refund-and-exchange-lite-common-functions.php:414 msgid "Added the return item info" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:447 +#: includes/woo-refund-and-exchange-lite-common-functions.php:448 msgid "User Request of Refund Product is approved" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:498 +#: includes/woo-refund-and-exchange-lite-common-functions.php:499 msgid "User Request of Refund Product is cancelled" msgstr "" @@ -1167,62 +1136,62 @@ msgid "Order's Product Refund Request Form" msgstr "" #: public/partials/wps-rma-refund-request-form.php:191 -#: public/partials/wps-rma-refund-request-form.php:216 -#: public/partials/wps-rma-refund-request-form.php:245 +#: public/partials/wps-rma-refund-request-form.php:225 +#: public/partials/wps-rma-refund-request-form.php:254 msgid "(incl. tax)" msgstr "" #: public/partials/wps-rma-refund-request-form.php:195 -#: public/partials/wps-rma-refund-request-form.php:220 -#: public/partials/wps-rma-refund-request-form.php:249 +#: public/partials/wps-rma-refund-request-form.php:229 +#: public/partials/wps-rma-refund-request-form.php:258 msgid "(excl. tax)" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:239 +#: public/partials/wps-rma-refund-request-form.php:248 msgid "Total Refund Amount" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:273 +#: public/partials/wps-rma-refund-request-form.php:282 msgid "Please Enter the bank details for manual refund" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:283 +#: public/partials/wps-rma-refund-request-form.php:292 msgid "Subject of Refund Request :" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:299 +#: public/partials/wps-rma-refund-request-form.php:308 msgid "Other" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:303 +#: public/partials/wps-rma-refund-request-form.php:312 msgid "Write your refund reason" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:314 +#: public/partials/wps-rma-refund-request-form.php:323 msgid "Description for Refund Reason :" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:322 +#: public/partials/wps-rma-refund-request-form.php:331 msgid "Write your description for a refund" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:345 +#: public/partials/wps-rma-refund-request-form.php:354 msgid "Attach Files:" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:352 +#: public/partials/wps-rma-refund-request-form.php:361 msgid "Add More" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:353 +#: public/partials/wps-rma-refund-request-form.php:362 msgid "Only .png, .jpeg extension file is approved." msgstr "" -#: public/partials/wps-rma-refund-request-form.php:361 +#: public/partials/wps-rma-refund-request-form.php:370 msgid "Submit Request" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:393 +#: public/partials/wps-rma-refund-request-form.php:402 msgid "Refund Request Can't make on this order" msgstr "" @@ -1243,15 +1212,19 @@ msgstr "" msgid "Woo Refund And Exchange Lite" msgstr "" -#: woocommerce-refund-and-exchange-lite.php:193 -msgid "Settings" +#: woocommerce-refund-and-exchange-lite.php:191 +msgid "Demo" +msgstr "" + +#: woocommerce-refund-and-exchange-lite.php:212 +msgid "GO PRO" msgstr "" -#: woocommerce-refund-and-exchange-lite.php:227 -msgid "GO PREMIUM" +#: woocommerce-refund-and-exchange-lite.php:214 +msgid "Settings" msgstr "" -#: woocommerce-refund-and-exchange-lite.php:341 +#: woocommerce-refund-and-exchange-lite.php:327 msgid "" "Woocommerce is not activated, Please activate Woocommerce first to install " "WooCommerce Refund and Exchange Lite." diff --git a/languages/woo-refund-and-exchange-lite-en_US.pot b/languages/woo-refund-and-exchange-lite.pot similarity index 86% rename from languages/woo-refund-and-exchange-lite-en_US.pot rename to languages/woo-refund-and-exchange-lite.pot index 744ae79..da55d20 100644 --- a/languages/woo-refund-and-exchange-lite-en_US.pot +++ b/languages/woo-refund-and-exchange-lite.pot @@ -2,14 +2,14 @@ msgid "" msgstr "" "Project-Id-Version: Return Refund and Exchange for WooCommerce 4.0.2\n" -"POT-Creation-Date: 2022-04-18 17:16+0530\n" +"POT-Creation-Date: 2022-05-07 17:40+0530\n" "PO-Revision-Date: 2021-08-21 11:15+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" +"X-Generator: Poedit 2.0.6\n" "X-Poedit-Basepath: ..\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: en_US\n" @@ -21,7 +21,7 @@ msgstr "" "X-Poedit-SearchPathExcluded-1: admin/js/wps-rma-swal.js\n" "X-Poedit-SearchPathExcluded-2: node_modules\n" -#: admin/class-woo-refund-and-exchange-lite-admin.php:157 +#: admin/class-woo-refund-and-exchange-lite-admin.php:156 msgid "Policy already exist" msgstr "" @@ -33,12 +33,12 @@ msgstr "" #: admin/class-woo-refund-and-exchange-lite-admin.php:359 #: admin/class-woo-refund-and-exchange-lite-admin.php:374 #: admin/class-woo-refund-and-exchange-lite-admin.php:385 -#: admin/class-woo-refund-and-exchange-lite-admin.php:514 -#: admin/class-woo-refund-and-exchange-lite-admin.php:525 -#: admin/class-woo-refund-and-exchange-lite-admin.php:564 -#: admin/class-woo-refund-and-exchange-lite-admin.php:585 -#: admin/class-woo-refund-and-exchange-lite-admin.php:638 -#: admin/class-woo-refund-and-exchange-lite-admin.php:694 +#: admin/class-woo-refund-and-exchange-lite-admin.php:516 +#: admin/class-woo-refund-and-exchange-lite-admin.php:527 +#: admin/class-woo-refund-and-exchange-lite-admin.php:566 +#: admin/class-woo-refund-and-exchange-lite-admin.php:587 +#: admin/class-woo-refund-and-exchange-lite-admin.php:640 +#: admin/class-woo-refund-and-exchange-lite-admin.php:696 msgid "YES" msgstr "" @@ -46,12 +46,12 @@ msgstr "" #: admin/class-woo-refund-and-exchange-lite-admin.php:360 #: admin/class-woo-refund-and-exchange-lite-admin.php:375 #: admin/class-woo-refund-and-exchange-lite-admin.php:386 -#: admin/class-woo-refund-and-exchange-lite-admin.php:515 -#: admin/class-woo-refund-and-exchange-lite-admin.php:526 -#: admin/class-woo-refund-and-exchange-lite-admin.php:565 -#: admin/class-woo-refund-and-exchange-lite-admin.php:586 -#: admin/class-woo-refund-and-exchange-lite-admin.php:639 -#: admin/class-woo-refund-and-exchange-lite-admin.php:695 +#: admin/class-woo-refund-and-exchange-lite-admin.php:517 +#: admin/class-woo-refund-and-exchange-lite-admin.php:528 +#: admin/class-woo-refund-and-exchange-lite-admin.php:567 +#: admin/class-woo-refund-and-exchange-lite-admin.php:588 +#: admin/class-woo-refund-and-exchange-lite-admin.php:641 +#: admin/class-woo-refund-and-exchange-lite-admin.php:697 msgid "NO" msgstr "" @@ -68,217 +68,186 @@ msgid "Enable to Show Bank Details Field For Manual Refund" msgstr "" #: admin/class-woo-refund-and-exchange-lite-admin.php:392 -#: admin/class-woo-refund-and-exchange-lite-admin.php:613 -#: admin/class-woo-refund-and-exchange-lite-admin.php:675 -#: admin/class-woo-refund-and-exchange-lite-admin.php:716 +#: admin/class-woo-refund-and-exchange-lite-admin.php:615 +#: admin/class-woo-refund-and-exchange-lite-admin.php:677 +#: admin/class-woo-refund-and-exchange-lite-admin.php:718 msgid "Save Setting" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:455 +#: admin/class-woo-refund-and-exchange-lite-admin.php:457 msgid "Id of some field is missing" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:458 -#: admin/class-woo-refund-and-exchange-lite-admin.php:905 +#: admin/class-woo-refund-and-exchange-lite-admin.php:460 +#: admin/class-woo-refund-and-exchange-lite-admin.php:907 msgid "Settings saved !" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:487 +#: admin/class-woo-refund-and-exchange-lite-admin.php:489 msgid "Order Page" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:488 +#: admin/class-woo-refund-and-exchange-lite-admin.php:490 msgid "Order View Page" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:489 +#: admin/class-woo-refund-and-exchange-lite-admin.php:491 msgid "Thank You Page" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:492 -#: admin/class-woo-refund-and-exchange-lite-admin.php:626 +#: admin/class-woo-refund-and-exchange-lite-admin.php:494 +#: admin/class-woo-refund-and-exchange-lite-admin.php:628 msgid "Default" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:498 +#: admin/class-woo-refund-and-exchange-lite-admin.php:500 msgid "Select Pages To Hide Refund Button" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:508 +#: admin/class-woo-refund-and-exchange-lite-admin.php:510 msgid "Enable to show Manage Stock Button" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:519 -#: admin/class-woo-refund-and-exchange-lite-admin.php:632 +#: admin/class-woo-refund-and-exchange-lite-admin.php:521 +#: admin/class-woo-refund-and-exchange-lite-admin.php:634 msgid "Enable Attachment" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:530 +#: admin/class-woo-refund-and-exchange-lite-admin.php:532 msgid "Attachement Limit" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:532 +#: admin/class-woo-refund-and-exchange-lite-admin.php:534 msgid "By default, It will take 5. If not given any." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:550 +#: admin/class-woo-refund-and-exchange-lite-admin.php:552 msgid "Refund Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:555 +#: admin/class-woo-refund-and-exchange-lite-admin.php:557 msgid "Write the Refund Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:558 +#: admin/class-woo-refund-and-exchange-lite-admin.php:560 msgid "Enable Refund Reason Description" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:569 +#: admin/class-woo-refund-and-exchange-lite-admin.php:571 msgid "Predefined Refund Reason" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:576 +#: admin/class-woo-refund-and-exchange-lite-admin.php:578 msgid "Write Multiple Refund Reason Separated by Comma" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:579 +#: admin/class-woo-refund-and-exchange-lite-admin.php:581 msgid "Enable Refund Rules" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:590 +#: admin/class-woo-refund-and-exchange-lite-admin.php:592 msgid "Refund Rules Editor" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:598 +#: admin/class-woo-refund-and-exchange-lite-admin.php:600 msgid "Select The Page To Redirect" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:652 +#: admin/class-woo-refund-and-exchange-lite-admin.php:654 msgid "Order Message Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:657 +#: admin/class-woo-refund-and-exchange-lite-admin.php:659 msgid "Enter Order Message Button Text" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:661 +#: admin/class-woo-refund-and-exchange-lite-admin.php:663 msgid "Select the Page to Redirect" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:688 +#: admin/class-woo-refund-and-exchange-lite-admin.php:690 msgid "Enable API" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:699 +#: admin/class-woo-refund-and-exchange-lite-admin.php:701 msgid "Secret Key" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:705 +#: admin/class-woo-refund-and-exchange-lite-admin.php:707 msgid "Please Generate the Secret Key" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:710 +#: admin/class-woo-refund-and-exchange-lite-admin.php:712 msgid "Generate Key" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:751 +#: admin/class-woo-refund-and-exchange-lite-admin.php:753 msgid "Refund Requested Products" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:758 +#: admin/class-woo-refund-and-exchange-lite-admin.php:760 msgid "Order Message History" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:861 +#: admin/class-woo-refund-and-exchange-lite-admin.php:863 msgid "Product Stock is updated Successfully." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:863 +#: admin/class-woo-refund-and-exchange-lite-admin.php:865 #, php-format msgid "%s Product Stock is updated Successfully." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:866 +#: admin/class-woo-refund-and-exchange-lite-admin.php:868 msgid "" "Product Stock is not updated as manage stock setting of product is " "disable." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:868 +#: admin/class-woo-refund-and-exchange-lite-admin.php:870 #, php-format msgid "" "%s Product Stock is not updated as manage stock setting of product is " "disable." msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:949 +#: admin/class-woo-refund-and-exchange-lite-admin.php:951 msgid "method not found" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1183 -#: admin/class-woo-refund-and-exchange-lite-admin.php:1237 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1223 msgid "IMPORTANT NOTICE" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1184 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1224 msgid "" "Heads up, The latest update includes some substantial changes across " "different areas of the plugin" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1187 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1227 msgid "" "Please click on the Start Migration button so that all of the data " "migrate. We have Made some changes in our plugin" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1188 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1228 msgid "Start Migration" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1211 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1249 msgid "RMA Configuration" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1213 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1251 msgid "Refund-Exchange Lite" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "From the update" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "Version" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "onwards, the plugin and its support will be handled by" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1240 -msgid "" -"is just our improvised and rebranded version with all quality solutions " -"and help being the same, so no worries at your end." -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1241 -msgid "" -"Please connect with us for all setup, support, and update related queries " -"without hesitation" -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1250 -msgid "" -"Heads up, The latest update includes some substantial changes across " -"different areas of the plugin." -msgstr "" - -#: admin/class-woo-refund-and-exchange-lite-admin.php:1259 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1287 msgid "Please Click" msgstr "" -#: admin/class-woo-refund-and-exchange-lite-admin.php:1261 +#: admin/class-woo-refund-and-exchange-lite-admin.php:1289 msgid "To Goto the Migration Page to the Start Migration" msgstr "" @@ -319,7 +288,7 @@ msgstr "" #: admin/partials/email_template/woo-refund-and-exchange-lite-refund-request-accept-email.php:90 #: common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php:96 -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:361 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:362 msgid "Email" msgstr "" @@ -343,12 +312,12 @@ msgid "Your Refund Request is Cancelled" msgstr "" #: admin/partials/woo-refund-and-exchange-lite-admin-dashboard.php:53 -#: woocommerce-refund-and-exchange-lite.php:207 +#: woocommerce-refund-and-exchange-lite.php:192 msgid "Documentation" msgstr "" #: admin/partials/woo-refund-and-exchange-lite-admin-dashboard.php:55 -#: woocommerce-refund-and-exchange-lite.php:208 +#: woocommerce-refund-and-exchange-lite.php:193 msgid "Support" msgstr "" @@ -863,41 +832,41 @@ msgstr "" msgid "View Order Messages" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:301 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:302 msgid "What is your monthly revenue?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:320 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:321 msgid "What industry defines your business?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:326 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:327 msgid "Industry Type" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:357 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:358 msgid "What is the best email address to contact you?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:369 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:370 msgid "What is your contact number?" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:374 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:375 msgid "Contact Number" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:485 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:486 msgid "" "Let us know why you are deactivating WooCommerce Refund and Exchange Lite " "so we can improve the plugin" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:489 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:490 msgid "Reason" msgstr "" -#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:729 +#: includes/class-woo-refund-and-exchange-lite-onboarding-steps.php:730 msgid "Unexpected Error Occured" msgstr "" @@ -970,42 +939,42 @@ msgstr "" msgid "Refund request is already made and accepted" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:288 +#: includes/woo-refund-and-exchange-lite-common-functions.php:289 msgid "" "Your Giftcard has been expired so you can not proceed with the exchange. " "Thanks" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:295 +#: includes/woo-refund-and-exchange-lite-common-functions.php:296 msgid "" "Your Giftcard has been used so you can not proceed with the exchange. " "Thanks" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:334 +#: includes/woo-refund-and-exchange-lite-common-functions.php:335 msgid "User Request to refund product" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:338 +#: includes/woo-refund-and-exchange-lite-common-functions.php:339 msgid "" "Refund request placed successfully. You have received a notification mail " "regarding this. You will redirect to the My Account Page" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:403 +#: includes/woo-refund-and-exchange-lite-common-functions.php:404 #, php-format msgid "%1$s %2$s Item Quantity has been reduce because the return" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:413 +#: includes/woo-refund-and-exchange-lite-common-functions.php:414 msgid "Added the return item info" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:447 +#: includes/woo-refund-and-exchange-lite-common-functions.php:448 msgid "User Request of Refund Product is approved" msgstr "" -#: includes/woo-refund-and-exchange-lite-common-functions.php:498 +#: includes/woo-refund-and-exchange-lite-common-functions.php:499 msgid "User Request of Refund Product is cancelled" msgstr "" @@ -1174,62 +1143,62 @@ msgid "Order's Product Refund Request Form" msgstr "" #: public/partials/wps-rma-refund-request-form.php:191 -#: public/partials/wps-rma-refund-request-form.php:216 -#: public/partials/wps-rma-refund-request-form.php:245 +#: public/partials/wps-rma-refund-request-form.php:225 +#: public/partials/wps-rma-refund-request-form.php:254 msgid "(incl. tax)" msgstr "" #: public/partials/wps-rma-refund-request-form.php:195 -#: public/partials/wps-rma-refund-request-form.php:220 -#: public/partials/wps-rma-refund-request-form.php:249 +#: public/partials/wps-rma-refund-request-form.php:229 +#: public/partials/wps-rma-refund-request-form.php:258 msgid "(excl. tax)" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:239 +#: public/partials/wps-rma-refund-request-form.php:248 msgid "Total Refund Amount" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:273 +#: public/partials/wps-rma-refund-request-form.php:282 msgid "Please Enter the bank details for manual refund" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:283 +#: public/partials/wps-rma-refund-request-form.php:292 msgid "Subject of Refund Request :" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:299 +#: public/partials/wps-rma-refund-request-form.php:308 msgid "Other" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:303 +#: public/partials/wps-rma-refund-request-form.php:312 msgid "Write your refund reason" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:314 +#: public/partials/wps-rma-refund-request-form.php:323 msgid "Description for Refund Reason :" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:322 +#: public/partials/wps-rma-refund-request-form.php:331 msgid "Write your description for a refund" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:345 +#: public/partials/wps-rma-refund-request-form.php:354 msgid "Attach Files:" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:352 +#: public/partials/wps-rma-refund-request-form.php:361 msgid "Add More" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:353 +#: public/partials/wps-rma-refund-request-form.php:362 msgid "Only .png, .jpeg extension file is approved." msgstr "" -#: public/partials/wps-rma-refund-request-form.php:361 +#: public/partials/wps-rma-refund-request-form.php:370 msgid "Submit Request" msgstr "" -#: public/partials/wps-rma-refund-request-form.php:393 +#: public/partials/wps-rma-refund-request-form.php:402 msgid "Refund Request Can't make on this order" msgstr "" @@ -1250,15 +1219,19 @@ msgstr "" msgid "Woo Refund And Exchange Lite" msgstr "" -#: woocommerce-refund-and-exchange-lite.php:193 -msgid "Settings" +#: woocommerce-refund-and-exchange-lite.php:191 +msgid "Demo" +msgstr "" + +#: woocommerce-refund-and-exchange-lite.php:212 +msgid "GO PRO" msgstr "" -#: woocommerce-refund-and-exchange-lite.php:227 -msgid "GO PREMIUM" +#: woocommerce-refund-and-exchange-lite.php:214 +msgid "Settings" msgstr "" -#: woocommerce-refund-and-exchange-lite.php:341 +#: woocommerce-refund-and-exchange-lite.php:327 msgid "" "Woocommerce is not activated, Please activate Woocommerce first to " "install WooCommerce Refund and Exchange Lite."