Update Cart price when checkbox is Checked

Update Cart price when checkbox is Checked

mohit12
Shopify Partner
8 0 1

Hello Folks ,

 I am new to Shopify and building a shopify app   using checkout UI extension and Pre purchase extension in shopify  what I am making is - Simple Checkbox in which when user check it simply Add xyz amount to cart as a TIP .. I have  made the checkbox on checkout page using app but Don't have any idea how to add amount when user check it and cart is updated ..please let me know the solution for this problem . UI is completed only updation of cart is left .

 

Thanks In Advance 
Mohit 

Replies 2 (2)

lizk
Shopify Staff
246 58 74

Hi there 👋

At this time the only way to add a tip, would be to create a "Tip" product and then add that product to the cart when the check box is selected.

Stay tuned for updates in this area by subscribing to the developer changelog. 

To learn more visit the Shopify Help Center or the Community Blog.

mohit12
Shopify Partner
8 0 1

Thank you for the reply .
Just wanted to know .. how i Can access Prisma data (database ) which I have used in making  in making app using remix  in Checkout UI extension .
Thanks in Advance