Nico

Forum Replies Created

Viewing 15 posts - 6,481 through 6,495 (of 6,506 total)
  • Author
    Posts
  • in reply to: Events Calendar title and breadcrumbs not showing #966503
    Nico
    Member

    Hi T,

    Thanks for your feedback once again. Let’s fix titles and if you can disable breadcrumbs that’ll be easier.

    Please confirm me that you’ve updated conditionals for the titles part. Also could you move the last conditional to the first place? The code should look like this:


    <?php if ( tribe_is_event_query() ) : ?>
    <h1 class=”h-landmark”><span>Finn friluftsskoler</span></h1>
    <?php elseif ( x_is_shop() || x_is_product() ) : ?>
    <h1 class=”h-landmark”><span><?php echo x_get_option( ‘x_renew_shop_title’ ); ?></span></h1>
    <?php elseif ( x_is_bbpress() ) : ?>
    //etc...

    Let me know if this works,
    Really looking forward to tackle this issue,
    Nico

    in reply to: Events Calendar title and breadcrumbs not showing #966438
    Nico
    Member

    Hi T,

    Thanks for the follow up and your patience on this. Glad we could fix the title at least 🙂

    @Conditionals, can you try this one instead:

    // this should target all calendar related pages
    <?php elseif ( tribe_is_event_query() ) : ?>
    <h1 class=”h-landmark”><span>Finn friluftsskoler</span></h1>
    <?php endif; ?>

    Can you put this condition first? I think it shows “Nyheter” for single events because it fits in the is_single condition first.

    @Breadcrumbs, I’ve refactored the code, please give it a try. Updated gist is here.

    Looking forward to solving this, just let me know how these updated fixes go.
    Happy to help,
    Nico

    in reply to: Stock levels not going down when tickets sold #966433
    Nico
    Member

    Hi Jamie,

    Thanks for the follow up. It appears to be those “test purchases” aren’t affecting the stock, but at least we know it’s not a problem with the code previously provided. I think there’s something wrong with “test purchase”.

    Are you making the “test purchases” from the front-end of the site? Have you confirmed those orders in the back-end?

    You can check out this article from the Knowlegdebase covering orders and attendees management.

    I’ll be waiting for your feedback,
    Happy to help,
    Nico

    in reply to: Filter events not showing in month view #966432
    Nico
    Member

    You are welcome Radiantrose. Always happy to help. I’m going to close this topic, but please don’t hesitate to create new topics if you need help with anything else.

    Nico

    in reply to: Filter events not showing in month view #966176
    Nico
    Member

    Hi Emmarose,

    Thanks for hitting the forums with your question. Sorry to say there’s no easy way to show results in the month of the next found event. When events are filtered in Month-view (unless you specify a different Date) results are always loaded in the actual Month. Crafting a customization to achieve this is out of our product support scope.

    Maybe you can provide users a direct link to upcoming events in their city, wich also sets the view to “list” (this way all upcoming events will show). To do so first perform the search yourself including the desired city for the link, and setting the view to “list”, then go ahead and copy the generated URL. E.g: a link to “Upcoming Events in New York” would look like this:


    Show Upcoming Events in New York

    Hope this helps to achieve what you are looking for,
    Have a great weekend,
    Nico

    in reply to: How to add a pre-existing ticket to an event? #966165
    Nico
    Member

    Glad to hear David 🙂

    Thanks for the feature request in Uservoice. You rock!

    I’m going to close this topic – but please don’t hesitate to create new topics if you need help with anything else. Have a great weekend,
    Nico

    in reply to: Stock levels not going down when tickets sold #966137
    Nico
    Member

    Hi Jamie,

    Sorry to see you are still struggling to get that right.

    I reproduced the solution Geoff pointed out for you and then “purchased” a couple of tickets. Went back to the event and the ticket stock is updated reflecting my purchase. So that’s working on my end.

    Have you made a sample purchase on your site to test this? If so please go to WP-Admin > Products > “Your Ticket”, once in there go to Product Data > Inventory and check the Stock Qty. Is it showing something different from what you are seeing in the Event Page?

    Please let me know, I’m sure we can make it work!
    Best,
    Nico

    in reply to: Event Submitted Template Community Events #966119
    Nico
    Member

    Hi operapreneur,

    Nice to see you around again 🙂

    I think I know what you are trying to achieve, but please correct me if I got it wrong.

    Have you tried creating a specific page-template just for Events? I understand that using the same template you use for pages may not be a fit. But having a customized page-template just for Events might work for this case. Let me outline the steps for this:

    1- First go ahead an create a new page-template for Events.
    If you are not sure how to do so, you can check out the Page Templates section of the WordPress Theme Handbook.

    2- Go to Events Settings > Display > Events Template and select the new page template for Events.
    Don’t forget to save changes.

    3- Test it!

    Hope that helps! Please let me know if I miss-understood the situation,
    Thanks,
    Nico

    in reply to: Events Calendar title and breadcrumbs not showing #966094
    Nico
    Member

    Sorry I skipped this:

    Also, men I go to single event, places, hosts etc the title becomes “Nyheter” (news).

    Can you share with me the conditional you ended up using for this?

    Thanks,
    Nico

    in reply to: Events Calendar title and breadcrumbs not showing #966079
    Nico
    Member

    Torbjøn,

    Thanks for the follow up!

    Regarding the huger title, from what I’m seeing in your site it seems some unwanted quotes got around the class name in <h1 class=”h-landmark” >. Can you check that on your end?

    I’ve created a Gist with that code here. Sorry for the broken code.

    Please let me know how this goes,
    Thanks,
    Nico

    in reply to: 500 internal server error upon install #966071
    Nico
    Member

    Hi kris10haley,

    Thanks for the follow up, and for trying out our Test for Conflicts Guide. I’m still needing more information to shed some light on this. An internal server error can have multiple causes and without further details it’s very difficult for me to know what’s causing it.

    Can you confirm that it was failing even with other plugins being deactivated and with wordpress default theme?

    Colud you reach your errors log? Maybe you can ask your server support team for those? Another way to achieve this is via .htaccess, here’s an article explaining how to configure this.

    I know this can be annoying 🙁 Thanks for your patience 🙂

    Thanks,
    Nico

    in reply to: Events Calendar title and breadcrumbs not showing #966036
    Nico
    Member

    Hi Torbjøn,

    Thanks for getting that for me! Let’s see how you can amend the code to make it work with The Events Calendar.

    What the Theme code is doing is switching the output based on content-types (page, portfolio, etc) and views (404, search, etc). You can add some conditional tags to add Events support. For example:


    <?php elseif ( x_is_portfolio() ) : ?>

    <h1 class=”h-landmark”><span><?php the_title(); ?></span></h1>

    // add this to check if you are in an event single view
    <?php elseif ( tribe_is_event() && is_single() ) : ?>

    <h1 class=”h-landmark”><span><?php the_title(); ?></span></h1>
    //

    <?php endif; ?>

    Here’s a list of all conditional tags available:

    https://gist.github.com/jo-snips/2415009

    Maybe you can merge some together in a single condition, and have something like:


    <?php elseif ( x_is_portfolio() ) : ?>

    <h1 class=”h-landmark”><span><?php the_title(); ?></span></h1>

    // combine as many as you like if the output is the same
    <?php elseif ( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) : ?>

    <h1 class=”h-landmark”><span>Events</span></h1>
    //

    <?php endif; ?>

    Regarding the breadcrumbs, that doesn’t seem to work the same way but you can use a similar approach:


    <?php if ( $breadcrumbs == ‘1’ ) : ?>

    // add custom event conditionals, in this case it will work for single events
    <?php if ( tribe_is_event() && is_single() ) : ?>
    // just copied the generated html code and replace the current location with Events
    <div class="x-breadcrumbs"><span class="home"><i class="x-icon-home" data-icon=""></i></span> <span class="delimiter"><i class="x-icon-angle-right" data-icon=""></i></span> <span class="current">Events</span></div>
    <?php endif; ?>
    //

    Please try the title fix first and then the breadcrumbs one, so if something is not working we can isolate the problem.

    Thanks,
    Nico

    in reply to: How to add a pre-existing ticket to an event? #966019
    Nico
    Member

    Hi foxrobinson,

    Thanks for the follow up! I’m sorry this isn’t a feature of our plugin at the time, as you say it’s something that users might expect to have out of the box. Also sorry for assuming that you would be comfortable with the database approach. Let’s try a less technical way around to achieve this.

    Please follow this steps:

    1- Find the Product ID, of the existing product you want to link to the event.
    (ID’s are present in the URL when you edit the product in WP-Admin, e.g: for this URL ‘…/post.php?post=21&action=edit’, Product ID is 21)

    2- Find the corresponding Event ID.
    (You can find the Event ID in the URL while editing the event, just the same way as in step 1)

    3- Paste this code in your ‘functions’ file, located at ‘wp-content/themes/<your_theme>/functions.php’.


    function tribe_link_product_event ( $product_id, $event_id ) {
    if ( !in_array($event_id, get_post_meta( $product_id, '_tribe_wooticket_for_event')) ) {
    add_post_meta( $product_id, '_tribe_wooticket_for_event', $event_id );
    }
    }

    4- Add this line below the pasted function, replacing <product_id> and <event_id> for the actual values. Add as many lines as needed.


    tribe_link_product_event(<product_id>,<event_id>);

    5- Navigate to the Event Page in WP-Admin and check if the ticket got linked.

    6- Ready! Now you can comment out or delete the lines added in step 4.

    Just in case you need to un-link a ticket from an event (but don’t want to delete it), you can repeat these steps, but adding this other function in step 3 and using it in step 4:


    // add this function in step 3
    function tribe_unlink_product_event ( $product_id, $event_id ) {
    delete_post_meta($product_id, '_tribe_wooticket_for_event', $event_id);
    }
    // use it this way in step 4
    tribe_unlink_product_event(<product_id>,<event_id>);

    That should do the trick, please let me know how this goes.

    Thanks,
    Nico

    PS: It would be great if you could suggest this as a feature idea at our Uservoice page, this way other users can up-vote it and ultimately it can be included in our product development roadmap.

    in reply to: Sending an email upon specific event ticket purchase #965883
    Nico
    Member

    You are welcome. I’ll go ahead and close this topic, but please don’t hesitate to create a new one if you need help with anything else.

    Best,
    Nico

    in reply to: How to add a pre-existing ticket to an event? #965774
    Nico
    Member

    Hi foxrobinson,

    Thanks for hitting the forums, hopefully I can help you with your inquire. First of all I’m sorry to say there is no “easy way” of doing this. Let me explain how this works.

    Basically what links an event to a product (ticket) is the product meta field _tribe_wooticket_for_event. It stores the value of the associated event ID. One way of editing/adding this value is to edit the post_meta table in the database. The SQL query to add the meta value (using default table prefix) should look like this:

    INSERT INTO wp_postmeta ('meta_id', 'post_id', 'meta_key', 'meta_value) VALUES (NULL, -PRODUCT_ID-, '_tribe_wooticket_for_event', -EVENT_ID-);

    Do you feel comfortable doing it this way? In case you don’t please let me know and we’ll try another way.

    Thanks,
    Nico

Viewing 15 posts - 6,481 through 6,495 (of 6,506 total)