Attributes (which can be used for the layered nav) are a custom taxonomy, meaning you can display them in menus, or display products by attributes.
[youtube
https://www.youtube.com/watch?v=s7oELNNim0U]
Create a template
If you enable a attribute it will create a template file. if not You need to do the below stepts
- Copy
woocommerce/templates/taxonomy-product_cat.php
into your theme folder
- Rename the template to reflect your attribute – in our example we’d use
taxonomy-pa_size.php
Thats all there is to it. You will now see this template when viewing taxonomy terms for your custom attribute.
Settings Available Under
Products ==> Attributes Menu Manager
中等需求
- WordPress version 3.8 or greater
- PHP 5.2.4 或更新版本
- MySQL 5.0 或更新版本
- WooCommerce version 2.3.2 or greater
自动安装
Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install of Attributes Menu Manager For WooCommerce, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
In the search field type "Attributes Menu Manager For WooCommerce" and click Search Plugins. Once you've found our plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by simply clicking "Install Now"
手动安装
The manual installation method involves downloading our plugin and uploading it to your Web Server via your favourite FTP application. The WordPress codex contains
instructions on how to do this here.
-
Installing alternatives:
-
via Admin Dashboard:
- Go to 'Plugins > Add New', search for "Attributes Menu Manager For WooCommerce", click "install"
- OR via direct ZIP upload:
- Upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin
- OR via FTP upload:
- Upload
wc-attributes-menu-manager
folder to the /wp-content/plugins/
directory
- 通过WordPress的的“Plugins”菜单激活插件
- For Settings Look at your
Products ==> Attributes Menu Manager