So, I have spent the last 24 hours trying to troubleshoot why, after updating to WooCommerce 2.0.1, the cart widget will sporadically display on one page and not the other in our custom theme.
As I mentioned in my earlier post, I did switch to TwentyTwelve and the cart widget works as expected. Looking at the markup, the only differences were TwentyTwelve uses IDs to wrap content and we do not. In my mind, this would not explain why the widget would sporadically appear but I was willing to give the IDs a shot.
After doing so, the cart widget did appear and I thought all was right with the world … until I clicked around to other pages that had the widget installed in their sidebar. I quickly discovered that the problem still persisted and the IDs were not the solution.
The only change with our installation has been the plugin update. So, I decided to download a local copy of class-wc-widget-cart.php
to look at the code. I found the comments, on line 71, that indicate that “ … code in woocommerce.js will update [div] on page load … ” which was not happening.
This lead me to download a local copy of woocommerce.js
to inspect that code. Upon doing so, I did not find anything in this file that relates to the cart widget.
So, I am back here again attempting to find the answer. Can anyone explain what has changed, with this widget, that would cause the behavior we are encountering? If this is not the official support forum for the plugin, can you point me to where I can post my question?
Thanks.