Update public/js/checkout/action.js
menghapus button lewati di checkout
This commit is contained in:
parent
258ba46cb7
commit
859aff705e
@ -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({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user