Learn how to set up, customize, and expand the functionality of your WooCommerce products with our library of documentation and tutorials.
  1. Documentation /
  2. Products /
  3. Extensions /
  4. WooCommerce Product Search /
  5. Shortcodes

Shortcodes


Documents

  • [woocommerce_product_filter_attribute]

    The [woocommerce_product_filter_attribute] shortcode shows a live Product Attribute Filter. This live filter displays the terms related to a product attribute. Used within appropriate context*, the customer can click a term and the page will show products that are related to it. Typical examples are Color, Size, Brand, … in the case of a Size attribute, […]

  • [woocommerce_product_filter_category]

    The [woocommerce_product_filter_category] shortcode shows a live Product Category Filter. This live filter displays the product categories. Used within appropriate context, the customer can click a category (term) and the page will show the products that belong to it. This shortcode must be used within appropriate context, i.e. where products are displayed, as for example on […]

  • [woocommerce_product_filter_context]

    This shortcode is used to establish a filter context as described below. It is not used to produce any particular output by itself. The shortcode determines the current filter context based on the attributes given. The shortcode must be placed within the page content. It will not work if it is placed in a widget […]

  • [woocommerce_product_filter_price]

    The [woocommerce_product_filter_price] shortcode shows a live Product Price Filter, it displays two input fields and a slider that the customer can use to limit the price range. While sliding or typing in the input fields, the product selection will adjust to the matching subset. This shortcode must be used within appropriate context, i.e. where products […]

  • [woocommerce_product_filter_products]

    Live Product Display – Dynamic Shop Page Shortcode The [woocommerce_product_filter_products] shortcode shows the products like on the shop page and works together with the live Product Filters. The shortcode takes the attributes described below, all are optional and the defaults should be suitable for many deployments. If you place this shortcode on a page, you […]

  • [woocommerce_product_filter_rating]

    This shortcode is the equivalent to the Product Filter – Rating widget. It allows to filter products by average rating. The shortcode should be used within the appropriate context, i.e. where products are displayed. This can be on a shop page, a product category page or in combination with the [woocommerce_product_filter_products] shortcode. As with all […]

  • [woocommerce_product_filter_sale]

    The [woocommerce_product_filter_sale] shortcode provides a live filter that allows to limit the products displayed to those that are on sale. For this purpose, the filter displays a convenient option which visitors can simply click and then the shop page is updated to include only those products which are currently on sale. This also works in […]

  • [woocommerce_product_filter_stock]

    The [woocommerce_product_filter_stock] shortcode provides a live filter that allows to limit the products displayed to those that are in stock or available on backorder. For this purpose, the filter displays a convenient option which visitors can simply click and then the shop page is updated to include the eligible products. This also works in combination […]

  • [woocommerce_product_filter_tag]

    The [woocommerce_product_filter_tag] shortcode shows a live Product Tag Filter, i.e. it displays product tags. Used within appropriate context, the customer can click a tag (term) and the page will show the related products. This shortcode must be used within appropriate context, i.e. where products are displayed, as for example on a shop page. As with […]

  • [woocommerce_product_filter]

    The [woocommerce_product_filter] shortcode renders a live Product Search Filter which customers can use to refine the selection of products shown on a shop page. Use this shortcode to show an input field which updates the products displayed on the same page while the customer types. This shortcode must be used within appropriate context, i.e. where […]