[resolved] Bug(?) in cart widget (2 posts)

  1. Adam
    Posted 3 years ago #

    I am building woocommerce on 3 sites and on all sites, the cart-widget does not update when adding an item to the cart (AJAX).
    After some investigating I found that the widget should have an id="shopping_cart-2" and a class="widget widget_shopping_cart". However, on my sites the widget gets NO id and a class="widget shopping_cart-2"
    If I add the class widget_shopping_cart manually to the code, it works fine. But that would mean I have to update that code each time there is an update which is not a good thing. So anyone know what might be the underlying cause?


  2. Adam
    Posted 3 years ago #

    Never mind, I found it myself. I am using a parent theme which overrides the class and id names of widgets.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.