Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rich hamilton 117 posts 136 karma points
    Apr 04, 2012 @ 19:34
    rich hamilton
    0

    Mini Cart (no of items) not updating

    I have a product page with ADD ITEM

    When I click it it says 'ADDING TO CART'

    but the no. of items doesn't update until you refresh the page. The item is being added to the cart because if I click on the cart it is in there.

    Any ideas what could be causing this?

    Thanks

  • Rune Grønkjær 1372 posts 3103 karma points
    Apr 10, 2012 @ 10:23
    Rune Grønkjær
    0

    Hi Rich,

    A few pointers to help you debug the problem:

    1. Have you changed the html/class'es/id's in the xslt templates? I you have you might have messed up the javascripts update functionality, which uses classes and id's to find it's way around the markup.
    2. Try debugging the javascript with firebug. In the console you will be able to see if any errors are thrown. You can also step into the scripts with break point under the "script" tab. You probably need to look closer at the "updateMiniCartUI" method in the "/scripts/teaCommerce_Simple.js" javascript.

    Hope that will help.

    /Rune

  • rich hamilton 117 posts 136 karma points
    Apr 11, 2012 @ 18:28
    rich hamilton
    0

    The problem was with the xslt that builds the mini cart and adds the classes.

    I had removed languages from our system, so needed to replace the reference to lang in the xslt to MainMaster

    It is now working - Thanks Rune

Please Sign in or register to post replies

Write your reply to:

Draft