该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Custom Product Tabs Lite for WooCommerce

描述

This plugin extends WooCommerce to allow a custom product tab to be added to single product pages with arbitrary content. The new custom tab may contain text, html (such as embedded videos), or shortcodes, and will appear between the “Additional Information” and “Reviews” tabs.

Requires WooCommerce 3.9.4 or newer

Features

  • Add a single custom tab to each product in your shop
  • Insert any desired content into custom tabs to provide product specifications, shipping info, or more
  • Custom tabs can accept shortcodes or HTML content – great for embedding a marketing video or inquiry form!

Support Details

We do support our free plugins and extensions, but please understand that support for premium products takes priority. We typically check the forums every few days (with a maximum delay of one week).

WooCommerce Tab Manager

To easily add multiple tabs, share tabs between products, and more features, please consider upgrading to the premium WooCommerce Tab Manager, available from the official WooCommerce.com store.

More Details

Interested in contributing? You can find the project on GitHub and contributions are welcome 🙂

屏幕截图

  • Adding a custom tab to a product in the admin
  • The custom tab displayed on the frontend

安装

  1. Upload the entire ‘woocommerce-custom-product-tabs-lite’ folder to the ‘/wp-content/plugins/’ directory, or upload the zip file via Plugins > Add New
  2. 通过WordPress的“插件”菜单激活插件
  3. Edit a product, then click on ‘Custom Tab’ within the ‘Product Data’ panel

常见问题

Can I add more than tab, or change the order of the tabs?

This free version does not have that functionality, but you can with the premium WooCommerce Tab Manager. This allows you to add multiple tabs, share tabs, edit core tabs, or re-order tab display.

How do I hide the tab heading?

The tab heading is shown before the tab content and is the same string as the tab title. An easy way to hide this is to add the following to the bottom of your theme’s functions.php or wherever you keep custom code:

add_filter( 'woocommerce_custom_product_tabs_lite_heading', '__return_empty_string' );

My tab content isn’t showing properly, how do I fix it?

Be sure that (1) your HTML is valid — try putting your tab content into a blog post draft and see how it renders. (2) Be sure any shortcodes will expand in your blog post draft as well; if they don’t work properly there, they won’t work in your custom tab.

Can I set the same tab title for all products?

Yep, there’s the woocommerce_custom_product_tabs_lite_title that passes in the tab title for you to change. This filter also passes in the $product and class instance if you’d like to change this conditionally.

Here’s how you can set one title for all custom tabs, regardless of what title is entered on the product page (can go in the bottom of functions.php or where you keep custom code):

function sv_change_custom_tab_title( $title ) {
 $title = 'Global tab title';
 return $title;
}
add_filter( 'woocommerce_custom_product_tabs_lite_title', 'sv_change_custom_tab_title' );

评价

2022 年 11 月 18 日
When asked if the sudden and without warning removal of being able to use shortcodes, a feature in place from the onset of the plugin, is permanent their reply was “I can’t say when (or if) this will make it onto our development roadmap”.
2022 年 9 月 24 日
Jessica, thanks for the great support. Very fast and clear. Light plugin, works as it should
2020 年 10 月 17 日 4 回复
I really loved this plugin for being so lite and simple. I came here to give it 5 stars then I realized that you can’t have more than 1 tab !! Aaah too bad So basically it’s “WooCommerce Custom Product Tab Lite” not TabS
2020 年 8 月 31 日 1 回复
Beware of SkyVerge. They insert advertising code into their paid plugins. If you’d like to be barraged by advertising after paying a large sum of money for a plugin have fun. It’s been a struggle to get the invasive code removed from my site. BAD FORM!
2020 年 7 月 24 日 1 回复
Просто, понятно, работает. Но мало. Всего одна вкладка! 🙁 Надо больше вкладок! P.S. Хотя бы еще одну.
阅读所有33条评价

贡献者及开发者

“Custom Product Tabs Lite for WooCommerce” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Custom Product Tabs Lite for WooCommerce」插件已被翻译至 4 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Custom Product Tabs Lite for WooCommerce”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2023.07.28 – version 1.8.0

  • Misc – Add compatibility for WooCommerce High Performance Order Storage (HPOS)

2022.12.02 – version 1.7.8

  • Fix – Allow shortcodes with parameters
  • Misc – Require PHP 7.4 and WordPress 5.6

2022.08.03 – version 1.7.7

  • Fix – Sanitize input

2022.07.31 – version 1.7.6

  • Misc – Rename to Custom Product Tabs Lite for WooCommerce

2022.03.01 – version 1.7.5

  • Misc – Require WooCommerce 3.9.4 or newer

2020.05.04 – version 1.7.4

  • Misc – Add support for WooCommerce 4.1

2020.03.10 – version 1.7.3

  • Misc – Add support for WooCommerce 4.0

2020.02.05 – version 1.7.2

  • Misc – Add support for WooCommerce 3.9

2019.11.11 – version 1.7.1

  • Misc – Add support for WooCommerce 3.8

= 2019.08.15 – version 1.7.0
* Misc – Add support for WooCommerce 3.7
* Misc – Remove support for WooCommerce 2.6

= 2019.06.12 – version 1.6.4
* Misc – Declare WooCommerce 3.6 compatibility

2018.08.10 – version 1.6.3

  • Misc – Remove support for WooCommerce 2.5

1.6.2 – 2017.08.22

  • Fix: PHP warning when WooCommerce is outdated

1.6.1 – 2017.04.03

  • Fix – Errors while editing products when WooCommerce Tab Manager is also active

1.6.0 – 2017.03.23

  • Misc – Added support for WooCommerce 3.0
  • Misc – Removed support for WooCommerce 2.4

1.5.0 – 2016.05.24

  • Misc – Added support for WooCommerce 2.6
  • Misc – Removed support for WooCommerce 2.3

1.4.0 – 2016.01.20

  • Misc – Added support for WooCommerce 2.5
  • Misc – Removed support for WooCommerce 2.2

1.3.1 – 2015.10.02

  • Misc – Use text domain strings

1.3.0 – 2015.07.28

  • Misc – WooCommerce 2.4 Compatibility

1.2.9 – 2015.05.14

  • Misc – version bump to fix SVN deploy issue

1.2.8 – 2015.05.14

  • Misc – added woocommerce_custom_product_tabs_lite_title filter to update tab titles

1.2.7 – 2015.02.09

  • Misc – WooCommerce 2.3 Compatibility

1.2.6 – 2014.09.05

  • Misc – WooCommerce 2.2 Compatibility

1.2.5 – 2014.01.22

  • Misc – WooCommerce 2.1 support
  • Localization – Text domain is now woocommerce-custom-product-tabs-lite

1.2.4 – 2013.08.26

  • Fix – Shortcode support in custom tab content

1.2.3 – 2013.06.06

  • Tweak – Changed admin field names to improve compatibility with other custom tab plugins

1.2.2 – 2013.05.15

  • Fix – Unicode characters supported in tab title

1.2.1 – 2013.04.26

  • Tweak – Minor code and documentation update

1.2.0 – 2013.02.16

  • WooCommerce 2.0 Compatiblity

1.1.0 – 2012.04.23

  • Feature – Shortcodes enabled for tab content

1.0.3 – 2012.03.19

  • Feature – Tab content textarea is larger for easier input

1.0.2 – 2012.03.19

  • Fix – Fixes an admin bug introduced by the 1.0.1 release (thanks to Cabbola)

1.0.1 – 2012.03.15

  • Fix – Fixes T_PAAMAYIM_NEKUDOTAYIM error (thanks daveshine)

1.0.0 – 2012.03.15

  • Misc – Code cleanup

0.1 – 2012.03.07

  • Initial release