Posted: August 7, 2018 at 1:20 am
|
When I send this message:
I get the response back like this:
Which shows the price of $100, however, when I go to the WP site and view that Event, the price is empty. Everything else is in there, just not the price. Am I missing something? |
Yes you also need to send a POST request to the datetime_tickets endpoint and provide the TKT_ID (in this case 121) and the DTT_ID of the related datetime from the same event. It will be similar to this screenshot: |
|
|
I guess I’m confused as to what the Date Time has to do with the Price of the Ticket? |
The datetime is what relates a ticket to an event. You’ve managed to create a ticket, give it a name and price and so on, but you haven’t connected it to a datetime yet. The ticket will only show up in the UI if it’s related/assigned to a datetime that’s related/assigned to an event. |
|
|
I have code that isn’t shown that does that, and all that works. The problem is that the PRICE doesn’t show up in the UI. The Ticket is related to the correct event, it has the right name, dates, and quantity. The problem is that the PRICE doesn’t show up in the UI. No way to attach a screen shot |
Sure there is, you just need to host the image and post the URL: https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots However, I can reproduce and the reason this is happening is there is no price object for the ticket and no relationship within ticket_prices. You need to create a price object with the relevant details ( |
|
|
Thanks, that’s the part I was missing. I’ll give it a try and let you know. |
|
That worked for me. Thank you. |
You’re most welcome. Just let us know if you run into any further problems. |
|
The support post ‘Ticket Price is not showing up in the UI when added by API’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.