18.01.2023 00:11
|
|
dvolpesr1
Name: Stylianos
12.08.2022
Posts: 98
|
Messages and order changes
Recently I gave a partial refund to a customer after the order was paid for and delivered. When I processed the refund in PayPal, the customer got an email from my website admin account saying their order status had been changed to "cancelled".
Is there a way to either not send send this message or to say a refund had been issued leaving order as completed?
|
|
19.01.2023 22:22
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25936
|
Aw: Messages and order changes
\components\com_jshopping\payments\pm_paypal\pm_paypal.php
Before row 87 (JoomShopping 5.1.2)
if ($payment_status == 'Completed') {
add
if ($payment_status == 'Refunded') {
return array(0, "Status $payment_status. Order ID " . $order->order_id, $transaction, $transactiondata);
}
------------------------------------------------
or See status in your log
components\com_jshopping\log\payment.log
components\com_jshopping\log\paymentdata.log
|
|
20.01.2023 12:03
|
|
spike77
Name: Manfred
30.04.2015
Posts: 706
|
Aw: Messages and order changes
@admin is there a way for PayPal PLUS also?
Found line " if ($payment_status == 'Completed'){ " on row 215
Insert your code
if ($payment_status == 'Refunded') {
return array(0, "Status $payment_status. Order ID " . $order->order_id, $transaction, $transactiondata);
}
before works here also?
|
|
21.01.2023 12:18
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25936
|
Aw: Messages and order changes
PayPal PLUS 3.0.36
works with refund (Configuration in options / payment / paypal plus)
Order Status for Refund transactions
|
|
21.01.2023 17:46
|
|
spike77
Name: Manfred
30.04.2015
Posts: 706
|
Aw: Messages and order changes
Ok, but I actually meant a function where no message is sent after refound, the status doesn't really matter
|
|
21.01.2023 18:50
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25936
|
Aw: Messages and order changes
\components\com_jshopping\payments\pm_paypal_plus\pm_paypal_plus.php
row 125-127
} elseif ($payment_status == 'Refunded') {
return array(7, "Status $payment_status. Order ID ".$order->order_id );
}
change to
} elseif ($payment_status == 'Refunded') {
return array(0, "Status $payment_status. Order ID ".$order->order_id );
}
|
|
21.01.2023 23:05
|
|
spike77
Name: Manfred
30.04.2015
Posts: 706
|
Aw: Messages and order changes
thank you
|
|
23.01.2023 22:05
|
|
spike77
Name: Manfred
30.04.2015
Posts: 706
|
Aw: Messages and order changes
After change code
} elseif ($payment_status == 'Refunded') {
return array(0, "Status $payment_status. Order ID ".$order->order_id );
}
Status E-Mail not send - that´s ok, but the Order Status now don`t change to „Refunded“. (PayPal Plus 3.035)
How can I chnage the Order-Status automaticly to „Refunded“ and send NO Status E-Mail to Costumer? Install 3.036, or?
Last change: 23.01.2023 22:08
|
|
24.01.2023 08:27
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25936
|
Aw: Messages and order changes
or 1 or 2
------
1. send email + change status
2. not send + not change status
|
|
24.01.2023 10:50
|
|
spike77
Name: Manfred
30.04.2015
Posts: 706
|
Aw: Messages and order changes
that's exactly what i don't need
Need:
No send email but change status.
Sure, that "2" causes not send email + not change status? Because, this is exactly what change 0 to 7 do ...
Last change: 24.01.2023 10:52
|
|