How can I auto-refresh my cart when a donation is added?

Created by Shop for Good Support, Modified on Wed, 22 Sep 2021 at 05:17 PM by Shop for Good Support

To auto-refresh your cart after a donation product is added to the cart, please use one of the following functions in your theme, depending on which campaign you're working with. 



You will need a developer.



Donate for Discount



window.d4dRefreshCartCallback = (cart) => {};


Donation Tiers


window.flatRefreshCartCallback = (cart) => {};


Round-Up 


window.dkRefreshCartAction = (cart) => {};



$1 Donation/Custom Amount


window.tippingRefreshCartCallback = (cart) => {};



Reach out to support@dailykarma.com if you need our assistance.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article