Event Tickets Pro Not Working with Woo Commerce

Home Forums Ticket Products Event Tickets Plus Event Tickets Pro Not Working with Woo Commerce

Viewing 15 posts - 16 through 30 (of 49 total)
  • Author
    Posts
  • #1072192
    dave
    Participant

    Dear Geoff,

    I have just pasted the code i was trying, I might be calling the wrong page.
    <script src=”https://gist.github.com/tst-tech/026b9a8c5b529a5e6c9d.js”></script&gt;

    https://gist.github.com/tst-tech/026b9a8c5b529a5e6c9d

    Thank you
    Dave

    • This reply was modified 10 years, 2 months ago by dave.
    #1072343
    Geoff B.
    Member

    Good evening Dave,

    Thank you for the snippet!

    Actually based on what I see, the problem is the syntax of the single page conditional.

    In other words, I believe you would have better results by replicating the exact same syntax as the codes above it.

    It should look something like elseif ( is_single() && get_post_type(

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1073868
    dave
    Participant

    Dear Geoff,

    Yes, I can not get this. It doesn’t make sense to me.

    https://gist.github.com/tst-tech/4c46048bf06560a886df

    Not having a great day. 🙂

    Dave.

    #1074021
    Geoff B.
    Member

    Dear Dave,

    I am sorry you are not having a great day 🙁
    On the plus side, I will gladly help you get to the bottom of this.

    Based on your last Gist excerpt, I believe I might have miscommunicated. I apologize if I did create more confusion than clarity.

    If you don’t mind, I’d like to recap how this is supposed to work, just to make sure we are on the same page:

    1. Your WordPress theme displays things based on the information based on the rules it contains. Depending on what it’s trying to display, it will call different files (archive.php, single.php, etc..).
    2. If you want to modify a rule or add new ones, you have a couple of options: edit the said file directly (archive.php, single.php, etc..) OR take a look at what that file is doing and define rules pertaining to that file’s elements straight in the functions.php of that file (which is what we are doing)

    In other words, there is no need to include a complete page template in your functions.php file. That will unfortunately not work.

    The only part that should be in functions.php (on top what was already there prior to your edits) should be the IF conditions (lines 82 – 110) of your last snippet. Everything else does not belong there.

    Furthermore, I would recommend something more along the lines of $title = get_the_title(); for your events conditional.

    Once again, sorry about all the confusion.

    Let me know how that goes and hang in there!

    Geoff B.

     

     

    #1074154
    dave
    Participant

    This reply is private.

    #1074749
    Geoff B.
    Member

    Hey Dave,

    Wow! You are right, lots of action in your neck of the woods.

    Hang in there and let me know how your changes go.

    Have a great day!

    Geoff B.

    #1074791
    dave
    Participant

    Dear Geoff,

    Question, As you know I am working on (http://gosine.me/event/2016-silc-conference/). I have changed the template back to the default tribe’s template. So now the top is showing “Tribe_events”. I just want to confirm that what I am trying to edit is the single event.

    Been looking at the Conditional wrappers for Event Views and just want to make sure this is for the single event.

    https://gist.github.com/tst-tech/4c46048bf06560a886df

    Dave

    #1077641
    dave
    Participant

    Dear Geoff

    I gave up on trying to solve it the nice way. So looked at the problem another way and came up with this.

    https://gist.github.com/tst-tech/4c46048bf06560a886df

    Would this be safe?

    Dave.

    #1078500
    Geoff B.
    Member

    Hello Dave,

    Let me answer a couple of your questions.

    I have changed the template back to the default tribe’s template. So now the top is showing “Tribe_events”. I just want to confirm that what I am trying to edit is the single event.

    Yes, absolutely. this is the single event. From a technical standpoint, a single event uses the same template file than a single post (single.php), hence the funky title display.

    In other words, to follow your existing code:
    elseif ( is_single() && get_post_type( $post->ID ) == "tribe_events" ) {
    $title = ...

    But as we talked about before, the thing is that this is all under a WooCommerce based function (woo_display_top_section).

    My best recommendation would be to talk to the template’s author to get a better sense of how to add such a condition to work nicely with the theme.
    As much as I love to help, as you know the scope of my support for a specific theme is unfortunately limited to getting you started.

    As per your other approach, I like the fact that you are trying to separate this from the woo_display_top_section function code.
    However, applying this to every single page that is not home might be a bit overkill (I’m not sure that would work as expected).

    To make a long story short, what you are trying to do is:

    IF is_single AND post type = tribe_events , THEN change the way the title of the page is displayed (or the whole header if you prefer).

    You are almost there!

    Have a good week-end,

    Geoff B.

    #1079557
    dave
    Participant

    Dear Geoff,

    I hear you and its not the best way to write the code. I am just getting a miffed at Woo. I have asked twice for help on how their code works and both times they just pushed back saying I need to talk to tribe’s. With out trying to understand the problem. The first time after I explained a bit more they showed me the location and that was it. The second time they just closed the ticket. I am going to try for a third time and lets see what happens.

    Thank you for all your help and will get back to you in a few days.

    Dave.

    #1080401
    Geoff B.
    Member

    Hey Dave,

    Hmmm, I’m sorry to hear you are struggling with Woo.

    Keep me posted on your progress.
    I’d be super happy to witness your success on this daunting task 🙂

     

    Once again, hang in there!

    Geoff B.

    #1080584
    antoine
    Participant

    Hi,

    I have the same problem

    Using event calendar pro with ticket event plus, but it not work.

    With calendar normal, i have added ticket who work properly, but now, since upgrade to calendar pro, nothing is working

    Could not add ticket in any event, but there is a message that’s add are ok.

    I really don’t understand.

    Thanks for your help

    #1081174
    Geoff B.
    Member

    Good evening Antoine,

    Thank you for reaching out to us.
    We are sorry to hear you are experiencing a similar issue.

    We are absolutely looking forward to helping you, but in order to do that and give you the proper advice, could you please open a separate thread using the following link: https://theeventscalendar.com/support/post/

    As you might suspect, even when issues are similar, the actual cause can be quite different.

    Thank you for your understanding.

    Geoff B.

    #1081247
    antoine
    Participant

    Hi Geoff,

    Thanks for your reply, i have try many operation founded here, and able to reactivate ticket event plus with descativating “WPML language”.

    It seem to not compatible …

    #1081555
    Geoff B.
    Member

    Hello Antoine,

    You are absolutely right, WPML is not yet compatible with Event Tickets Plus (although we are looking forward to make it compatible).

    For now, we only offer WPML compatibility for the basic the Events Calendar and most of the Events Calendar Pro (to be completed in the near future) plugins.

    Once again, thank you for your understanding and I still recommend opening your own thread should you require assistance.

    Have a great day!

    Geoff B.

Viewing 15 posts - 16 through 30 (of 49 total)
  • The topic ‘Event Tickets Pro Not Working with Woo Commerce’ is closed to new replies.