HUSKY - Products Filter Professional for WooCommerce

[woof]

WooCommerce Products Filter 的主短代码。生成搜索表单。 设计:1 页 – 1 个过滤器,无法将多个过滤器放在同一页上。

属性

  • sid – shortcode-identificator – uses for generating unique CSS class in main container of generated search form making unique design. Defined and basic sid in the plugin is ‘auto_shorcode‘。客户和开发人员可以创建任何 sids 并应用他们自己的 CSS 样式。
    可以使用以下语法更改皮肤: sid =”flat_grey woof_auto_3_columns” – 在...的位置 3 可以是整数,范围从 1 到 4, and on the place of flat_grey 可以是:flat_grey 或 flat_dark。
  • 自动隐藏 - 搜索表单在页面加载后是隐藏 (0) 还是显示 (1)
  • 自动提交 – 即使在插件选项页面中禁用了搜索表单,也允许自动提交。示例:[woof autosubmit=1]
  • is_ajax – 生成的搜索表单应通过 AJAX(1)工作或不工作(0)
  • 分类 – 如果激活,则用于在生成的搜索表单中显示相关的过滤器项:在插件设置中显示计数+动态重新计数+隐藏空选项。 Example[woof is_ajax=1 分类=product_cat:9,12+locations:30,31]
  • ajax_redraw – Redraws search form 不提交搜索数据. 在 AJAX 模式下不起作用。示例:[woof redirect=”http://www.my_site.com/test-all/” autosubmit=1 ajax_redraw=1 is_ajax=1 tax_only=”locations” by_only=”none”].
  • tax_only – 通过此属性,您可以使用逗号组合任何搜索表单和任何分类法。示例: [woof tax_only=’pa_color,pa_size‘ by_only=’by_sku,by_author’]。 使用“none”不输出所有分类法。 属性中的分类顺序‘tax_only‘ has the sense!
  • by_only – 强大的属性,用于使用逗号组合任何具有任何分类法的搜索表单。写任何 by-filter-elements 在此处使用逗号: by_text,by_price,by_sku,by_author,by_onsales,by_instock。当然,首先用户应该启用相关扩展 by-filter-elements。例如: [woof tax_only=’pa_color,pa_size’ by_only=’by_sku,by_author‘]. 使用‘“以不输出所有非分类元素。可以在此短代码属性元键中使用,如果它们已添加到选项卡中 元字段, example: [woof tax_only=’pa_color,pa_size’ by_only=’_width]。使用单词“‘ 以避免显示非分类的过滤器部分。
  • tax_exclude – 排除搜索表单中的分类。示例: [woof tax_exclude=’pa_size,pa_test’]
  • redirect – allows to show results on any another page of the site. Example: [woof redirect=’http://www.my_site.com/search_page_results_77′]。在 ajax 模式下不起作用 – 因为重定向在 ajax 模式下没有意义!
  • start_filtering_btn – 生成的搜索表单应隐藏 (1) 或不隐藏 (0)。如果表单隐藏,您将看到一个简单的按钮,点击后搜索表单将出现。避免在页面加载时由于搜索表单相当大而产生延迟的最佳选择。文本可以通过 hook 更改 woof_start_filtering_btn_txt 或通过属性“start_filtering_btn_txt
  • btn_position – 允许在底部设置过滤器和重置按钮 – b, top – t, top&bottom – tb. 默认为底部。 免费版本不起作用!!
  • dynamic_recount – 允许启用(1) 或禁用 (0) 动态计数,仅针对当前产品搜索表单。默认为选项卡 Options 中的选项。 免费版本不起作用!!
  • hide_terms_count – 隐藏带有变体数量的文本,1 或 0。 免费版本不起作用!!
  • conditionals – 扩展的特殊属性 '条件‘,它允许根据当前过滤请求定义过滤器元素显示条件,类似于预定义步骤。示例:[woof conditionals=’product_cat>by_price,pa_size,by_instock>pa_color+pa_size->by_price’]
  • mobile_mode – 隐藏移动设备上的 WOOF 过滤器表单,并出现一个显示过滤器的按钮。属性‘sid‘ 必须!示例:[woof mobile_mode=1 sid=’test’]。该按钮会自动添加到“.woocommerce-products-header‘ selector 可以使用 hook ‘ 更改woof_mobile_btn_place_container‘,要将按钮显示在特定位置,请使用短代码 [woof_mobile] – 此短代码添加一个容器,其中插入了按钮。