This plugin allows you to apply the “Sold individually” WooCommerce product setting to the whole variable product (including its variations), thus not …
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.
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).
Already know our other WooCommerce (premium) plugins?
The way we’re checking for the existence of another variation in the cart is the same WooCommerce uses to find a product, which does not consider the same product with a different meta to be the same product.
If you want to override this behavior and want to avoid another variation, with a different meta, to be allowed on the cart, return true to the woo_sold_individually_for_variations_ignore_cart_meta
filter.
Sure. Go to GlotPress and help us out.
Yes.
Yes.
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 need, premium, and of course, paid-for support.
You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
woo_sold_individually_for_variations_ignore_cart_meta
(see FAQ)Requires Plugins
tag to woocommerce