-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proceed to Checkout is disabled if there is no billing or shipping in… #6
base: main
Are you sure you want to change the base?
Conversation
…formation attached to that user
…ey can be redirected to login page !
@if ( !Auth::check() || Auth::user()->shippingAddress != null && Auth::user()->billingAddress != null ) | ||
<form action="{{route('cart.checkout')}}" method="post" > | ||
@csrf | ||
<button type="submit" class="btn-primary w-full py-3 text-lg disabled"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabled class is applied even when all checks are okay
Proceed to Checkout | ||
</button> | ||
</form> | ||
@endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closing form tag is missing
@if ( !Auth::check() || Auth::user()->shippingAddress != null && Auth::user()->billingAddress != null ) | ||
<form action="{{route('cart.checkout')}}" method="post" > | ||
@csrf | ||
<button type="submit" class="btn-primary w-full py-3 text-lg disabled"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
referring to this line
Hey! I've blocked "Proceed to Checkout" if there is no user billing or shipping information! Have a look :)