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