-
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
Open
mandixx
wants to merge
2
commits into
thecodeholic:main
Choose a base branch
from
mandixx:checkout_UI_block
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,6 @@ class="text-purple-600 hover:text-purple-500" | |
</div> | ||
</template> | ||
<!-- Product Item --> | ||
|
||
<div class="border-t border-gray-300 pt-4"> | ||
<div class="flex justify-between"> | ||
<span class="font-semibold">Subtotal</span> | ||
|
@@ -76,12 +75,25 @@ class="text-purple-600 hover:text-purple-500" | |
Shipping and taxes calculated at checkout. | ||
</p> | ||
|
||
<form action="{{route('cart.checkout')}}" method="post"> | ||
@csrf | ||
<button type="submit" class="btn-primary w-full py-3 text-lg"> | ||
@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 commentThe reason will be displayed to describe this comment to others. Learn more. referring to this line |
||
Proceed to Checkout | ||
</button> | ||
</form> | ||
@else | ||
<div class="flex justify-center items-center pt-2 pb-2 px-1 mb-3 rounded border border-solid border-orange-600 w-full text-lg"> | ||
<svg class="h-5 w-5 fill-orange-500 mr-1"><path xmlns="http://www.w3.org/2000/svg" d="M19.64 16.36L11.53 2.3A1.85 1.85 0 0 0 10 1.21 1.85 1.85 0 0 0 8.48 2.3L.36 16.36C-.48 17.81.21 19 1.88 19h16.24c1.67 0 2.36-1.19 1.52-2.64zM11 16H9v-2h2zm0-4H9V6h2z"/></svg> | ||
<p class="text-center"> | ||
To "Proceed to Checkout" you will have to update your <b>Billing and Shipping information</b>! | ||
</p> | ||
</div> | ||
<button disabled class="btn-primary w-full py-3 text-lg"> | ||
Proceed to Checkout | ||
</button> | ||
</form> | ||
@endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. closing form tag is missing |
||
|
||
</div> | ||
</div> | ||
<!--/ Product Items --> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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