Yes, you can.
To display Round-up on your drawer or pop-up cart, you'll first want to switch from Automatic to Manual mode:
Hit Save.
Then, find your code files:
For example, if using a drawer cart, your code file might be cart-drawer.liquid:
Look for your drawer or pop-up cart code file and paste in this snippet:
in your cart file where you want the widget to appear.
Remember to save your changes! Then go back to your store, refresh the page, add an item to your cart, and you should see your Round-up widget in your drawer or pop-up cart. If you don't see it, try moving the snippet within the code file.
Templated Ajax Carts
Please note that if you use a templated ajax cart in your store, you'll need to add more code to your theme files. Here is the integration guide for templated ajax carts using the Handlebars template:
1. Cart.liquid Counters:
Find this code block and see below for the numbered code snippets/blocks you should add and where in your code to add them:
2. Theme.js.liquid:
Find this code block and see below for what you should add and where:
3. Ajax-cart-template.liquid Placement:
Find this code block and see below for what you should add and where:
To avoid having the customer redirected to your cart page
When you install Round-up in your drawer or pop-up cart and a customer checks the widget to donate, the customer is redirected to your cart page. To avoid this, you need to provide a drawer refresh function for our widget. Specifically, your team would need to assign a function to the window.dkRefreshCartAction variable. That function takes a Shopify cart object, already with our donation included. You can use it to re-draw the content.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article