Skip to product information
【Dawn】Shopifyのテーマ「Dawn」でカートの商品を削除する際に確認ダイアログを表示する設定例
Published:2023.10.10

[Dawn] Example of settings to display a confirmation dialog when deleting an item from the cart using the Shopify theme "Dawn"

用途

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.

View store information

[Dawn] Example of settings to display a confirmation dialog when deleting an item from the cart using the Shopify theme "Dawn"

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