Sweet alerts
Big, friendly dialogs for the moments that matter
Success
After the thing is done.
Show the code
<button type="button" class="btn btn-primary" data-dialog="sa-ok">Complete the sale</button>
Warning
Before something that is hard to undo.
Show the code
<button type="button" class="btn btn-danger-soft" data-dialog="sa-warn"> <i class="ti ti-receipt-off"> </i>Void the sale</button>
Error
When it did not work, and what to do.
Show the code
<button type="button" class="btn" data-dialog="sa-err">Charge the card</button>
Sale complete
$34.23 paid by card. The receipt is printing.
Void this sale?
The items go back to stock and the sale is kept as voided. A manager approves with their PIN.
The card was declined
Ask for another card or another way to pay. The sale is still open.