Forum Replies Created
-
AuthorPosts
-
Vivianne
ParticipantThis reply is private.
Vivianne
ParticipantI cannot make the updates before the project goes live.
We are in a hurry to finish it.
But I downloaded and installed the plugins just a few weeks ago, they´re not so old.
And the problem occured right in the beginning.Is there some code which could fix this thing?
Vivianne
ParticipantSorry, this doesn´t work in my case.
If I write prices with a comma it doesn´t show the price anymore in the frontend.
It only works with a point.Vivianne
ParticipantI use Events Tickets Plus with Woocommerce and integrated the booking form to the list view with this code:
function tribe_etp_move_tickets_purchase_form ( $ticket_location_action, $ticket_location_priority = 10 ) { $etp_classes = array( 'Tribe__Tickets_Plus__Commerce__EDD__Main', 'Tribe__Tickets_Plus__Commerce__WPEC__Main', 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ); foreach ( $etp_classes as $ticket_class ) { if ( ! class_exists( $ticket_class ) ) break; $form_display_function = array( $ticket_class::get_instance(), 'front_end_tickets_form' ); if ( has_action ( 'tribe_events_single_event_after_the_meta', $form_display_function ) ) { remove_action( 'tribe_events_single_event_after_the_meta', $form_display_function, 5 ); add_action( $ticket_location_action, $form_display_function, $ticket_location_priority ); } } }You are right, this is browser specific. It occurs in Chrome.
But I can´t go further with this message, because it doesn´t appear in the code (so I can´t just put a display:none to it) and it doesn´t let me go the the cart.
I really need the max-quantity attribute because my client actually wants to have a specific message to appear (similar to the one now) if someone puts more tickets in the cart than available. But we need that as a standard in every browser.
Can you help me out here?Vivianne
ParticipantThanks for this code, this works. But only in the frontend.
In the backend my client needs to write prices in this format “79.50” instead of “79,50”.
Is there a workaround for that?Vivianne
ParticipantI am referring to the Events Calendar part. It doesn´t work with the posted code, it breaks my price format completely.
Vivianne
ParticipantThanks Geoff!
I solved it!So for other users searching for this option here is the code in my template which works perfectly:
<?php echo tribe_include_view_list( array( 'tribe_events_cat' => 'addcategoryname', 'eventDisplay'=>'upcoming', 'post_type' => 'tribe_events', 'taxonomy' => 'tribe_events_cat' ) )?>Vivianne
ParticipantI found something which seems to be easier to find a solution.
This code in my theme´s template produces the perfect list with every element I need and also with the booking form.<?php echo tribe_include_view_list( array( 'eventDisplay'=>'upcoming', 'posts_per_page'=>10 ) )?>But:
If I add this line'tribe_events_cat' => 23,it breaks and shows no event.
Without this line it shows all the events in every category.
How can I only show the events from one category?Vivianne
ParticipantThanks for your further explanation.
I can not solve it with the shortcodes. The code I posted already makes almost everything I need.
Just need the booking form in it. Is there something I need to add to the code in the functions.php in my theme (see the code above)?March 10, 2016 at 6:45 am in reply to: Move Search Bar (including Filterbar) to a Theme´s Template #1087128Vivianne
ParticipantThis works great, Geoff! Thanks a lot!
The only thing which doesn´t work is the filterbar.
How can I add the filterbar to this? I tried to insert the code from the file filter-view-horizontal.php in my homepage but this only shows the filter controls.
I only the category-filter. Is there a chance you can point me in the wrong direction?
I´m almost there… 🙂Greetings from germany!
VivianneVivianne
ParticipantYes, I want exactly the same list format on the category page as on the other sites.
What do you mean exactly with “do_shortcode approach”?
I found the shortcodes but if I use them, they don´t show my special list format which I created in my single-event.php. And I really need this format because it also holds custom fields.March 9, 2016 at 3:20 am in reply to: Move Search Bar (including Filterbar) to a Theme´s Template #1086575Vivianne
ParticipantThanks Geoff for your answer.
I think I wasn´t clear enough with my question:
I don´t need the whole “events” – site on my homepage. I only need the search bar (with the filter bar).
Best would be, if the “submit” – button would have a link on it to the “events”-site.
As I wrote, I almost got there but without the submit-functionality and without styling.It would be great if you could help me out.
Vivianne
ParticipantI already did this:
<!-- Upcoming event list --> <?php do_action( 'tribe_events_single_venue_before_upcoming_events' ) ?> <?php global $post; ?> <?php do_action( 'tribe_events_inside_before_loop' ); ?> <!-- Month / Year Headers --> <?php tribe_events_list_the_date_headers(); ?> <!-- Event --> <?php $post_parent = ''; if ( $post->post_parent ) { $post_parent = ' data-parent-post-id="' . absint( $post->post_parent ) . '"'; } ?> <div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>" <?php echo $post_parent; ?>> <?php tribe_get_template_part( 'list/single', 'event' ) ?> </div> <?php do_action( 'tribe_events_inside_after_loop' ); ?> <?php do_action( 'tribe_events_single_venue_after_upcoming_events' ) ?>It shows a list, but not the Booking form which I integrated in the list (and which works very well on the complete eventlist). How can I integrate the booking form here? The list is also not showing the venue name and adress (which also works perfectly in the complete event list.)
I integrated the booking form in the list with this code in my theme´s functions.php:
if( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) { 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( 'tribe_events_single_event_before_the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form') ); add_action( 'tribe_events_after_the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form') ); }I hope you can follow me. 😉
Vivianne
ParticipantThis worked out perfectly! Thanks a lot!
Is there a list with all Meta Key Names of the fields used?
This would be a great ressource for making special modifications.Vivianne
Participant@Brian:
Or is there a shortcode for an event-list with the possibility to only choose one category? -
AuthorPosts
