The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Minicart to show amount remaining until free shipping

On this test site:

I've setup the minicart straight from the docs. It shows the cart total.

Is there a way to access the minicart through js?

Rather than show the cart total, I need to show the order amount remaining until the customer hits our free shipping limit of $350.

So if you have $100 in your cart, the message should read "add $250 to you cart to get free shipping"

  • fc_adamfc_adam FoxyCart Team

    You can set up any sort of custom minicart functionality you'd like - for sure! The current cart is always available in the cart JSON object available whenever you include loader.js, and the current total price of the items in the cart is available as FC.json.total_item_price.

    The other thing you'll need to do is update that message whenever the cart is altered. You can do that by hooking into our events like this:
    var FC = FC || {};
    FC.onLoad = function () {
    FC.client.on('ready.done', updateMinicart);
    FC.client.on('cart-submit.done', updateMinicart);
    FC.client.on('render.done', updateMinicart);
    function updateMinicart() {
    // Update your custom minicart information
  • perfect - thanks!
Sign In or Register to comment.