Skip to content

Instantly share code, notes, and snippets.

@llicour
Created October 20, 2023 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llicour/cd6ce2b4aa8734cc92c7e09497397ff0 to your computer and use it in GitHub Desktop.
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
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