HELP!! Cart refresh function for slide cart...

Lizzie_523
Excursionist
37 1 9
Click to expand...

Hi all,

I have installed an app that allows customers to round-up their spend, in order to donate a few pence to charity each time they shop. However, the widget box has to appear inside my slide cart. This means that when a customer checks the widget to donate, the customer is then redirected to my main (Shopify) cart page - which I don't want.

I am told that in order to avoid this, I need to provide a drawer refresh function for the widget: Specifically, I need to assign a function to the window.dkRefreshCartAction variable. (That function takes a Shopify cart object, already with the donation included. It can be used to re-draw the content).

Can anyone please show me how I can do this?

Many thanks, Lizzie

0 Likes