• Resolved Andrea

    (@licoreo)


    hello,
    thank you for the plugin,
    i need to redirect to checkout after the user click on “order again”
    is possible?

    Thank you
    Andrea

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ulf Sch?nefeld

    (@uschoene)

    Hi @licoreo (Andrea),

    by default, products from orders which has reached status “Completed” will be add in the cart (we use the standard WooCommerce function “order again”). When a customer clicks this button, they will be directed to the Cart page with the same items in the Cart. At this point, they can edit the order, or proceed to checkout. Thats why we also don’t skip the cart page for the customer. But we will discuss your questions internal. By now we hope you can enjoy our plugin with your customers.

    Best regards,
    Poly-res Team

    Thread Starter Andrea

    (@licoreo)

    i try with this solution, looks that it works

    add_action( ‘woocommerce_ordered_again’, ‘ordered_again’ );

    function ordered_again($order_id)
    {
    add_filter(‘wp_redirect’, ‘redirect_after_order_buy’,9999,2);
    }
    function redirect_after_order_buy($url, $status)
    {
    return wc_get_checkout_url();
    }`

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirect after reorder’ is closed to new replies.