Foxy Forum Status

We're no longer responding to questions via our forum, but we will keep it up for historical reasons. If you can't find the answer you're looking for, please visit our knowledge base or contact us. If there's enough interest in the future, we may bring the forum back.

show cart info in checkout template

joelataylorjoelataylor Member
in Help edited October 2009
Hi - so I've got the cart details showing on the other pages of my website, but when also include that piece in the checkout template, the details don't seem to get updated.

Am I missing something?
  • tookingstookings Member
    edited October 2009
    As for the minicart, the checkout page doesn't actually include the foxycart_includes.js where this magic happens -- so if you indeed want both the minicart and the full checkout cart to appear on the checkout page, as currently on your site, you'll need to add a few JS calls back in by hand.


    Does that make sense? (Oh, did you have any luck getting the cufon to work on checkout?)

    Code I added to the checkout template, right before "</head>":
    <script type="text/javascript" charset="utf-8">
    function checkoutMiniCart()
    jQuery("#fc_quantity").html("" + fc_json.product_count);
    jQuery("#fc_total_price").html("" + fc_CurrencyFormatted(fc_json.total_price));

    function fc_CurrencyFormatted(amount)
    var i = parseFloat(amount);
    if(isNaN(i)) { i = 0.00; }
    var minus = "";
    if(i < 0) { minus = "-"; }
    i = Math.abs(i);
    i = parseInt((i + .005) * 100);
    i = i / 100;
    s = new String(i);
    if(s.indexOf(".") < 0) { s += ".00"; }
    if(s.indexOf(".") == (s.length - 2)) { s += "0"; }
    s = minus + s;
    return s;

  • Tookings! You da' man. :) (for the day anyway) ;)

    Yep, that worked, and yeh I got Cufon working - I think it was an issue with the domain security feature.

    Thanks again!
  • brettbrett FoxyCart Team
    Thanks tookings!
Sign In or Register to comment.