Increase WooCommerce product variation limit

Reading Time: 1 minute

How can I increase the number of default product variations in WooCommerce?

A WooCommerce variable product is a standard product type which allows you to offer a group of variations (different sizes, colors, prices and so on) in a product to your customer. This simply means that it shows a wider array of attributes which your customers can choose from.

In order to modify this setting, SSH into the server and open your functions.php file located here:

/wp-content/themes/YOUR_THEME/functions.php

Now, let’s modify the variable:

Constant – WC_MAX_LINKED_VARIATIONS

vs

Filter – woocommerce_ajax_variation_threshold

Author Bio

About the Author: Dan Pock

Dan Pock does Technical Writing & Marketing at Liquid Web with a background in System Administration, Public Relations, and Customer Service.

His favorite things include: his cats, Oscar Boots and Dash Nouget; experimenting with PHP; and making up recipes (or at least attempting to). You can find his coding hijinks on GitHub, where he shares most of his projects and open source work.

Get 33% off the first 3 months on a new VPS! Find out why 30,000 customers have chosen our Best-in-Class Performance & 24x7x365 Support