mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-14 02:16:19 +01:00
Add checkout.js
This commit is contained in:
parent
4e7f5767d7
commit
2f0c7f069a
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
function proceedCheckout() {
|
||||
localStorage.removeItem("bag");
|
||||
}
|
||||
|
||||
function view_checkout() {
|
||||
var bag = JSON.parse(localStorage.getItem("bag"));
|
||||
var html = '';
|
||||
|
@ -35,6 +39,7 @@ function view_checkout() {
|
|||
</tr>
|
||||
`
|
||||
document.getElementById("view-checkout").innerHTML = html;
|
||||
document.getElementById("data").value = JSON.stringify(bag);
|
||||
}
|
||||
|
||||
view_checkout();
|
Loading…
Reference in a new issue