add error message to checkout
This commit is contained in:
parent
a610c9231f
commit
2d104a0f2c
|
|
@ -23,7 +23,7 @@ class CheckoutController extends Controller
|
|||
$data = (new CheckoutService)->checkoutData();
|
||||
return view('checkout', $data);
|
||||
} catch (\Exception $e) {
|
||||
return redirect(shop_route('carts.index'));
|
||||
return redirect(shop_route('carts.index'))->withErrors(['error' => $e->getMessage()]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
<div class="col-12 col-md-9">@include('shared.steps', ['steps' => 1])</div>
|
||||
</div>
|
||||
|
||||
@dump($errors)
|
||||
|
||||
<div class="row mt-5" v-if="products.length">
|
||||
<div class="col-12 col-md-9">
|
||||
<div class="cart-products-wrap table-responsive">
|
||||
|
|
|
|||
Loading…
Reference in New Issue