mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-14 02:16:19 +01:00
Fix checkout bug
This commit is contained in:
parent
61d722778f
commit
d3dbda638b
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ function proceedCheckout() {
|
|||
}
|
||||
|
||||
function view_checkout() {
|
||||
if (localStorage.getItem("bag") === null) {
|
||||
localStorage.setItem("bag", "[]");
|
||||
}
|
||||
var bag = JSON.parse(localStorage.getItem("bag"));
|
||||
var html = '';
|
||||
var total_price = 0;
|
||||
|
|
Loading…
Reference in a new issue