My event says "Log in before purchasing" although that option is not checked.

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.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1494707
    Lisa
    Participant
    #1495220
    Victor
    Member

    Hi 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,
    Victor

    #1495283
    Lisa
    Participant

    Is there a way to remove that text completely? We think it’s confusing.

    Thank you!

    #1496214
    Victor
    Member

    Hi 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,
    Victor

    #1496305
    Lisa
    Participant

    Hi 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.

    #1497214
    Victor
    Member

    Hi 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,
    Victor

    #1497340
    Lisa
    Participant

    Hi 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.

    #1498146
    Victor
    Member

    Great 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘My event says "Log in before purchasing" although that option is not checked.’ is closed to new replies.