- This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 › Add customer name to transaction result for Thank You page
Tagged: customize, order summary, Thank you page, Tweaks
I’m using the [wp_eStore_transaction_result] shortcode on my thank you page (which is great).
It would be really nice to thank the customer by name. Is it possible to add the customer name to the data that is available with this shortcode?
There is a filter hook there so if you are a developer, you can customize the output using the filter.
If you need us to code the customization for you then use the following option:
I can code it, what is the filter hook name?
The name of the filter hook is eStore_tx_result_session_data
Example Code:
add_filter('eStore_tx_result_session_data', 'custom_thank_you_msg', 10, 3);
function custom_thank_you_msg($output, $payment_data, $cart_items){
//TODO
//Modify the value of the $output variable to what you like to show on the thank you page.
//The $payment_data and $cart_items arrays contain transaction data.
return $output;
}
Fantastic, thanks.