Skip to product information
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

  • Cart Edit

How to implement

  • Javascript
View full details

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.)


Example of setting to display a confirmation dialog when deleting an item from the cart in the "Dawn" theme


Setting procedure: Modify some of the code in Assets > "cart.js"


After making a purchase (all items are ¥0), you will be able to view the sample code.

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"

Related Post