Skip to content

Commit

Permalink
Merge pull request #139 from wpswings/v4.4.3
Browse files Browse the repository at this point in the history
V4.4.3
  • Loading branch information
mohammaddanish-cedcoss authored Oct 25, 2024
2 parents 2e34ae9 + f6ae474 commit d3c8fb0
Show file tree
Hide file tree
Showing 21 changed files with 23,052 additions and 13,365 deletions.
4 changes: 1 addition & 3 deletions admin/js/woo-refund-and-exchange-lite-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jQuery(document).ready(function() {
},
});
});

jQuery(document).ready(function() {
$ = jQuery;
jQuery(function($){

const MDCText = mdc.textField.MDCTextField;
const textField = [].map.call(
Expand Down
2 changes: 1 addition & 1 deletion admin/js/woo-refund-and-exchange-lite-admin.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
$wps_wrna_all_product_checked = wps_rma_get_meta_data( $order_id, 'wps_wrna_all_product_checked', true );
if ( ( empty( $pro_active ) && 'on' == $wps_rma_allow_refund_shipping_charge ) || ( 1 == $wps_wrna_all_product_checked && 'on' == $wps_rma_allow_refund_shipping_charge ) ) {

$total = round( $total ) + $order_shipping_price;
$total = $total + $order_shipping_price;


}
Expand Down
4 changes: 1 addition & 3 deletions assets/src/back-end/js/woo-refund-and-exchange-lite-admin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

jQuery(document).ready(function() {
$ = jQuery;
jQuery(function($){

const MDCText = mdc.textField.MDCTextField;
const textField = [].map.call(
Expand Down
3 changes: 1 addition & 2 deletions assets/src/common/js/woo-refund-and-exchange-lite-common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
jQuery( document ).on( 'ready', function(){
$ = jQuery;
jQuery(function($){
//Refund request submit
$('.wps_rma_return_notification').hide();
$( '#wps_rma_return_request_form' ).on('submit',function(e){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

jQuery( document ).on( 'ready', function(){
$ = jQuery;
jQuery(function($){
// Show refund subject field if other option is selected.
var wps_rma_return_request_subject = $( '#wps_rma_return_request_subject' ).val();
if (wps_rma_return_request_subject == null || wps_rma_return_request_subject == '') {
Expand Down
3 changes: 1 addition & 2 deletions common/js/woo-refund-and-exchange-lite-common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
jQuery( document ).on( 'ready', function(){
$ = jQuery;
jQuery(function($){
//Refund request submit
$('.wps_rma_return_notification').hide();
$( '#wps_rma_return_request_form' ).on('submit',function(e){
Expand Down
2 changes: 1 addition & 1 deletion common/js/woo-refund-and-exchange-lite-common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions includes/woo-refund-and-exchange-lite-common-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ function wps_rma_lite_send_order_msg_callback( $order_id, $msg, $sender, $to ) {
do_action( 'wps_rma_do_something_on_view_order_message', $order_id, $msg, $sender, $to );

if ( ! $restrict_mail ) {
$order = wc_get_order( $order_id );
$lang = $order->get_meta( 'wpml_language' );
do_action( 'wpml_switch_language', $lang );

$customer_email = WC()->mailer()->emails['wps_rma_order_messages_email'];
$email_status = $customer_email->trigger( $msg, $attachment, $to, $order_id );
}
Expand Down
Binary file modified languages/woo-refund-and-exchange-lite-en_US.mo
Binary file not shown.
Loading

0 comments on commit d3c8fb0

Please sign in to comment.