GET FREE VERSION GET THE PRO VERSION

Advanced Woo Search integration

Learn about integration with Advanced Woo Search plugin.

In this article

Overview

Key features of integration:
  • Show labels inside search results. Show product labels for all products inside search results.
  • Display conditions. Use special display conditions to show/hide labels for search results.
  • Replace default labels. Replace default Sale label with the custom one.

Advanced Woo Search is an advanced search plugin for WooCommerce stores. It supports both AJAX search results and search results page, searching inside different product fields, taxonomies search and many more.

Advanced Woo Labels has built-in integration with these search plugins. It is possible to display labels directly inside search results lists and also use special labels display conditions to hide or show specific labels for the plugin search results.

Display labels for search results

Integration with Advanced Woo Search plugin gives a feature to display labels on both search results page and AJAX results box.

There are no additional steps that you need to implement in order to display these labels. If the label display condition is matched for the current product inside search results, then this label will be visible.

Labels inside plugin AJAX search results

Labels inside plugin AJAX search results

Labels inside plugin search results page

Labels inside plugin search results page

Note: All labels inside AJAX results block will be displayed before product title no matter what position was set inside label settings.

So by default all labels are visible for search results. But it is also possible to use special label display conditions to hide some labels from the AJAX results box or search results page. All these conditions can be set right from the label edit page along with all other available options.

Special display conditions

Integration with Advanced Woo Search plugin gives two additional labels display conditions: Is inside ajax results and Is inside results page. Meaning of these conditions is clear from their names.

Condition: Is inside AJAX results

Label display condition to show/hide label for products inside AJAX results box.

Label condition: Is product inside AJAX results block

Label condition: Is product inside AJAX results block

Simply open label edit page and inside Label condition box select AWS: Is inside ajax results rule. Set it to Yes or No to show/hide labels for products that are inside an AJAX box.

Condition: Is inside results page

Label display condition to show/hide label for products inside plugin search results page.

Label condition: Is product inside search results page

Label condition: Is product inside search results page

To set this display condition open label edit page, find Label condition box and select AWS: Is inside results page rule. Set its value to Yes or No to show/hide labels for products inside the plugin search results page.

Hide default sale badges

Advanced Woo Labels has a special option to disable all default on sale badges. This is very helpful if you want to replace such badges with related AWL plugin labels.

So such an option works for Advanced Woo Search results. It is possible to hide sale badges for plugin search results and then add some custom ones created via AWL plugin.

Here is a steps to hide default on sale badges:

1. Open Adv. Woo Labels -> Settings page.

2. Find Show default 'sale' label option and set it to Hide.

Option to hide all default sale badges

Option to hide all default sale badges

That's all! Now all your theme default sale badges and Advanced Woo Search sale badges will be hidden.

Now we can create new sale labels for all on sale products via Advanced Woo Labels plugin. Please follow these steps:

1. Open Adv. Woo Labels -> Add New page.

2. Find Label Conditions box and choose Is on sale condition. Set its value to Yes.

Condition: Is product on sale

Condition: Is product on sale

3. Set any other label options like label text and label styles.

4. After it is set just click the Publish button.

All is done. Now all the products that are on sale will have shiny new sale labels. Including the products inside Advanced Woo Search plugin search results ( both AJAX and search results page ).

Default sale label before changes

Default sale label before changes

New sale label created via Advanced Woo Labels plugin

New sale label created via Advanced Woo Labels plugin