If I create one or more appointments manually, because they are registered by phone, for example, then they are marked in the system as paid, with the note (paid by admin).
Then I set them to "Pending", but they are still not shown as "not paid", e.g. in the invoice addon.
The customer looks at the invoice and it says fully paid.
1 year ago
if ($bookingpress_payment_gateway == "on-site" || $bookingpress_payment_gateway == "manual") {
$payment_status = 2;
line 1238 (wp-content/plugins/bookingpress-appointment-booking-pro/core/classes/class.bookingpress_pro_payment_gateways.php)
Explanation of the code:
This PHP code snippet is designed to check the payment method used for a booking within the BookingPress plugin.
: This conditional statement evaluates if the payment was processed either "on-site" (directly at the location) or "manually" (outside of the online system).if ($bookingpress_payment_gateway == "on-site" || $bookingpress_payment_gateway == "manual")
: If the payment method matches either "on-site" or "manual", this line sets the$payment_status = 2;
variable to 2. This typically indicates a specific payment status, such as "pending confirmation" or "processing", which might require additional verification or manual input.$payment_status
What does this change do?
By combining the conditions for "on-site" and "manual" payments, the code ensures that whenever a booking is made using either of these methods, the
is consistently set to 2. This can be useful for:$payment_status
I hope this explanation is helpful!
0 3 months ago Reply
9 months ago