Forum Replies Created
-
AuthorPosts
-
Jacob Masters
ParticipantSeeing the same issue, select2 is breaking the ajax in my admin where ever else a select is used, temporary solution is to just disable it everywhere:
function tribe_dequeue_script_example() {
wp_deregister_script( ‘tribe-select2’ );
}
add_action( ‘wp_enqueue_scripts’, ‘tribe_dequeue_script_example’, 100 );add_action( ‘admin_enqueue_scripts’, ‘tribe_dequeue_script_example’, 100 );
March 21, 2017 at 4:51 am in reply to: Editing stock levels / global stock on events page – 4.4.4 bug? #1257194Jacob Masters
Participanton first hit to does seem to work, its consequentially editing the events where the issue occurs.
April 18, 2016 at 12:20 pm in reply to: Event tickets email hits spam filters due to frequency? #1103887Jacob Masters
ParticipantIts on a dedicated server, and i can see in my exim records that the emails are going out, so that’s not it, and the fact that a resend gets through as do all the other woocommerce emails does suggest the only thing it can be is frequency as that’s the only difference.
Will certainly check spf and dkim settings and the rest as good practice, but as i say the general trustworthiness of the emails and mailserver don’t seem to be an issue as other emails and even the same email at a different time get through fine.
Jacob Masters
Participantcan be done by creating another tickets loop on the page:
if(tribe_has_wootickets($post_id)){
$tickets = Tribe__Tickets__Tickets::get_all_event_tickets( $post_id );
$totalsales = 0;
foreach($tickets as $ticket){but I ended up using a javascript method, writing the ticket costs from the main tickets loop back into the page after its parsed..
Jacob Masters
Participantbroken links like this don’t help either:
Jacob Masters
Participantwithin the events loop, or within a regular posts loop?
Also with functions, i’m using a variation on this code:
http://tri.be/using-conditionals-to-show-breadcrumbs-for-events-and-venues/
but the conditionals are not returning anything, not even a false..
Jacob Masters
ParticipantGood to know, but this method does not work for events lists called from the filter bar, any clues to which javascript ajax call to listen to to catch that reload?
Jacob Masters
Participantthis seems to do it:
$( tribe_ev.events ).on( ‘tribe_ev_ajaxSuccess’, function() {
//Do my stuff//});
Still be interested to know if there’s and official or better way?
Jacob Masters
ParticipantOk, i did manage to hack it so variations kind of worked, so its not beyond the scope of development i wouldn’t think, but it would likely need another custom post type, something like: tribe_wooticket_variation.
however, found a simpler method anyway, created a custom meta box for the tribe_events post type, called “master stock level” which then overrides individual ticket stock levels for the event, needed an edit of tickets.php, but the rest can be done in functions.php.
-
AuthorPosts
