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

WooCommerce Sold Individually for Variations

描述

Option 1: Sell the whole variable product individually

This plugin allows you to apply the “Sold individually” WooCommerce product setting to the whole variable product (including its variations), thus not allowing the customer to buy more than one unit of the variable product, even if it’s a different variation.

Example: Your WooCommerce store has a wine that you sell in 2-pack or 6-pack boxes, and, let’s say, for logistical reasons you don’t want the customer to buy both in a single order. With this WooCommerce extension, the client can only pick one unit of one of the variations.

Inspired by this GitHub thread.

Option 2: Sell a variation individually

You can also set that a specific variation is “Sold individually”. In that scenario, the variable product should NOT be set as “Sold individually”.

Example: Your WooCommerce store sells music, both as physical CDs and digital downloads. Each album is a product with variations, allowing the customer to either buy the physical CD (as many as he wants) or the audio download (sold individually).

屏幕截图

  • Variable product settings
  • Error message when adding second variation to the cart
  • Variation specific “Sold individually” field

安装

  • Use the included automatic install feature on your WordPress admin panel and search for “WooCommerce Sold Individually for Variations”.
  • Option 1: Go to your variable product inventory settings and activate the “Sold individually” and “Apply Sold individually to variations” options.
  • Option 2: Go to your variation settings and activate the “Sold individually” option.

常见问题

I need help, can I get technical support?

This is a free plugin. It’s our way of giving back to the wonderful WordPress community.

There’s a support tab on the top of this page, where you can ask the community for help. We’ll try to keep an eye on the forums but we cannot promise to answer support tickets.

If you reach us by email or any other direct contact means, we’ll assume you are in need of urgent, premium, and of course, paid-for support.

Why is this plugin not compatible with WooCommerce versions lower than 3.0?

Come on dude…

Can I contribute with a translation?

Sure. Go to GlotPress and help us out.

评价

2019年11月11日
When I try to edit a product I get following error in the console: Uncaught TypeError: $ is not a function This is probably caused by line 69 class-woo-sold-individually-for-variations.php
2019年5月2日
On many of my variable products, I offer digital downloads as well as physical CDs. This plugin allows me to specify the downloadable products must be sold individually, while the CDs are able to be purchased in quantity. I've just installed the plugin and it appears to work well and provide a simple way of doing this which was previously not possible with the default Woocommerce plugin.
阅读所有4条评价

贡献者及开发者

“WooCommerce Sold Individually for Variations” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“WooCommerce Sold Individually for Variations”插件已被翻译至2种本地话语言。 感谢所有译者为本插件所做的贡献。

将“WooCommerce Sold Individually for Variations”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.6 – 2021-03-10

  • Change the “You cannot add another…” message to use the main product name instead of the variation name
  • Tested with WordPress 5.8-alpha-50516 and WooCommerce 5.1.0

0.5

  • Tested with WordPress 5.5-alpha-47783 and WooCommerce 4.2.0-beta.1

0.4

  • Fix jQuery error

0.3

  • Tested with WordPress 5.2.5-alpha and WooCommerce 3.8.0

0.2

  • “Sold individually” option at the product variation level, so you can sell a variation individually but not all of them
  • Tested with WordPress 5.1 and WooCommerce 3.5.5

0.1.2

  • WooCommerce CRUD functions to save product meta

0.1.1

  • readme.txt and plugin description improvements
  • Check for WooCommerce 3.0 (or above)

0.1

  • Initial release