Posted: August 16, 2016 at 4:01 pm
|
Hello, I’m not sure to understand the price system of EE. I try to implement an easy front-end form for user to manage their tickets. For information when I check on my database, the “esp_price” table is not updated when I delet an event. Thanks for your help, if you have documenation I take it. |
No, one price per ticket, but a ticket can have price modifiers. In the end though, it’s one totaled price per ticket.
No.
Yes. Your way forward in your endeavor to build a front-end ticket price editor will be to study the code that’s used to make the back-end ticket editor. |
|
|
One yes for two no, I progress ! Thanks for your answer.
Yes exactly, I study your core-code to associate the price to a ticket. And I have generated this following code, I want to use it for each new ticket, but its seems wrong now, if I understand your answer ? function vivi_add_prices_to_ticket($prices, EE_Ticket $ticket, $new_prices = FALSE) { //Variables utilisées $PRC_values = array( // Viviarto – On crée un nouveau prix pour chaque ticket $ticket->_add_relation_to($PRC, ‘Price’); |
Hi there, I should let you know that the support forums are not intended to be used for code reviews. It will be best if you can team up with another PHP developer, preferably one that has a strong background in OOP, that can help you with your code reviews. |
|
|
Hi,
I d’ont have find good documentations to understand the way that EE4 manage ticket, datetimes, prices, price type. So that explain why I open this post, then my code.
I wish ! I have contacted your list available on : https://eventespresso.com/developers/event-espresso-pros/ |
The best place for developer-centric documentation is the code itself. The development team has worked very hard to make sure that Event Espresso’s classes and methods are well-documented with PHP DocBlocks as well as inline. There are also development-specific documentation articles posted here: |
|
The support post ‘EE4 – Prices to a ticket’ 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.