x First time here? Check out the FAQ
Join us a the Umbraco event of the year - get your Codegarden 14 early bird ticket today
  • Avatar114posts132karma

    Mini Cart (no of items) not updating

    rich hamilton started this topic April 4, 2012 @ 07:34, Go directly to the topic solution

    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 posted this reply April 10, 2012 @ 10:23

    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


  • Avatar114posts132karma
    Comment with ID: 113969
    rich hamilton posted this reply April 11, 2012 @ 06:28

    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 login or Sign up To post replies