function cart_quote_function() {
if( has_term( 51, 'product_cat' ) ) {?>
<script>
//console.log('lll');
jQuery("form.cart").submit(function(e){
e.preventDefault();
});
jQuery('.quantity').hide();
jQuery('button.single_add_to_cart_button').text('Request A Quote');
jQuery('button.single_add_to_cart_button').addClass('req_quote');
</script>
<?php
}
}
add_action( 'wp_footer', 'cart_quote_function' );
Jagdish Sarma Asked question December 22, 2020