I’m making an attempt to create a search type that can search inside merchandise which might be on sale/promotion inside WooCommerce. Here’s what I’ve to this point:
<type methodology="get" motion="<?php echo esc_url( home_url( '/' ) ); ?>">
<enter sort="hidden" post_type="product" post__in="wc_get_product_ids_on_sale" />
<enter sort="text" measurement="16" identify="s" worth="Search" />
<enter sort="submit" worth="Go" />
</type>