I would like to open a popup on the Thank-You-Page (Order-received Endpoint) of a Woocommerce Store that I have created with Elementor. – Independent of payment method. (Paypal, Cash on Delivery, etc.)
The Popup Shortcode:
[elementor-template id="6485"]
I have now added the following code to the Function.php
add_action('woocommerce_thankyou_', 'nlmedia1_thankyou');
function nlmedia1_thankyou() {
echo do_shortcode('[elementor-template id="6485"]');
}
I also tried it for different payment gateways.
add_action('woocommerce_thankyou_COD', 'nlmedia1_thankyou');
function nlmedia1_thankyou() {
echo do_shortcode('[elementor-template id="6485"]');
}
Unfortunately, none of this has worked and I have not been able to find anything in this regard until now.
I would be glad about any help regarding the embedding of the trigger for an elementor popup. LG
2
Answers
Done.
#1
Downloaded this Plugin: Popup Trigger URL for Elementor Pro - Suki WordPress Theme
= Shows Popup URL.
#2
Function.php:
*POPUP_URL_HERE = Enter the URL of your Popup. (Dashboard > Templates > Popups > Trigger URLs > Show URLs)
I think, it’s the best solution for this