Hi @sedivy!
We are still trying to solve this problem, but it seems to be coming back. The Astra add-on attaches the click event to the first element on the list with the class .woocommerce
. As a result, the click event is attached to FiboSearch.
Please check if you have the latest version of our plugin and Astra theme. If so, try using this code snippet to fix this error:
add_filter( 'dgwt/wcas/form/html', function($html) {
if ( is_checkout() || is_cart() ) {
$html = str_replace( " woocommerce ", " ", $html );
}
return $html;
} );
You have two ways to add this code to your theme:
1. Open the functions.php in your child theme and add the code at the end.
2. Install the Code Snippets plugin and apply this code as a snippet.
—
If the above code won’t work please try the below one (same implementation way as above):
add_action( 'wp_head', function() {
if ( is_checkout() || is_cart() ) { ?>
<script>
function removeWooCommerceClassFromFiboSearch() {
var fiboSearchBars = document.getElementsByClassName("dgwt-wcas-search-wrapp");
for (let i = 0; i < fiboSearchBars.length; i++) {
fiboSearchBars[i].classList.remove("woocommerce");
}
}
document.addEventListener("DOMContentLoaded", function(event) {
removeWooCommerceClassFromFiboSearch();
});
</script>
<?php }
}, 1 );
Regards,
Kris
-
This reply was modified 7 months, 2 weeks ago by Kris.