Support

Home Forums Ticketing Add-on Event price shows as 0.00 in registration confirmation page/email (2)

Event price shows as 0.00 in registration confirmation page/email (2)

Posted: April 2, 2013 at 2:30 am

Viewing 3 reply threads


Francis Porter

April 2, 2013 at 2:30 am

Hi
Is there a shortcode to show the Total Cost on a ticket yet – I note in a previous Post that you were working on this but cannot find a short code. Thanks
previous post
WP3.5.1
Event Espresso – 3.1.30.7P

  • This topic was modified 4 years, 9 months ago by Garth.


Dean

April 2, 2013 at 5:54 am

Hello Francis,

The ticketing shortcode [cost] was change in 2.8 to use the final_price variable.

However I am assuming you want to see the price for all tickets purchased, eg if a customer buys 5 tickets at $10 each you want to show $50 ?

If so this wont do it for you.

I have added a gist here https://gist.github.com/Apina/93f5e9eef66e4ad7c898 which can replace the functions.php in the Ticketing add on’s directory which will add a shortcode called [tcost] which basically multiplies quantity by ticket price.

This will only work when the additional attendees have no extra information (no data at all no names etc), as otherwise they are set up as individual attendees and thus quantity will always equal 1 currently.

I will raise a ticket and see if I can get this added into future ticketing add on versions.


Francis Porter

April 4, 2013 at 1:43 pm

Hi Dean
Many thanks for this. Do I add this to the main folder: plugins/espresso-ticketing/ or to the folder uploads/espresso/tickets?


Dean

April 4, 2013 at 11:58 pm

Hi Francis,

Unfortunately it would need to go in the main add on plugin so plugins/espresso-ticketing/.

I say unfortunately as any updates will over write the changes, so it would be a good idea to keep a copy.

Viewing 3 reply threads

The support post ‘Event price shows as 0.00 in registration confirmation page/email (2)’ 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