Linux 软件免费装
Banner图

WooCommerce Show Attributes

开发者 isabel104
更新时间 2020年8月30日 13:12
PHP版本: 3.8 及以上
WordPress版本: 5.0-alpha-42420
版权: GNU Version 2 or Any Later Venrsion
版权网址: 版权信息

标签

woocommerce attributes product attributes woocommerce attributes woocommerce product attributes

下载

1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.3.1 1.4.0 1.4.1 1.4.2 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.2.5 1.3

详情介绍:

This is an extension for WooCommerce that will show your custom product attributes on the single product page above the "Add to cart" button instead of in the "Additional Information" tab. Your product attributes will also be displayed at several other locations, including on order emails. See the full list, below. This plugin does NOT affect nor include attributes which are used for Variations. Your product attributes will also be displayed at these locations (with option to turn them off): See the full documentation. Languages If you want to translate this plugin to your language, you can do so easily on this page. After you submit a translation, contact me in the support forum to request approval as a Translation Editor. Disclaimer I am not affiliated with WooCommerce or Automattic. I provide this plugin as a free service to the WP community because of the many requests that I received for it.

安装:

Install and Activate
  1. Install and activate the plugin in your WordPress dashboard by going to Plugins –> Add New.
  2. Search for “WooCommerce Show Attributes” to find the plugin.
  3. When you see WooCommerce Show Attributes, click “Install Now” to install the plugin.
  4. Click “Activate” to activate the plugin.
Setup
  1. After you activate the plugin, your custom product attributes will automatically be shown at certain locations. (see which locations).
  2. If you want to show the attributes on the single product page, do this: For each attribute that you want to display, you must check the box for “Visible on the product page.” This is a WooCommerce native option and is found on the Edit Product page (for each product), under the individual attribute settings. If you uncheck that box, the attribute will not be shown for that product.
  3. Optional settings are at WooCommerce Settings -> Products tab. Click on "Show Attributes" to see this plugin's options.

屏幕截图:

  • The attributes under the product name on the Cart page.
  • The attributes under the product name on the Customer's Order Details page on the front end.
  • The attributes under the product name on the Edit Order page in the admin backend.

常见问题:

How do I show only some attributes, while not showing others?

For each attribute that you want to display, you must check the box for “Visible on the product page.” So, you can use that setting to show some attributes. Leave the box unchecked for the attributes that you do not want to show.

Why are my custom attributes NOT showing up?

For each attribute that you want to display, you must check the box for “Visible on the product page.” If you leave that box unchecked, that attribute will not be shown by this plugin.

Can I show the product weight and/or dimensions above the Add to Cart button?

Yes, since version 1.4.0. See this plugin's settings page to enable this.

How do I hide the attribute labels and only show the values?

Go to WooCommerce Settings -> Product tab, under "Product Data". Check the box for "Hide the Labels When Showing Product Attributes". Click "Save changes".

How do I remove the list bullets from the attributes on the single product page?

Go to WooCommerce Settings -> Product tab, under "Product Data". Check the box for "Show Attributes in a span Element". Click "Save changes".

How can I style the attributes?

This plugin adds several CSS selectors so that you can style the output by adding your own CSS. On the "single product page", the attributes are in an unordered list with the CSS class "custom-attributes". Each list item has two CSS classes: its attribute name and its value. Within each list item, each attribute label has the CSS class "attribute-label", and each attribute value has the CSS class "attribute-value". On the Cart page, View Order page, admin Edit Order page, and in the emails, the attributes are wrapped in a 'span' element with the CSS class "custom-attributes". Each attribute name and value pair is wrapped in a 'span' which has two CSS classes: its attribute name and its value. Within this span, each attribute label has the CSS class "attribute-label", and each attribute value has the CSS class "attribute-value".

How do I remove the extra left-margin space from the attributes on the single product page?

Add this CSS: ul.custom-attributes { margin-left: 0; }

How do I make all the attribute labels bold?

Add this CSS: .custom-attributes .attribute-label { font-weight: bold; }

How do I make all the labels and values italic?

Add this CSS: .custom-attributes { font-style:italic }

更新日志:

1.6.4 1.6.3 1.6.2 1.6.1 1.6 1.5.4 1.5.3 1.5.2 1.5.1 1.5 1.4.2 1.4.1 1.4.0 1.3.1 1.3 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2 1.1 1.0 1.6.4 Fixed missing attributes on the Cart page for variable products. 1.6.2 Fixed a fatal error. New PolyLang translation support for attribute names. This plugin requires WooCommerce 3.0 or higher. 1.6.1 Fixed an installation error in version 1.6. This plugin now requires WooCommerce 3.0 or higher. 1.6 Compatibility with PHP 7.1 and WooCommerce 3.0. Accessing attribute data directly was causing some PHP notices in PHP 7.1. 1.5.4 Fix - Remove 'Product' from the attribute label which was caused by a change in WooCommerce 3.0. 1.5.2 Fix - Improve use of get_current_screen since it returns NULL in some cases. 1.5.1 Fix - Removed attributes from the admin main Orders page because it was ruining the HTML for the item names. 1.4.1 Fix - Avoid PHP errors when calling get_attributes. 1.4.0 16 new options are available to give you more control over where to show the attributes. 1.2.5 Fixed a Fatal Error on the admin Edit Order page. 1.2.3 New option to show attributes on the shop pages, which also includes the product category and tag pages. 1.2.2 Fix - Attribute labels were temporarily hidden leaving only the attribute value showing in version 1.2.1. 1.2 New - Custom attributes now also appear on the Cart, View Order, admin Edit Order page, and in emails.