Forum Replies Created
-
AuthorPosts
-
RobertParticipant
Didn’t work in the least. I think there is something wrong with the extension, it’s probably not been updated since the other updates to the core plugins.
The "timezone" argument for this shortcode is invalid. Please reference http://php.net/manual/timezones.php. (This message is only shown to Contributors and higher level users.) – The "timezone" argument for this shortcode is invalid. Please reference http://php.net/manual/timezones.php. (This message is only shown to Contributors and higher level users.)
RobertParticipantThanks I appreciate it! 🙂
RobertParticipantThank you!
In what scenarios might it not cover just out of curiosity?
What I typically have is an early bird ticket that is scheduled for a certain time, then after that expires another ticket is scheduled for the same day the other one expired. So essentially two tickets but one is always hidden. Both use the global inventory.
I just want to make sure I won’t run into any issues. I’m not sure of what problems would arise and don’t want to use the snippet if you think there are some cases where it will show as sold out when it’s not.
Thanks!
RobertParticipantThank you Victor!
This is more or less what I came up with. It seems to work but just wanted to double check if this is the best way to do it. Thanks!
<? $count = 0; echo '<ul>'; foreach ( $tickets as $ticket ) { global $product; $count++; if ( class_exists( 'WC_Product_Simple' ) ) $product = new WC_Product_Simple( $ticket->ID ); else $product = new WC_Product( $ticket->ID ); $price = $product->get_price_html(); $link = '<a href="' . $product->get_permalink() . '">Buy now</a>'; if ( tribe_events_ticket_is_on_sale( $ticket ) ) { $qunt= $ticket->stock; if($qunt!='0') { echo "$price $link <br> $ticket->description - [$ticket->stock] Available"; } else { echo '<p class="stockout">Out Of Stock</p>'; } } } if ( 0 === $count ) echo '<li> There are no tickets available for this event </li>'; echo '</ul>';
RobertParticipantThanks Victor.
How would I use that new function? Would it just override get_tribe_cost and I wouldn’t have to do anything else? I have yet to test it.
RobertParticipantThanks. While this does technically override the cost range, it’s a manual process it seems, where I’d have to replace the value each and every time with the ID. Hardly an effective solution…
RobertParticipantThanks, but repeating exactly what I already stated back to me and offering no actual guidance in how to do that did not help. Perhaps you can clarify on exactly how to do it? Even though it’s “default” behavior, I think one would agree that it’s not necessarily “right” behavior since it makes little to no sense to show a cost range if a ticket is no longer being shown.
RobertParticipantBesides “canceling” an order would deleting it or some other method result in the inventory going back up?
RobertParticipantDisregard, it was because i cloned an event instead of creating a new one, I guess that’s a bug.
RobertParticipantAwesome that pretty much accomplished what I was looking for. One other thing however… is it possible to show the cost of the other ticket so you can see the price difference? Or better yet show the other ticket greyed out until the date available to show?
RobertParticipantI got you, thanks!
RobertParticipantI did not mention an error. I said that the OPTION for Stripe is not showing up under check out. You’re saying that has nothing to do with you guys? Don’t you have payment gateway options for events ticket plus?
RobertParticipantTheme issue.
RobertParticipantFigured it out with Yoast.
RobertParticipantThat makes sense. Thank you!
-
AuthorPosts