Support

Home Forums Event Espresso Premium Second ticket added manually through seating chart add has zero price

Second ticket added manually through seating chart add has zero price

Posted: December 2, 2014 at 5:35 pm

Viewing 5 reply threads


mhanks

December 2, 2014 at 5:35 pm

Wordpress version: 4.0.01
Event Espresso – 3.1.36.6.P

When I add my second ticket manually the ticket price shows up as zero. When someone buys the tickets through the site, it does appear to be charging correctly. If there are more tickets, they appear to be charging correctly.

Any ideas? I can provide any documentation you might need to help.


Josh

  • Support Staff

December 3, 2014 at 11:31 am

Hi there,

Can you let us know the steps you are taking when you manually add a second ticket? Is this in the WordPress admin? Thanks.


mhanks

December 3, 2014 at 1:55 pm

I go into event espresso. I am master admin. I choose the event. I choose add attendee. I choose the seat and enter the registration info. And then I repeat for the balance of attendees. If 2 attendees, one has a price, if 3, two have a price and so on.


Sidney Harrell

December 3, 2014 at 2:11 pm

I have the fix, but it’s not pretty. You’ll have to go into plugins/event-espresso/includes/admin-reports/add_new_attendee.php and replace lines 225-239 with this:

if (isset($data_source['seat_id'])) {
				
				// Added for seating chart add-on
				// If a seat was selected then price of that seating will be used instead of event price
				$final_price	= (float)seating_chart::get_purchase_price($data_source['seat_id']);
				$orig_price		= (float)$final_price;
				$price_type		= $data_source['seat_id'];
			
			} elseif (isset($data_source['admin'])) {
				
				$attendee_quantity = 1;
				$final_price	= (float)$data_source['event_cost'];
				$orig_price		= (float)$data_source['event_cost'];
				$price_type		=  isset($data_source['seat_id']) ? $data_source['seat_id'] : __('Admin', 'event_espresso');
			

This basically flips the order in which those checks happen. I tested it out and it looks like it works.


mhanks

December 3, 2014 at 2:27 pm

So this fixes the code and then I just need to redo my registrations?


Sidney Harrell

December 4, 2014 at 2:32 pm

Yes, any attendees that you add after making the fix should be entered correctly.

Viewing 5 reply threads

The support post ‘Second ticket added manually through seating chart add has zero price’ 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.

Event Espresso