Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    redirect issue after storeOrder

    General Discussion
    1
    1
    28
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kenninh last edited by

      After checkout and Place Order, the order created successfully and the cart is cleared but the Place Order page remains. Should it redirect to the success page?

      In function storeOrder, is this correct?

      Cart::deActivateCart();

      session()->flash('order_id', $order->id);

      return new JsonResource([
      'redirect' => true,
      'redirect_url' => route('shop.checkout.onepage.success'),
      ]);

      1 Reply Last reply Reply Quote 0
      • First post
        Last post