- This topic has 4 replies, 2 voices, and was last updated 4 years, 4 months 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.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › Thankyou page – Include variations information
Tagged: thankyou page
Hi,
How can I access the variations information in the thankyou page? Is there a tag I can use?
Thanks
Colin.
Not at the moment. The standard thank you page shortcode should show the details with the variations that was purchased.
If you are customizing it using the “asp_stripe_payments_checkout_page_result” filter then you can get all the transaction data and fully customize that output:
The $txn_data array will contain the transaction and item data that you can use.
Thanks for the reply.
Yes. I have created a thank-you page for this product.
If I use the filter hooks to modify thank-you on the standard page — I assume that will be for all products ? — there is no per product setting on that ?
Am I correct?
Thanks
Colin.
The filter will pass additional arguments that will have the product ID in there. So in your custom code, you can check that product ID and then override the output only if you want to handle that one. Otherwise, you will just return from that function and it will show the default that comes from our plugin.
Thankyou.