In the Shopify theme "Dawn," when you press the delete button for an item in your cart, the item is removed immediately without a confirmation message. Here's a way to display a dialog box to prevent accidental deletion. (Please make a backup of your theme before implementing this, as cart.js will be modified.)
1
/
of
1
Published:2023.10.10
Example of settings to display a confirmation dialog when deleting an item from the cart using the Shopify theme "Dawn"
Example of settings to display a confirmation dialog when deleting an item from the cart using the Shopify theme "Dawn"
Applications
Applications
- Cart Edit
How to implement
How to implement
- Javascript
Share
After making a purchase (all items are ¥0), you will be able to view the sample code.
Couldn't load pickup availability
If you have already made a purchase, please login here.
Sample Codes
Test Theme :Dawn/Rise 15.2.0
Setting procedure: Modify some of the code in Assets > "cart.js"
