Posted: July 28, 2013 at 8:44 am
Hi…I’m setting up my first event on Event Espresso, and have the following questions. I have the Business License: As background, I have an event with Gold / Silver / Bronze / Student pricing. Also, one can purchase autographed books. A ticket should be generated for each attendee and for each book purchased. For reference, here’s a link to the event that I’m working. I also added a free Test Ticket. http://torat-el.org/albright-registration/ 1) I’m using the shortcode ESPRESSO_CART_LINK on the registration page above. On the actual page, there is a link that appears called “Register”, which then turns to “View Cart” after clicking. How can I add a “Register Online” button which take the purchaser directly to the cart, without having to click twice? 2) In the shopping cart, the ticket names get truncated. Is there a way in the shopping cart to have longer ticket names wrapped to a second line rather than getting cut off? Alternately, in the shoppng cart, is there a way to display a “description” of the ticket on a separate line, just below each ticket’s name? 3) After placing an order, a confirmation page appears with the statement “Thank you! Your registration is confirmed…. “. Where can I modify the text in this confirmation message? 4) On my event ticket, I would like to have a different Gravatar appear for each ticket type (ie. Gold / Silver / Bronze / Book). How can I set a different Gravatar to appear for each ticket type? 5) On the ticket title, how can I have the name of the event appear left justified? 6) On the ticket page, there are two fields “More Information:” and “Ticket Information:” How do I specify what text appears in these fields, or suppress the fields from printing on the ticket? Thank you!! |
|
Hi zappohll, 1) If you add ‘direct_to_cart=1’ to the short code it will automatically direct users to the cart. So for the example posted above, something like: [ESPRESSO_CART_LINK event_id=”2″ direct_to_cart=1 moving_to_cart=”Redirecting to cart…”] Should work as expected. For more shortcodes available with Event Espresso see https://eventespresso.com/wiki/shortcodes-template-variables/#add-to-cart 2) There is a 50 character (including spaces/special characters) limit within the database for the tickets names. Without altering that limit (not recommended) the text cutoff will always happen unfortunately. Do the ticket names display in full within the event page itself? 3) There’s two ways to edit those files. The recommended way is to change the text by ‘translating’ it to how you would like. The post https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ will guide you through. The other way is to edit the file to hardcode the new text. That message is stored within the file event-espresso\templates\payment_page.php Copy this file to \wp-content\uploads\espresso\templates and the edit the file there. This will make sure your customization are not removed after event espresso updates, but sometimes the templates themselves also need to be updated so you would need to do that manually. 4) The gravatar’s use the attendees email to pull the gravatar image in for the tickets. I can’t think of any easy way to change this to use the ticket type easily. Maybe someone else can offer a suggestion? 5) The event name should already be left aligned in the default ticket template. For step 6 you may need to edit the template, so this would be an ideal time to check. Failing that I may be looking at something different, can you upload an image pointing out what you mean? 6) More Information refers to the venue_description & Ticket Instructions refers to the ticket_content. Venue description is set within the Event Espresso->Venue Manager for each venue. Ticket content is set within Event Espresso->Ticket Templates. When you create a ticket you can input a description/instructions. If you would not like to use these and remove them from the ticket template you can follow https://eventespresso.com/wiki/how-to-create-a-custom-ticket/ to create a new one. Or remove lines 74 to 77 from the default template. Hope that helps. Tony |
|
Thanks so much for your helpful reply! 1. This suggestion worked…thank you! 2. Given the 50 character limit for the Ticket Name in the shopping cart, is there a way to display in the shopping cart a Ticket Description? I would like a way to describe what is included with each Ticket type, as the buyer is deciding which ticket(s) to buy in the shopping cart. 3. I tried hard coding the text in the file event-espresso\templates\payment_page.php and copied this file to \wp-content\uploads\espresso\templates. Then I deactivated and re-activated the plugin, but I don’t see the change taking effect. Is there something else that is needed to be done to make sure they system picks up the modified payment_page.php file? 4. Is there a way to at least “hardcode” or replace the gravatar, so that a logo for the event will appear on the printed ticket? 5. I posted a copy of a test ticket at http://torat-el.org/wp-content/uploads/2013/07/Test_Ticket1.jpg There are two formatting issues I need help with. The event name is not left justified. Also, the location, there is a blank line for Address Line 2…which I would think should be suppressed if Address Line 2 is empty, so that no blank line gets printed. 6. That worked great! Thank you! I appreciate your follow-up… |
|
|
For 4 & 5, you can copy the ticket template to uploads/espresso/tickets/templates and make modifications to it (rename it from index.php to something else). |
1) No problem. 2) Currently there is no way to include a Ticket Description unfortunately. It is possible to update the database to increase the character limit, you can do this manually through phpMyadmin or running a query such as:
That will update the limit to 100 characters. Please be aware that this may affect/be affected by future updates. As you are modifying database entries I would do a backup beforehand just to be safe. 3) No event espresso should just pick it up. You can check by going to Event Espresso -> Template Settings, at the bottom of that page it will tell you which files have been moved. Does it show that payment_page.php has been moved on that screen? Using the info Sidney posted above will get you almost finished. The text is justified using CSS within simple.css in espresso-ticketing\templates\css\ Remove the text-align: justify; within .ticket {}. (Line 19) |
|
|
For #3, that text also appears in a non-template file if you are using the shopping cart and the event is free. In that case, you may want to use this code (you can add it to your theme’s functions.php file): https://gist.github.com/sethshoultes/5650757 |
OK…I’m almost there…but I’m not a php expert. For #4, I want to update the index.php file to replace the gravatar with a fixed image that will appear on all tickets for the event. I have the event image uploaded at http://torat-el.org/wp-content/uploads/2013/08/CTE_AlbrightHeadshot1-150.png I believe that I have to replace the line in index.php I’ve created a duplicate copy of index.php in wp-content/uploads/espresso/tickets/templates How do I change the above code to pull in the fixed image above and have it appear next to the QRCode on the ticket? Can I explicitly refer to the URL above? Can you give me an example? Thanks!! |
|
Yes that’s the correct line to edit. To alter the code to display your img you basically just swap out the [gravatar] shortcode for an tag with your image url. Personally I would remove <div class="gravatar">[gravatart]</div> and replace with: <img src="http://torat-el.org/wp-content/uploads/2013/08/CTE_AlbrightHeadshot1-150.png"> so in the end that line becomes: <td width="22%" align="right" valign="top"><img src="http://torat-el.org/wp-content/uploads/2013/08/CTE_AlbrightHeadshot1-150.png"></td> |
|
Code highlighter gone a bit nuts, you can view the line here: As you can see its just an img tah linking with your image in src.
|
|
The support post ‘Setting up first event – questions’ 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.