-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error thrown if failed to insert purchase log #1892
Comments
To clarify, this is an issue with theme-engine-v1: /wpsc-components/theme-engine-v1/helpers/ajax.php |
We need to put theme engine v1 to rest and fast! Sent from my iPhone
|
It's quite likely that this issue also exists in TEV2 |
TEV2 creates a purchase log record in save_shipping_and_billing_info. Since it creates the purchase log in a separate request from the final transaction step, it may not cause the same issue as in TEV1. |
Hi @DustinWoods, Let me know if you're able to submit a PR for this, would love to see it merged. Thanks! |
Thanks for reminding me! |
No problem, thanks for the PR! |
If a MySQL error occurs inserting a purchase log row, wpec still continues to submit transaction to gateway, and also proceeds to take user to transactions results page.
In wpsc_submit_checkout within ajax.php, after the purchase log is created, there needs to be check to ensure the MySQL query was successful before processing the transaction. The end user should receive an error when this occurs, alerting them to try again.
I will be submitting a pull request soon.
The text was updated successfully, but these errors were encountered: