Add to Cart redirect

Home Forums Ticket Products Event Tickets Plus Add to Cart redirect

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1400695
    Brian
    Participant

    Hello!

    I’m looking to add an intermittent page in between when the customer clicks “add to cart” for their ticket, and the actual cart page. I’ve found this post which works for redirecting straight to checkout. So I believe all I need to change is the link in the ticket template: <form action=”<?php echo esc_url( $woocommerce->cart->get_cart_url() ) ?>” class=”cart” method=”post” enctype=’multipart/form-data’>…?

    My main worry is whether interrupting this process will lead me to lose attendee info that I have them fill out on the ticket? Also if there is a way to have this for specific events or tickets only?

    Thanks!

    #1401719
    Cliff
    Member

    Hi, Brian.

    Our button to add a ticket to the cart adds it to the WooCommerce cart. If you hook into something that redirects _after_ that action happens, you should be safe.

    This snippet may be just what you’re looking for:

    https://gist.github.com/cliffordp/f148a9cacd726e5a86ffeda2d2e204c1

    Please let me know what you find out if you test it.

    #1415118
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add to Cart redirect’ is closed to new replies.