Mini Cart not showing changes until adding and removing item
-
Hello,
I made some changes to the mini-cart.php file, after copying it to my child theme (woocommerce > cart > mini-cart.php) The changes I made worked fine, except, it doesn’t show up until I add an item to the cart and remove the item. (I made changes to the empty cart message).
I thought that this would be the case only on the browser I was using, or the computer I was using to visit the website, but I used different browsers and an entirely different computer that I never used to visit the site before, and this was still the case. So that means that any one who visits my site will encounter the same problem, which is kind of weird.
As you can see in the below screenshot, this is what the mini cart looks like when you hover over the cart icon:
https://pasteboard.co/JGudt1x.png
The empty cart message doesn’t show and it looks all broken. However, after adding an item and then removing it, the empty cart message shows like it’s supposed to:
https://pasteboard.co/JGue35F.png
What do I have to do to make it so that an item doesn’t have to be added and then removed from the cart for the empty cart message to show properly?
Yes, I have the latest version of my theme, and WooCommerce. I updated WooCommerce and copied over the mini-cart.php file to my child theme again with the change I made.
- The topic ‘Mini Cart not showing changes until adding and removing item’ is closed to new replies.