Forum Replies Created
-
AuthorPosts
-
June 9, 2015 at 8:10 am in reply to: Adding WooCommerce Tickets to an existing WooCommerce-powered site #968153
Geoff
MemberHi mpisner, just wanted to check in and see if you had any other questions here about integrating WooCommerce Tickets with your site–please let me know. 🙂
Cheers,
GeoffGeoff
MemberHey Pasquale! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to start a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHey Sravan! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to start a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffJune 9, 2015 at 8:06 am in reply to: Calendar thumbnail images not displaying correctly. Some events not found. #968150Geoff
MemberHey Tiffany! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to start a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHey veruska! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to start a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHi Akesh, thanks for following up!
Nice job deactivating plugin–that’s a good start for sure. It’s possible that your theme is what is serving the Google Maps API the additional time instead of a plugin. Will you please try activating a default WordPress theme, like Twenty Fifteen, to see if the issue continues there as well? How about when Twenty Fifteen is activated and all other plugins are disabled?
You could test this in a subdirectory of your server to avoid any disruption with your live site. Many hosting companies offer a single-click feature to install a fresh copy of WordPress in a new subdirectory that would be a good testing grounds for us here.
I know that the Google Maps thing sounds peripheral to the issues you’re describing with List View and the Next Month buttons, but both of those rely on Javascript which can be affected by other errors on the page, such as the API conflict. I’m hoping that clearing that up will give us the breakthrough we need.
If we can determine that the second Google API instance is coming from the theme, then we know that the theme author will need to help provide a solution that prevents the API from being served on calendar pages.
Cheers!
GeoffJune 9, 2015 at 7:44 am in reply to: I have no idea how tickets are sorted for WooCommerce tickets #968129Geoff
MemberSweet, thanks Jon! Nice work on this and thanks for your patience throughout. I’m so glad everything is worked out.
A Knowledgebase article on price ranges is a good idea and I’ll definitely bring it up with the team–I can definitely see how that would be helpful rather than having to dig through the forums.
Thanks again for reaching out! Feel free to hit us bak up if any other questions pop up and we’d be happy to help. 🙂
Cheers,
GeoffJune 8, 2015 at 2:49 pm in reply to: I have no idea how tickets are sorted for WooCommerce tickets #967963Geoff
MemberHi Jon,
Sorry for the frustration here but I definitely appreciate your patience as well.
Let’s try to flesh those steps out a little more:
1) You already have a tribe-events folder in your theme. Add a copy of single-event.php to that folder, which is located at /plugins/the-events-calendar/views/single-event.php
2) Change this line:
<span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span>…to this:
<span class="tribe-events-cost"><?php echo esc_html( get_tribe_woocommerce_tickets_price_range() ); ?></span>2)Â You already have a file in your theme at tribe-events/list/single-event.php. Change this line:
<span><?php echo tribe_get_cost( null, true ); ?></span>…to this:
<span class="tribe-events-cost"><?php echo esc_html( get_tribe_woocommerce_tickets_price_range() ); ?></span>3) Add this snippet to your theme’s functions.php file.
[php]
function get_tribe_woocommerce_tickets_price_range() {
$event_id = get_the_ID();
$ticket_prices_array = $ticket_range = ”;$args = array(
‘post_type’ => ‘product’,
‘meta_key’ => ‘_tribe_wooticket_for_event’,
‘meta_value’ => $event_id
);$ticket_prices = new WP_Query( $args );
if ( $ticket_prices->have_posts() ) :
while ( $ticket_prices->have_posts() ) : $ticket_prices->the_post();
$product_id = get_the_ID();
$ticket_prices_array[] = get_post_meta( $product_id, ‘_price’, true );
endwhile;
endif;
wp_reset_postdata();
$ticket_prices_array_count = count($ticket_prices_array);
$minprice = min($ticket_prices_array);
$maxprice = max($ticket_prices_array);if ( $ticket_prices_array_count ) {
if ( $minprice != 0 && is_numeric( str_replace( array( ‘,’, ‘.’ ), ”, $minprice ) ) ) {
$ticket_range .= tribe_format_currency( $minprice );
} elseif ( $minprice == 0 ) {
$ticket_range .= __( "Free", ‘tribe-events-calendar’ );
}
if ( $ticket_prices_array_count > 1 && $minprice != $maxprice && is_numeric( str_replace( array( ‘,’, ‘.’ ), ”, $maxprice ) ) ) {
$ticket_range .= __( " to ", ‘tribe-events-calendar’ ) . tribe_format_currency( $maxprice );
}}
return $ticket_range;
}
[/php]I was able to get the full price range when following these steps. Let me know if you’re still hitting any issues here and I’d be happy to help.
Cheers,
GeoffGeoff
MemberHey there, Bo! I see this is your first post with us, so welcome to the forums. 🙂
Sorry for the trouble here. I see exactly what you mean–all the event titles are indeed the wame in Month View.
First off, will you please update The Events Calendar PRO to 3.9.3? I see you’re using the latest version of The Events Calendar, but PRO hasn’t been updated yet and that could certainly lead to unexpected issues like this.
I also noticed that the following error comes up when inspecting the site:
You have included the Google Maps API multiple times on this page. This may cause unexpected errors. main.js:60
It’s possible that your theme or another installed plugin is calling the Google Maps API an additional time when The Events Calendar already calls it for the calendar’s map features, which can trigger errors like this as well. I would recommend following these troubleshooting steps to identify where that additional API call is coming from and removing it from there.
Hopefully one or both of these routes will solve the original issue at hand here–please let me know.
Cheers!
GeoffGeoff
MemberHello Akesh,
Thanks for getting in touch and welcome to the forums. Sorry for the trouble here with List View, but I cab help out. 🙂
First off, I notice that I get this error when inspecting the the:
You have included the Google Maps API multiple times on this page. This may cause unexpected errors. main.js:60
Is it possible for you to resolve that error? It’s possible that your theme or another plugin is adding the Google Maps API there when The Events Calendar already calls on it for the calendar’s mapping functionality.
Let’s start there and see what we find.
Cheers!
GeoffGeoff
MemberHey Varun! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHey Stacey–this thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHey there–this thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHey Michael–This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
GeoffGeoff
MemberHey Merijn! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any questions here and we’d be happy to help. 🙂
Cheers!
Geoff -
AuthorPosts
