Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Woocommerce – Products By Custom Tax

Descrizione

Shortcodes included with WooCommerce lacks on the possibility to display products in post or pages filtering them by a custom taxonomy type.

For example in the scenario where we have a custom taxonomy type for products which is called Vendors and this one contains Apple, Samsung, LG, Motorola, Microsoft, … as taxonomy tags elements. If we like to display only the products by Apple in a page or post, here this odd tweak plugin comes to the rescue.

Usage

[woo_products_custom_tax tax_name="vendor" tax_tags="apple" columns="4" template="product" qty="10" order="DESC"]

Attributes

  • tax_name (string) (required): The custom taxonomy slug.
  • tax_tags (string) (required): The custom taxonomy tags slug. Accepts also multiple tags as an array separated by comma (tax_tags=”apple,samsung”).
  • columns (integer) (optional, default = 4): The ammount of products/colums to display per row.
  • template (string) (optional, default = “product”): Specifies the WooCommerce template file to use for displaying products. e.g. Instead of loading the default file /wp-content/plugins/woocommerce/templates/content-product.php you might want to use your custom template override file /wp-content/themes/twentyfifteen/woocommerce/content-my-custom-product-file.php. For this case you can load the template like (template=”my-custom-product-file”).
  • qty (integer) (optional, default = 10): The max ammount of products to display per page/output.
  • order (string) (optional, default = ‘DESC’): The order of products to display per page/output. ‘ASC’ – ascending order from lowest to highest values. ‘DESC’ – descending order from highest to lowest values.

Pagination

For pagination support please install Shortcode Pagination for WooCommerce.

Pull requests for fixes, new features and enhancements are welcome on GitHub 😉

Screenshot

  • The attributes

Installazione

  1. Search for “Woocommerce – Products By Custom Tax” on the WordPress Plugin directory from your WordPress site dashboard or download it.
  2. Install the plugin.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

FAQ

Requirements

Recensioni

3 Settembre 2016
Did the job in listing products by custom taxonomy when there wasn't an official WooCommerce shortcode to do it. Just what I needed!
Leggi tutte le recensioni di 3

Contributi e sviluppo

“Woocommerce – Products By Custom Tax” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Changelog (registro delle modifiche)

2.2

  • Fix – Added missing plugin core files from subfolders.

2.1

2.0

  • Core – Rewritten all plugin codebase.

1.5

  • Feature – Added ‘order’ parameter.

1.3

  • Feature – Addded ability to load custom product display template file.
  • Fix – Prevent plugin directory listing.

1.2

  • Misc – Prefix functions for better code standards.

1.1

  • Prevent data leaks.
  • Display error message in the dashboard in case WooCommerce core plugin is not installed and activated.

1.0

  • Plugin initial release.