Posted: March 6, 2013 at 1:06 pm
|
I’m using the Event Espresso API Plugin to retrieve data for a mobile app. It works great, but I’m trying to get the pricing data for an event that has 3 pricing options (Single Participant, Family (Head of Household), Additional Family Members)), but when I retrieve the data, I can’t see the names. All I can see is Members Admission, or Member Price as shown below: <code>"Prices": [ { "id": 78.2, "name": "Members Admission", "amount": 250, "description": null, "limit": 30, "remaining": 17, "start_date": null, "end_date": null, "Pricetype": { "id": 4, "name": "Member Price", "is_member": true, "is_discount": false, "is_tax": false, "is_percent": false, "is_global": true, "order": 0 } }, { "id": 79.2, "name": "Members Admission", "amount": 0, "description": null, "limit": 30, "remaining": 17, "start_date": null, "end_date": null, "Pricetype": { "id": 4, "name": "Member Price", "is_member": true, "is_discount": false, "is_tax": false, "is_percent": false, "is_global": true, "order": 0 } }, { "id": 77.2, "name": "Members Admission", "amount": 150, "description": null, "limit": 30, "remaining": 17, "start_date": null, "end_date": null, "Pricetype": { "id": 4, "name": "Member Price", "is_member": true, "is_discount": false, "is_tax": false, "is_percent": false, "is_global": true, "order": 0 } } ] </code> How can I get the correct names? |
Hi Adam, It looks like you have Member prices added to the event. This could be causing the problem. Try checking for that and removing the member prices. |
|
|
I’m sorry, but I don’t understand exactly. What do you mean by Member prices added to the event and how do I remove them? |
Your events are going to have member prices if you have the WP User Integration add-on active. You can set the member prices to be the same as the general admission prices if you want or deactivate the WP User Integration add-on if you aren’t planning on using it. |
|
In Event Espresso > Event Overview select your event. You will then probably see event prices here: http://awesomescreenshot.com/00610jpp7d Those need to be removed, or the names need to be changed. |
|
|
I’m not using the User Integration Add-on. As far as Event Espresso goes, I’m only using: |
|
Jonathan, I don’t see that Member Pricing section. All I have is a standard pricing section. Here’s a screenshot: |
It looks like the API might have a bug in it, so it is returning the wrong price values. I created a ticket for our developers to look into it. |
|
yes this was a bug in the API. Even though the members addon wasn’t active, members prices are actually still saved in the DB, and were getting returned instead of the normal prices. |
|
|
Any news on when the next release of the API will be available? |
Hi Adam, It still needs to go through some testing. Would you to try out the latest build? If so we can email you a copy of it. |
|
I don’t think we have posted the latest build of the API or iOS app yet. |
|
Hopefully we can release an update today. |
|
|
Yes, Josh, I would love to receive the latest build. adam@adamwadeharris.com |
The update to the JSON API is in the pre-release channel. |
|
The support post ‘API Pricing Name’ 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.