What does the query argument "?wootickets_process=1" do? Can I remove it?

Home Forums Ticket Products Event Tickets Plus What does the query argument "?wootickets_process=1" do? Can I remove it?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #900748
    echogroup
    Participant

    I’d like to have a variety of options I’d like to have happen when a user adds an item to my cart, such as:
    a – add to cart and stay on page
    b – add to cart and go to previous page
    c – add to cart and go to cart
    d – add to cart and go directly to checkout

    However, the query argument “?wootickets_process=1” appended to my form’s action url prevents me from properly hooking the woocommerce “add_to_cart_redirect” function and defining my own redirects.

    Can I just remove this argument? What functionality would I lose? Or is there another way I can keep the wootickets argument and hook the ‘add to cart’ process and define my own custom url to redirect to?

    Thanks

    #901197
    Barry
    Member

    Hi echogroup,

    You’re not the first person to ask for the removal of the wootickets_process query and we are planning on removing it in one of our upcoming releases 🙂

    That URL query is a trigger used to implement some of our own custom logic, primarily used to add the ticket items to the cart, so removing it wouldn’t be the best idea. That said, it is certainly possible to remove it but you’d then need to take care of any functionality that is consequently dropped.

    For more detail the best place to look is the source code itself, in this case TribeWooTickets::process_front_end_tickets().

    Good luck!

    #911668
    Barry
    Member

    I don’t think there’s too much more we can do to assist in this case (though, as before, we are planning on changing this behaviour sometime soon) and will go ahead and close this thread.

    If we can help with anything else, though, please don’t hesitate to create a new thread and one of the team will be only too happy to help.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘What does the query argument "?wootickets_process=1" do? Can I remove it?’ is closed to new replies.