Created
October 20, 2023 06:32
-
-
Save llicour/cd6ce2b4aa8734cc92c7e09497397ff0 to your computer and use it in GitHub Desktop.
patch on wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/class-awcdp-front-end.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/class-awcdp-front-end.php b/wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/class-awcdp-front-end.php | |
index c351f838..876fbcba 100644 | |
--- a/wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/class-awcdp-front-end.php | |
+++ b/wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/class-awcdp-front-end.php | |
@@ -1271,6 +1271,7 @@ class AWCDP_Front_End | |
//$order->update_meta_data('_awcdp_deposits_deposit_payment_time', time()); | |
$order->update_meta_data('_awcdp_deposits_deposit_payment_time', current_time('timestamp')); | |
$order->update_meta_data('_awcdp_deposits_second_payment_reminder_email_sent', 'no'); | |
+ $order->save(); | |
} | |
} | |
} | |
@@ -1369,7 +1370,7 @@ class AWCDP_Front_End | |
} | |
} | |
} | |
- $order->Save(); | |
+ $order->save(); | |
} | |
if($order->get_type() == AWCDP_POST_TYPE && $order->get_meta('_awcdp_deposits_payment_type') == 'deposit' && $old_status == 'on-hold' && $new_status == 'completed') { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment