Knowledge Base

WooCommerce: Add to cart button for Vertical and Horizontal results

in Ajax Search Pro Tips Tags: add to cartbuttonfunctionphpwoocommerce

While there is no option to display an add to cart button, you can use a custom function to do so. Add this code to the functions.php file in your active theme directory:

..and use this custom CSS code for some basic formatting: