Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 5d0b140a authored by 65160270's avatar 65160270
Browse files

update-address

parent 8da276f1
Branches
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ router.get('/history', isAuthenticated, async (req, res) => {
});
// อัปเดตที่อยู่จัดส่งของคำสั่งซื้อ
router.get('/update/:orderId', async (req, res) => {
router.put('/update/:orderId', async (req, res) => {
try {
const { orderId } = req.params;
const { shipping_address } = req.body;
......
......@@ -41,9 +41,6 @@
<a href="/order/history" class="back-btn">Back to Order History</a>
<a href="/" class="continue-shopping">Continue Shopping</a>
</div>
</div>
<%- include('partials/footer') %>
<script>
document.getElementById("edit-btn").addEventListener("click", function() {
document.getElementById("new-address").style.display = "inline";
......@@ -77,3 +74,5 @@ document.getElementById("save-btn").addEventListener("click", async function() {
}
});
</script>
</div>
<%- include('partials/footer') %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment