Forum Replies Created
-
AuthorPosts
-
Iain
ParticipantWoohoo.
Managed to fix most things myself trial and error.
Just the text issue now.Iain
ParticipantHey Geoff.
That worked a treat.
Now if I can impose on you once more π
There is a formatting issue when the screen size is adjusted down to Mobile Phone size.
See attached screen capture.
Note that the +/- isn’t centered (and isn’t centered at normal size either), the “Ticket Name” increases in size in comparison to the rest of it (can all that text display on a line each?), and the spacing between the checkbox and text is probably a bit large and causes the text to wrap.
I’ve looked at the css myself, but it isn’t really my fortΓ¨, so I was wondering if you could take a look.
I know it’s probably outside your scope, so if you say no I completely understand.Cheers
IainIain
ParticipantThis reply is private.
Iain
ParticipantOops.
I forgot something.
I’ve noticed a formatting issue.
If I need to raise a new ticket for this I understand.
See the attached screen cap.
The text that shows the number of available positions is split to the right of the +/- tickets and underneath it.Cheers
IainIain
ParticipantWell that was a bust.
I think I have wasted enough of your time.
Once again, thank you very much for all your help.Cheers
IainIain
ParticipantHi Geoff.
I’ve tried moving things around with the same result each time, so I’m at a loss.
I would still like to to try echoing a message for logged out users with whatever template is used for displaying the Event description.
Can you tell me what template that is?Cheers
IainIain
ParticipantHi Geoff.
I just tried the code with the else statement, and it does the same thing, ie. the page just sits there trying to load but doesn’t proceed any further π
Do you think it might be possible to modify an Event Template instead of the tickets.php to do the same thing?
Maybe the one that displays the Event Description.
If so, which template would you suggest?
I’ll have a crack at that instead.Cheers
IainIain
ParticipantHi Geoff.
I’ve fixed the error message by doing the following:
Changed line 94 in the tickets.php to read “include dirname( __FILE__ ) . ‘/meta.php’;”
and, copying the meta.php from /wp-content/plugins/event-tickets-plus/src/views to /wp-content/themes/enfold-child/tribe-events/wooticketsIs this the right thing to do?
Iain
ParticipantOK, I just found a major problem π
Using the modified ticket.php stops logged out visitors seeing the ticket.
But logged in visitors will see the following error message:Warning: include(/home/jetski/public_html/wp-content/themes/enfold-child/tribe-events/wootickets/../meta.php): failed to open stream: No such file or directory in /home/jetski/public_html/wp-content/themes/enfold-child/tribe-events/wootickets/tickets.php on line 94
Warning: include(): Failed opening ‘/home/jetski/public_html/wp-content/themes/enfold-child/tribe-events/wootickets/../meta.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/jetski/public_html/wp-content/themes/enfold-child/tribe-events/wootickets/tickets.php on line 94
Any ideas?
Cheers
IainIain
ParticipantHi Geoff.
Great suggestion about the “else” condition.
I tried it but with no success.
I changed this:<?php if ( is_user_logged_in() ) { ?>
<form action=”<?php echo esc_url( $woocommerce->cart->get_cart_url() ) ?>” class=”cart” method=”post”to this:
<?php if ( is_user_logged_in() ) {
} else {
echo ‘To purchase a Ticket, you must be a Registered Member and be Logged In.’;
} ?>
<form action=”<?php echo esc_url( $woocommerce->cart->get_cart_url() ) ?>” class=”cart” method=”post”But all that happened was the page with the Event wouldn’t load.
I also tried adding the same thing at the end of the code area for want of a better word, with the same result.
Any suggestions?I actually checked the Themer’s Guide myself and just didn’t pick up on the extra folder inclusion.
But that part is all good now.Once again, thank you for all your assistance.
Cheers
IainIain
ParticipantHi Geoff.
You really helped me out there.
Your change to the template worked exactly as it should.
I am trying to analyse what you did, and I can see that you added <?php if ( is_user_logged_in() ) { ?> before the form action, and <?php } ?> after the form.
Is that all you did?
Now that I’ve seen this I understand perfectly, so thank you so much.Now I just have one more thing to discuss regarding this.
The edit to the template file only works when I do it in the core template file.
If I use the template in /wp-content/themes/child-theme/tribe-events/tickets/wootickets/tickets.php, it doesn’t work.Any thoughts?
Cheers
IainIain
ParticipantHi Geoff.
So I have been reading the WordPress Codex link you gave me and it seems to me that the function you mentioned is supposed to go in the functions.php file, and then make reference to what you want to do.
So it’s confused me because I thought I was editing the tickets.php file.
Any comment you have on this will be much appreciated.Cheers
IainIain
ParticipantCool.
OK, now I just have see whether I am actually smart enough to work out how to do this.
If I am not, are there people you can recommend that I can pay to do it?
I am assuming that this is wayyyyy out of the scope of the support you can supply right?Cheers
IainIain
ParticipantAlso Geoff, I am using a Child Theme to stop any customizations like altered Template Files being lost when there is a Theme upgrade.
That being the case, where would I put the edited template file?Would it be this:
/wp-content/themes/child-theme/event-tickets-plus/src/views/wootickets/tickets.php
or somewhere else?
Cheers
IainIain
ParticipantHey Geoff.
I will definitely look at what you have suggested.
But before I do, I just want to make sure that I understand.
By overriding the tickets.php template and wrapping the ticket form in the “is_user_logged_in()” function to display it only for logged in visitors, the Event will still be visible, but Tickets won’t be available unless you are logged in?
Is that correct?
Cheers
Iain -
AuthorPosts
