- This topic has 6 replies, 3 voices, and was last updated 9 years, 8 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – Purchase detail on success page ( thank you page
Hi, On thank you page , I need to get some information about the purchase like item no, amount, etc to pass to another script to keep the records.
Would you please let me know how can I do that?
What kind of records?
Have you seen this addon?
https://www.tipsandtricks-hq.com/ecommerce/wp-estore-order-management-addon-1684
Thanks wzp. As I said I need to pass it to other program. So I need to know the variables I can capture programatically . Would you please guide me if any document exists , if not some hints will help
You can post the payment data to another script by using the following feature:
Go to the following settings area to enable the IPN forwarding:
WP eStore Settings -> 3rd Party Integration -> POST IPN to a 3rd party application
Alternatively, we have a WordPress action hook that you can use too (if you want to handle this via another custom plugin). Here is an example of how to use this hook:
add_action ('eStore_product_database_updated_after_payment', 'my_custom_tweak', 10, 2);
function my_custom_tweak ($payment_data, $cart_items)
{
//Do your custom stuff here
}
Thank you very much.
Would you please let me know the item available from $payment_data and $cart_items ?
Use the following inside that custom function so it writes the array items in the log file:
wp_eStore_write_debug_array($payment_data);
Enable the debug option (if you don’t have it enabled already) then do a test and you will see the items in the post payment processing log file.
Thank you very much