Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Update Cart price when checkbox is Checked

Update Cart price when checkbox is Checked

mohit12
Shopify Partner
8 0 2

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 79

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 2

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