Redirect to checkout behaving strangely

Home Forums Ticket Products Event Tickets Plus Redirect to checkout behaving strangely

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1111366
    Thomas
    Participant

    hello there

    im trying to bypass the basket when clicking the buy button on a single product view

    i found someone else having a similar problem here:

    How to prevent auto redirection to cart after adding item

    unfortunately there’s no solution there, so im hoping to re-raise the issue

    im using the following plugins:

    Event Tickets 4.1.3
    Event Tickets Plus 4.1.2
    The Events Calendar 4.1.3
    WooCommerce 2.5.5

    Wordpress version 4.5.1

    basically in the woocommerce settings page, there is a redirect “Redirect to the cart page after successful addition” option, i can set it to off OR on, and it still redirects to the cart page. Ive tried Jami’s advice in the previously mentioned post by switching my theme to twenty thirteen (i also tried twenty fourteen and twenty sixteen), and disabling all other plugins, and im still getting the same behavior

    ive also tried hooking into the add_to_cart_redirect() function by adding the following code (which seems to work for other woocommerce users that are not using the events calendar plugin) to my functions file

    add_filter ('add_to_cart_redirect', 'redirect_to_checkout');
    
    function redirect_to_checkout() {
    global $woocommerce;
    $checkout_url = $woocommerce->cart->get_checkout_url();
    return $checkout_url;
    }

    still to no avail, so im hoping on some help with this as ive hit a dead end!

    kind regards

    Tommy

    #1111583
    Andras
    Keymaster

    Hi Thomas,

    Thanks for reaching out!

    Indeed that is an unexpected behavior. On my test site if I add a ticket to the basket, then it goes to the cart. However, if I add a WooCommerce product, then it stays on the product page as expected. Could you please test this and confirm it back to me? (With the mentioned WooCommerce setting off.)

    Meanwhile I will try to see if a solution for this exists or we need to make an adjustment.

    Thanks and cheers,
    Andras

    #1111636
    Andras
    Keymaster

    Hello again Thomas,

    I looked around and it looks like this is a small bug. I will file an internal ticket for this so it gets solved, however, I cannot commit to any date.

    I am going to close this ticket to new replies, but the issue is still open and we will update this ticket once we release a fix.

    If you have any new questions or issues don’t hesitate to create a new ticket.

    Cheers,
    Andras

    #1117395
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Redirect to checkout behaving strangely’ is closed to new replies.