ULTIMATE Cart Drawer is very customisation and can be integrated with almost every app out there if the other app allows it. If you're an app developer and want to create an integration between your Awesome app and ULTIMATE Cart Drawer, this article is just for you ?



How do you change the prices being displayed in cart:


Let's say your app is for quantity discount and changes prices of line items depending on quantities, how you can integrate it with ULTIMATE Cart Drawer:


sellify.ucd.filters.cart.push(function(cart){
    // Loop over cart.items and change the prices depending on your logic. Or if your app already has some function which can modify the cart object properly, just call that. i.e. MyAwesomeApp.Helpers.fixCart(cart) and then return the cart ?
    return cart;
});


The above code show a filter named 'cart' which you can use to modify any data being displayed in the drawer.


Similarly there's another filter named 'cart_final' which is called before the cart is being rendered. We recommend using 'cart' filter instead of 'cart_final'.




Want to do modify upsells or recommended items being displayed:


For upsells, we have filter named 'upsells' which receives 'items' products array of objects. Feel free to use it modify products data.


Here's our article specifically for filters: Filters/Actions to modify cart drawer data