Home › Forums › Ticket Products › Event Tickets Plus › My event says "Log in before purchasing" although that option is not checked.
- This topic has 8 replies, 2 voices, and was last updated 8 years ago by
Lisa.
-
AuthorPosts
-
April 2, 2018 at 1:45 pm #1494707
Lisa
ParticipantHere is the item link:
http://hchlibrary.org/event/hats-and-horses-2018/April 3, 2018 at 6:48 am #1495220Victor
MemberHi Lisa!
Thanks for getting in touch with us!
The Log in before purchasing link is just an option for the user to log in before continuing with the purchase, but is not a requirement. The Buy Now button is showing up and users are allowed to purchase tickets.
On the other hand, if you enable the setting to require users to be logged in before purchasing tickets, it won’t show the Buy Now button and will display the Login to purchase message instead.
I hope that helps. Let me know if any follow up questions 🙂
Best,
VictorApril 3, 2018 at 7:47 am #1495283Lisa
ParticipantIs there a way to remove that text completely? We think it’s confusing.
Thank you!
April 4, 2018 at 5:58 am #1496214Victor
MemberHi Lisa!
Absolutely, that’s totally possible! I would suggest overriding the tpp.php template to make that happen. You can learn more about overriding calendar templates in our Themer’s Guide, but it basically boils down to this:
- Make a copy of the tpp.php template. It is located at wp-content/plugins/event-tickets/src/views/tickets/tpp.php
- Make a new folder in your theme called tribe-events
- Make a new folder in that one called tickets
- Drop your copied tpp.php file in that last folder
Now that the template is in your theme, you can modify it to suit your needs. In this case, remove or comment out line 137, where the following code is present:
<?php include tribe( 'tickets.commerce.paypal' )->getTemplateHierarchy( 'login-before-purchase' ); ?>Will this work for you? Please let me know. 🙂
Best,
VictorApril 4, 2018 at 8:04 am #1496305Lisa
ParticipantHi Victor,
I’ve followed your instructions and edited the tpp.php folder in my Avada Theme in the new folder. I commented out line 137 with no results. I kept on commenting out lines 128 – 139 and still no luck. the message is still there. What should I do next? Did I edit the incorrect file? Thank you in advance for your assistance.
April 5, 2018 at 4:32 am #1497214Victor
MemberHi Lisa,
I’m not sure how you are commenting out line 137, but just to confirm, it should be done like the following:
<?php //include tribe( 'tickets.commerce.paypal' )->getTemplateHierarchy( 'login-before-purchase' ); ?>Once the template is inside the right directory (/wp-content/themes/avada/tribe-events/tickets/tpp.php) it should work correctly.
Let me know how it goes.
Best,
VictorApril 5, 2018 at 6:22 am #1497340Lisa
ParticipantHi Victor
This time I copied and pasted the code into line 137 and it worked, instead of commenting out the line with /**. I am not a coder! Thank you so much for your help.
April 5, 2018 at 4:52 pm #1498146Victor
MemberGreat to know that works for you Lisa!
Thanks for following up to let me know about it. 🙂
I’ll close this thread now, but feel free to open a new topic if anything comes up and we’ll be happy to help.
Cheers,
Victor -
AuthorPosts
- The topic ‘My event says "Log in before purchasing" although that option is not checked.’ is closed to new replies.
