Posted: February 15, 2018 at 10:53 am
Hi: PRICE IS WRONG ON MY FRONT END: We can’t figure out WHY this price is wrong as back end has no pricing like this at all: |
|
Hi Lori, The place where the price is displaying as $232 appears to be the result of some custom code. May I ask what’s the PHP code being used there? It also appears that the database returns $255 as the price for the tickets for that event. Here’s an example: https://www.cocciardi.com/wp-json/ee/v4.8.36/datetimes/98/tickets If you can complete the form on this secure page we can investigate further. |
|
Hi Lori, You’ll need to contact the developer that did the customizations. There’s a number of things in their work that need to be fixed to avoid the incorrect prices. A few specific items that need to be fixed: 1) in the theme’s single-espresso_events.php file, on line 86 and 87 it has this: The above is what outputs the Cost of $232 (where it should be 225). The reason it’s showing 232 is because the query there doesn’t exclude archived tickets. 2) a similar issue happens later in the query starting on line 125. That query also needs to exclude archived tickets. 3) not mentioned in this support topic, but ideally the tickets for datetimes that have passed shouldn’t continue to be displayed for sale. As a short term solution I’ve manually moved those archived tickets so they’re attached to the January datetime. This way the tickets for the April and July courses will use the correct ticket prices. |
|
Hi: My developer is part of this post and has my login. Thanks for the very detailed issue. How do you automatically archive those tickets? |
|
Tickets are automatically archived when you change a ticket’s price. |
|
The support post ‘FRONT END PRICE IS WRONG’ 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.