Adam

Forum Replies Created

Viewing 7 posts - 31 through 37 (of 37 total)
  • Author
    Posts
  • in reply to: A deleted Ticket can still be checked in? #1264126
    Adam
    Participant

    Hi Brook

    Yep – you could indeed extend that status. As long as the option to toggle a ticket’s validity on or off is easy to get to in that list of tickets – i.e. adding an “invalidate / validate” or “inactivate / activate” toggle to the options that show up on hover perhaps – or like the Check-in column have one for that which toggles a ticket’s validity status.

    Anyway – was just throwing it out there as I know I’d find it useful – I’ll leave it with you guys 🙂

    Adam
    Participant

    Sure, and glad it could be useful.

    I saw you guys were “out”, I’ll get something back to you in the next day
    or so.

    I can give you the source Html, so when viewed in a browser it looks
    correct. Plus I’ll do a Word version. I’ll put both on Google docs, or one
    drive.

    🙂

    Adam
    Participant

    Hmm – Apologies, the rendering is bad. My assumption on using HTML was clearly misjudged. 🙁

    If you can remove this altogether I will re-add, but using images for tables and using only the tag buttons this tool allows. Or if this isn’t the right place anyway – let me know.

    Thanks

    in reply to: A deleted Ticket can still be checked in? #1259557
    Adam
    Participant

    Ok – glad I’m not going mad!

    I look forward to the fix.

    And to repeat a thought I made earlier for a possible future enhancement after this fix is done… perhaps the “invalidating a ticket process” would be better if there was a “Validity” column in the attendee list, and all tickets show by default as Valid. And instead of deleting a ticket to cancel it, you have the option of maybe marking it as either Valid or Cancelled (or any other statuses that might make sense), and then not allow the check in option for those cases (that way you can always change it back to Valid perhaps if a mistake was realised or restitution was made)

    Thanks again

    Adam
    Participant

    Hi

    I think you misunderstand.

    All is working as expected regarding the customer providing field info on the Event page. It’s just once they have added it to the Woo cart. By default the woo cart allows for quantities to be changed, and if the number is increased on that page then no fieldset info form is triggered to display.

    On further looking I did find a GIT snippet some of your guys had written that makes the cart page treat the quantities of Event Ticket Plus products only as read-only. That does the job in terms of making sure I won’t get tickets ordered without mandatory customer provided information. I have simply added a note at the top of the cart page that says “NOTE: For ticket products you CANNOT change ticket quantities in this shopping cart. If you wish to change the quantities, please remove the ticket(s) in question from the basket (click the red cross), and then return to the event to re-add the ticket(s) with the correct quantities.”

    For completeness the code snippet is below too:

    /**
     * Make WooCommerce cart Quantity input field non-editable (readonly) ONLY FOR Event Tickets Plus products
     * By Matt B and Cliff P
     * From https://gist.github.com/cliffordp/66bf05df61ee269c60ff20d6f39e2cab
     */
    function cliff_etplus_woo_cart_quantity_readonly() {
    
        if ( ! class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {
            return;
        }
    
        $args = array(
            'post_type' => 'product',
            'fields' => 'ids',
            'meta_query' => array(
                array(
                    'key' => Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance()->event_key,
                    'value' => 0,
                    'compare' => '>',
                ),
            ),
        );
    
        $product_ids_readonly = get_posts( $args );
        
        $product_ids_readonly = array_unique( $product_ids_readonly );
    
        if ( ! count( $product_ids_readonly ) ) {
            return;
        }
    
        wp_enqueue_script( 'jquery' );
        ?>
        <script>
            jQuery( function( $ ) {
                var product_ids = <?php echo json_encode( $product_ids_readonly ); ?>;
                var $remove_links = $( 'body.woocommerce-cart .woocommerce tr.cart_item td.product-remove a' );
                $remove_links.each( function() {
                    var product_id = parseInt( $( this ).data( 'product_id' ), 10 );
                    if ( -1 === $.inArray( product_id, product_ids ) ) {
                        return;
                    }
    
                    var $row = $( this ).closest( 'tr' );
                    $row.find( 'td.product-quantity input' ).attr( 'readonly', true );
                } );
            } );
        </script>
        <?php
    }
    add_action( 'wp_head', 'cliff_etplus_woo_cart_quantity_readonly' );
    
    • This reply was modified 9 years, 1 month ago by Adam. Reason: Removed opening PHP tag as that shouldn't be included when adding to functions.php
    in reply to: A deleted Ticket can still be checked in? #1257931
    Adam
    Participant

    Hi Shelby,

    I have tried with £25 tickets, free tickets (£0), and also RSVP tickets. All types let you check in AFTER the ticket has been deleted. However, instead of saying a “ticket ID” is checked in, e.g. JSE1-1, it gives a different value (post ID perhaps?).

    Also, to clarify: In all cases I did NOT go through a Woo refund process when testing, as I figured Event Tickets Plus does not actually care about that, just whether or not a ticket has been deleted. So maybe you can confirm that too?

    On further view (see attached pics):
    – In Attendees list under Attendees tab it shows – Deleted Attendees: 4
    – In Attendees list under Orders tab it shows – Canceled: £0.00 (0)

    So maybe deleted ticket does not by itself equate to a cancellation?

    in reply to: A deleted Ticket can still be checked in? #1257163
    Adam
    Participant

    Hi

    I don’t have twentysixteen, but do have twentyseventeen. So…

    I switched to twentyseventeen and disabled all plugins except:

    • Event Tickets
    • Event Tickets Plus
    • The Events Calendar
    • Woocommerce (needed to keep this active so I could see the attendee list for an event so I could delete a ticket)

    The issue still occurs under these conditions.

    Thanks

Viewing 7 posts - 31 through 37 (of 37 total)