Hi, after taking ages creating all the events for my customer , I am asked if they can see a list of orders, actually a reasonable question. Woocommerce orders table is not great and user friendly,
I see the url of the order display is; admin.php?page=stec_menu__tickets&view=orders&ticket_id=3208
could that not be altered to show them all?
What would be great a short code / tags to do this, but I really don't mind using a bit of code, as they are talking about using something different. :(
Ideally We want to display order name ( person who ordered it ) Ticket Name - and Venue details ( hopefully a custom field ) that lets us select more than one choice from a drop down.
I don't mind querying the DB if necessary and then echoing output, unless there is a hook or filter you can show me how to do this much more easily?
Hi, after taking ages creating all the events for my customer , I am asked if they can see a list of orders, actually a reasonable question. Woocommerce orders table is not great and user friendly,
I see the url of the order display is; admin.php?page=stec_menu__tickets&view=orders&ticket_id=3208
could that not be altered to show them all?
What would be great a short code / tags to do this, but I really don't mind using a bit of code, as they are talking about using something different. :(
Ideally We want to display order name ( person who ordered it ) Ticket Name - and Venue details ( hopefully a custom field ) that lets us select more than one choice from a drop down.
I don't mind querying the DB if necessary and then echoing output, unless there is a hook or filter you can show me how to do this much more easily?
Would be awesome!
Hi,
This will help you to get started:
Since we'll place a new admin page in the calendar we'll use only the calendar plugin folder.
Open the main calendar file stachethemes_event_calendar.php and register new admin menu Orders by adding this line at the very bottom:
Then unzip the archive I've attached and place the orders folder in
---
---
Now you will have new submenu STEC -> Orders.
The orders folder contain two files index.php and list.php .
The index.php retrieves all orders that contain tickets in them and then displays the list.php file.
You will want to start working with list.php .
It already contains orders loop. I hope you get the idea what's going on there.
Attached files: orders.zip
Stachethemes Developer
For the meta data I'd suggest you to include this function in the list.php file.
It's a helper function to obtain the meta value by key name.
And then inside the loop you get the meta value like this:
---
Obtaining customer name from the $order:
Stachethemes Developer
Excellent - all done, now I will apply formatting and an order by button , thanks for your help so far!