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.
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
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
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
is working on a reply...