Forum Replies Created
-
AuthorPosts
-
Nico
MemberHey @xiaojing,
Thanks for getting in touch with us!
I just tried this in my local test site and it’s working as expected. But I could see what you describe in your site. Can you please follow the steps described in our Testing for conflicts guide? This way we can see if this is a problem in our plugin or a conflict with the theme or other installed plugins.
Please let me know about it,
Best,
NicoSeptember 26, 2016 at 4:32 pm in reply to: Issues with how events are displayed in Lists vs. Calendar View #1168959Nico
MemberThanks for following up @Inbok and sorry for the delay in my reply! We don’t monitor the forums during the weekends so Mondays are pretty busy!
Yes, having only the first event in a series display a price would be a good start.
Great, I prepared the snippet below for you. Just paste the code in your theme’s (or child theme’s) functions.php file:
/* Tribe, hide cost for recurring instances other than the first */
function tribe_hide_cost_for_recurring_instances ( $cost, $post_id, $with_currency_symbol ) {$event = tribe_events_get_event( $post_id );
if ( $event->post_parent > 0 ) {
$cost = '';
}return $cost;
}add_filter( 'tribe_get_cost', 'tribe_hide_cost_for_recurring_instances', 10, 3 );
It would be even better if purchasing tickets was disabled on all subsequent events in a series
It’s possible, paste the code below as explained above:
/* Tribe, remove tickets form for recurring instances other than the first */
function tribe_remove_tickets_from_recurring_instances ( ) {global $post;
// bail if The Events Calendar or Event Tickets Plus are not active
if ( !class_exists( 'Tribe__Events__Main' ) || !class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) return false;// bail if not single event page or if it's not a recurring event instance
if ( !is_singular( Tribe__Events__Main::POSTTYPE ) || $post->post_parent == 0 ) return false;// remove the tickets form for recurring instances
remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 5 );}
add_action ( 'wp' , 'tribe_remove_tickets_from_recurring_instances' );
Regarding other style changes to the recurring event instances, that’s possible as well. You’ll need to create some template overrides for the template that renders the ‘single-event’ part of the event views. Check the themer’s guide for the instructions on how to do this.
Please let me know if this helps,
Best,
NicoSeptember 26, 2016 at 3:51 pm in reply to: Displaying Attendee information on 'My Account' page #1168944Nico
MemberThanks for the follow-up Michael!
I could craft a sample template override for the shortcode output. If you are not familiarized with template overrides in our plugin, please read the themer’s guide first. Basically you’ll need to place the file below in ‘wp-content/themes/your_active_theme_or_child_theme/tribe-events/event-tickets/shortcodes/my-attendance-list.php’ and that should do the trick:
https://gist.github.com/niconerd/c585e653bd3bc8ff2787abdb7de22b36
Important: I haven’t heavily tested this, so please implement it first on a test site and check it’s working as expected.
Please let me know if it works as expected,
Best,
NicoNico
MemberHi Brad,
Thanks for getting in touch with us! Interesting question here 🙂
First of all thanks for the detailed explanation of the issue and for the recommendation of the QR scan app!
Regarding the issue you mention, taking a look to the code it seems possible to show a custom notice. But before I give this customization a try I would like to confirm if by ‘Ticket type’ you are referring to the ticket name field (https://cloudup.com/cdc4tZhuehz).
Please let me know about it,
Best,
NicoNico
MemberHowdy @usrhc,
Welcome to our support forums and thanks for reaching out to us!
Let me start by saying that we do not support all Woo extensions (Compatibility with WooCommerce Extensions), so it’s possible that tickets don’t fully work with the Woo Bundles extension.
Anyway, I would like to test this and try to reproduce this issue. Is this the extension you are referring to: https://woocommerce.com/products/product-bundles/? Can you please describe the actual steps to reproduce this? If you disable global stock for the events, Do the stock works as expected?
Once I can confirm this I will go ahead and log this bug in our product backlog, although I don’t think it will be fixed soon.
Please let me know about it,
Best,
NicoSeptember 26, 2016 at 11:17 am in reply to: Attendee list disappears when tabbing away from the updated Qty field #1168839Nico
MemberHi Marina,
Thanks for getting in touch with us! Sorry for the delay in our reply, but we do not monitor the forums on weekends.
I’ve checked out the link you pointed me to, but as the event has passed the tickets form is hidden. Browsing other events on the site, I wasn’t able to reproduce the issue as there was no attendee list 🙁
What I did, was to try and recreate this in my own test site, but I’m not seeing the error you described: https://cloudup.com/cNzAbCYK63u
Can you please point me to an URL where I can reproduce the issue? Have you tried following the steps described in our Testing for conflicts guide? If not please do so, this will indicate if it’s a theme related issue or not.
Best,
NicoNico
MemberNiko,
Thanks for the patience while I looked into this!
1. Yes, it is linking to the event website, and the image has to link there too.
The code below hijacks all call to the event link, and if possible changes the URL to point to the website URL instead. This will affect the image link as well as title links.
/* Tribe, change event link to event website */
function tribe_hijack_event_link ( $link, $postId, $full_link, $url ) {$url = tribe_get_event_website_url( $postId );
if ( $full_link ) {
$title_args = array( 'post' => $postId, 'echo' => false );
$name = get_the_title( $postId );
$attr_title = the_title_attribute( $title_args );
$link = ! empty( $url ) && ! empty( $name ) ? '' . $name . '' : false;
} else {
$link = $url;
}return $link;
}add_filter( 'tribe_get_event_link', 'tribe_hijack_event_link', 10, 4 );
Just paste the code in your theme’s (or child theme’s) functions.php file and let me know if it works for you,
Best,
NicoNico
MemberThanks for following up Gene!
I’ve added the state and country fields to the snippet (the change is not so lineal):
/* Tribe, set default values for venues in new event page */
function tribe_set_default_values( ) {// bail if we are not in an events page
if( !isset($_GET['post_type']) || 'tribe_events' != $_GET['post_type'] ) return false;$screen = get_current_screen();
// bails if it's not Add Event page
if ( 'add' != $screen->action ) return false;// bail if PRO is not active
if ( !class_exists('Tribe__Events__Pro__Default_Values') ) return false;$defaults = new Tribe__Events__Pro__Default_Values;
$default_city = $defaults->city();
$default_state = $defaults->state();
$default_country = $defaults->country();
$default_country = $default_country[1];?>
<script type="text/javascript">
jQuery('document').ready ( function ( $ ) {
$('input[name="venue[City][]"]' ).val('<?php echo $default_city; ?>');
$('select[name="venue[Country][]"]').val('<?php echo $default_country; ?>');
$('select[name="venue[Country][]"]').change();$('select[name="venue[State]"]' ).val('<?php echo $default_state; ?>');
});</script>
<?php
}add_action( 'admin_print_footer_scripts', 'tribe_set_default_values' );
Replace the snippet I sent before and try this one instead. Regarding the error description you sent I’m curious why the path to the error is ‘/plugins/JSO-updates/JSO-updates.php’ and not the functions.php file from your theme (or child theme). Anyway try pasting the code snippet in a plain text editor and then copy it over to the actual functions.php file.
Please let me know if it works as expected now,
Best,
NicoNico
MemberHey Jeanne,
Sorry for the delay in my reply! I missed this thread on Friday, and as we do not work during the weekends, I’m getting it now.
Try pasting the code below in your theme’s (or child theme’s) functions.php file:
/* Tribe, adjust tickets form width in pages */
function tribe_page_tickets_adjustment() {
?>
<script type="text/javascript">
jQuery(document).ready( function ( ) {if( jQuery('body.page form.cart').length ) {
jQuery('body.page form.cart').addClass('et_pb_row');
}});
</script>
<?php
}
add_action('wp_footer', 'tribe_page_tickets_adjustment');
I tested in my local install and it’s working as expected. I also inspected your site and saw the same use of jQuery so I guess it should work there as well.
Please let me know about it,
Best,
NicoNico
MemberSure Tim, let’s leave this thread open (it will be automatically closed in three weeks though).
Ragarding Woo Follow-Up plugin, you might want to reach out to the author of the plugin and ask about it. I guess it might be a bit of a stretch but you never know!
Hope you can find a workaround for this and thanks for keeping the community posted about it 🙂
Best,
NicoNico
MemberThanks for following up Mary!
Well, not sure how the tabs manager work but I guess enabling ‘tickets for tabs post type’ won’t make it work as you need (in that case the tickets would be added to the tab and will be the same for all products using that specific tab). By default tickets are appended to the_content that’s why the form shows in the description tab.
If I understand this correctly you want the tickets to show in a ‘Tickets’ tab within the product page (and not display in the description)? Maybe it’s possible to craft a shortcode to show the tickets form, Are you able to define the tab content per product or is the tab content the same for all products using it?
Please let me know if this is the case and I’ll try to find a workaround,
Best,
NicoPS: yeah this is a bit out of the scope of support we can provide, but I can give this a try 😉
Nico
MemberHey! Stocked to hear Tobias, thanks for the heads-up 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Hope you have a great week,
Cheers,
NicoSeptember 26, 2016 at 4:12 am in reply to: Can I use the event calendar linked to a product? #1168670Nico
MemberBuenisimo Victor 🙂
Voy a cerrar este ticket, pero no dudes en abrir uno nuevo si surgen nuevas preguntas. Podes postear en Español si queres 😉
Te paso un dato que revisando nuestra conversión no mencione: si bien no tenemos un ‘trial’ de nuestros plugins, podes comprarlos para probarlos y si después de hacerlo pensas que no te van a servir podes pedir un reembolso completo de la compra dentro de 30 días de hecha la misma (mas info: refund policy).
Saludos y éxitos con tu proyecto,
NicoNico
MemberHey @silktech, nice touch modifying the post type args! Thank for sharing the code to your solution 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Hope you have a great week,
Cheers,
NicoNico
MemberHi there David,
Thanks for getting in touch with us and sorry to hear about this issue 🙁
I just tried importing the feed in my local test and it’s working as expected. Can you please try again?
Not sure what happened but my guess is it might have been a temporary issue with the calendar URL, I’ve seen this a couple of times in the past.
If this is still not working, please try downloading the feed (right click and save as, on the feed link) and importing it as an ics file instead.
Please let me know if this helps,
Best,
Nico -
AuthorPosts
