Assigning a function to the window.dkRefreshCartAction variable

Assigning a function to the window.dkRefreshCartAction variable

Lizzie_523
Explorer
56 1 17

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!

Replies 2 (2)

Lizzie_523
Explorer
56 1 17

Some help here would be very welcome please!

hfound
Excursionist
14 0 3

Did you ever get any help with this?