Update public/js/checkout/action.js

menghapus button lewati di checkout
This commit is contained in:
Joko 2026-03-30 04:10:29 +00:00
parent 258ba46cb7
commit 859aff705e

View File

@ -1,4 +1,3 @@
async function submitOrderToServer(){
const totalHarga = hitungTotalHarga();
@ -137,16 +136,10 @@ async function submitOrderToServer(){
</div>
`,
showConfirmButton: false,
showCancelButton: true,
cancelButtonText: 'Lewati & Selesai',
cancelButtonColor: '#6c757d',
customClass: {
popup: 'rounded-4',
cancelButton: 'px-4 py-2 rounded-3'
}
}).then(() => {
window.location.href = "/success-page"; // kehalaman success
});
showCancelButton: false,
allowOutsideClick: false,
allowEscapeKey: false
})
} else {
clearSession()
Swal.fire({