Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Handle the checkout page when user has no deilivery address
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingadonis committed Dec 6, 2023
1 parent 1e12a7b commit a815709
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/webapp/view/web/add-address.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

<div class="my-3 text-center">
<div id="error-message" class="text-danger my-3">${error_msg}</div>
<button type="submit" class="btn btn-outline-dark">Xác Nhận</button>
<button type="submit" class="btn btn-outline-dark">Xác nhận</button>
</div>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/view/web/change-password.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

<div class="my-3 text-center">
<div id="error-message" class="text-danger my-3">${error_msg}</div>
<button type="submit" class="btn btn-outline-dark">Xác Nhận</button>
<button type="submit" class="btn btn-outline-dark">Xác nhận</button>
</div>
</form>
</div>
Expand Down
14 changes: 11 additions & 3 deletions src/main/webapp/view/web/checkout.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,17 @@
</select>
</div>

<div class="my-4 text-center">
<button type="submit" class="btn btn-outline-dark">Xác Nhận</button>
</div>
<c:if test="${sessionScope.user.address.size() > 0}">
<div class="my-4 text-center">
<button type="submit" class="btn btn-outline-dark">Xác nhận</button>
</div>
</c:if>

<c:if test="${sessionScope.user.address.size() == 0}">
<div class="my-4 text-center">
<a href="add-address" class="btn btn-outline-dark">Thêm địa chỉ nhận hàng</a>
</div>
</c:if>
</div>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/view/web/profile.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</div>

<div class="my-3 text-center">
<button type="submit" class="btn btn-outline-dark">Xác Nhận</button>
<button type="submit" class="btn btn-outline-dark">Xác nhận</button>
</div>
</form>
</div>
Expand Down

0 comments on commit a815709

Please sign in to comment.