Snippet to make search forms to search only for products
Simply copy the repository code to your functions.php to make your sitewide search results show products.
If you are using WC Vendors Plugin you may notice that vendor pages inherit the shop page sidebar by default when most of the time they are irrelevant for the vendor pages. That is because WC Vendors is using the archive-product.php file which is also used for shop page views. To solve this issue we would have to update our archive-product.php with the conditional.
Instead of the line 114 that was <?php do_action( 'woocommerce_sidebar' ); ?>
put :
WC Vendors plugin already has a shortcode [wcv_vendorslist] for displaying the list of vendors, but it doesn't include the vendor pictures and it lacks box type styling. Therefore, we are going to create a new shortcode [wc_makers_list] for catalog which will also display vendor pics with the help of wp_user_avatar plugin.
Insert the survey form to woocommerce thank you/order confirmation page
echo FrmFormsController::show_form(28, $key = 'frmprocontact2', $title=false, $description=true);
as follows: (Your created Formidable Form ID, $key= 'Formidable Form Key', $title = true or false depending on wheter or not you would like to display the title set in form, $description = true or false depeneding on whether or not you would like to display description from the form).Insert the ask us tab with the form on every single product page.
echo FrmFormsController::show_form(28, $key = 'frmprocontact2', $title=false, $description=true);
as follows: (Your created Formidable Form ID, $key= 'Formidable Form Key', $title = true or false depending on wheter or not you would like to display the title set in form, $description = true or false depeneding on whether or not you would like to display description from the form). Also, you can change the title of the tab and its order by modyfing 'title' => __( 'Your Tab Title here', 'woocommerce' )
and 'priority' => Your number here
.