Product Categories List menu not working
-
We’ve got a Product Categories List block used as a widget and set as a dropdown, and when we select a category from the menu and hit the button to go to it, nothing happens. It was working fine up until a couple days ago, and it looks like there was a recent update to the plugin, so I’m guessing that was when it started.
I played around with the JavaScript in the onclick handling the redirect:
const url = document.getElementById( 'product-categories-62f2a59253c7f-select' ).value; if ( 'false' !== url ) document.location.href = url;
If I remove the “const” from the beginning in the Chrome Inspector, it starts working fine, so it seems related to that.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Product Categories List menu not working’ is closed to new replies.