Home › Forums › Calendar Products › Community Events › Event tickets pro
- This topic has 8 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 28, 2016 at 1:22 am #1063525
Conor
ParticipantHi,
I have a question, I am trying to convince my client to get the tickets pro but he does not like that it shows the remaining tickets / ticket count, if I get it is there a way to not show the tickets count on the checkout end, but also use the stock in the backend, it would just display sold out when all the tickets are sold?
January 28, 2016 at 5:02 am #1063565Conor
ParticipantOK, The above comment is not really important, I have purchased the tickets plus and see how it works. My question now is this, can you tell me how I edit the template for the event page, see here, http://wai.adessowebs.com/event/level-2-sicilia-10-02-16/
I want to move the tickets part up to the top of the page and change the layout. I have read through the help on your site but I cannot figure out where the file is.
January 28, 2016 at 12:34 pm #1063976Geoff
MemberHey Conor — thanks for reaching out and I’m stoked to see you giving Event Tickets Plus a spin. 🙂
We do have a pretty handy tutorial on how to move the ticket form without touching the plugin code that I’d suggest checking out.
As far as editing the layout of the form, you can find the template for it at:Â /wp-content/plugins/event-tickets-plus in the subfolder of the ecommerce platform you are using for ticket sales (e.g. WooCommerce).
From there, do check out our Themer’s Guide because it offers guidance on how to make a copy of the template and use it in your theme rather than editing the plugin’s core code.
Does this help you get started? Let me know. 🙂
Cheers!
GeoffJanuary 29, 2016 at 12:20 am #1064182Conor
ParticipantHi,
I have put the code snippet into functions.php but it is returning an error,
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ‘)’ in /home/adesso09/public_html/wai/wp-content/themes/atmosphere-pro/functions.php on line 59
I looked in the forums for this and someone said to move it to the top of the functions, but no help. Any ideas?
January 29, 2016 at 12:58 am #1064187Conor
ParticipantOK, this is driving me mad, I have read the following Themer’s Guide Customizing Template Files and the instructions do not match what I have. I do not have this file, /wp-content/plugins/the-events-calendar/src/views/default-template.php ????
I really need to edit the layout of my single events page but the instructions are not making any sense, sorry. Please help.
January 29, 2016 at 10:19 am #1064568Geoff
MemberHi Conor,
I have put the code snippet into functions.php but it is returning an error
Sorry about that! If there is a closing “?>” tag at the end of your functions.php file, then paste the snippet right before it. Or, you can paste it directly after the opening “<?php” tag in the file.
I do not have this file, /wp-content/plugins/the-events-calendar/src/views/default-template.php ????
That’s certainly odd! Is there a folder called the-events-calendar in your plugin folder at all? If so, what do you see in there?
Thanks!
GeoffJanuary 30, 2016 at 5:32 am #1064789Conor
ParticipantDOH!
I was looking at events calendar pro folder! Found the template files and have edited them, the single event is good, the way I want it but the list/single-event.php is acting funny,as you can see here, http://wai.adessowebs.com/events/list/
This is what I changed, put the image and description in div columns, but the image has shrunk, any ideas?
<div class="two-thirds first"> <!-- Event Content --> <?php do_action( 'tribe_events_before_the_content' ) ?> <div class="tribe-events-list-event-description tribe-events-content"> <?php echo tribe_events_get_the_excerpt(); ?> <a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'the-events-calendar' ) ?> »</a> </div><!-- .tribe-events-list-event-description --> </div> <div class="one-third"> <!-- Event Image --> <?php echo tribe_event_featured_image( null, 'medium' ) ?></div>FYI, the problem with moving the ticket form and the error it was returning (Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ‘)’ ) when I put it into the functions.php was down the PHP version, 5.2 was installed, I updated to 5.4 and all is fine. PAAMAYIM_NEKUDOTAYIM is Hebrew for double colon, :: you learn something​ new every day!
February 1, 2016 at 7:47 am #1065768Geoff
MemberSweet, nice work!
I think the image is small because it is wrapped in that .one-third class. Looks like that’s a CSS class from the theme, but it’s basically telling the image to occupy no more than 33% of the total container in which it sits. I would suggest taking those CSS classes out from both the description and the image and adding CSS to the elements themselves to style them so they sit side-by-side. For example:
.tribe-events-list .tribe-events-event-image img { float: right; }We actually have a good tutorial on how to use DevTools to find the CSS classes you need to style that I’d suggest checking out.
Did you have any other questions about moving the ticket forms or which files to modify? Let me know and I’d be happy to help as best I can. 🙂
Cheers!
GeoffFebruary 21, 2016 at 8:35 am #1079341Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Event tickets pro’ is closed to new replies.
