'How to show a list of recent Woocommerce orders in a Elementor form
I have a Woocommerce shop with Elementor (Pro). I created a form with the Elementor form widget, where I would like to add a dropdown (could be a normal dropdown, or Ajax is also good) which show the 10 most recent orders of the customers (who is logged in) with the order number, date and status to show.
For non customers I would like to show a message Please login to view your recent orders. I searched the internet but couldn't find anything that's suitable. Hopefully someone can help me with this.
Thanks in advance, Vasco
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
