Check-out our new look and give us some feedback!

Increase WooCommerce product variation limit

Posted on by Dan Pock
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

About the Author: Dan Pock

Dan Pock does technical support at Liquid Web with a background in System Administration, Public Relations, and Customer Service. His favorite things include his cats, Oscar Boots, and Dash Nougat; 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.

Latest Articles

How to Edit Your DNS Hosts File

Read Article

How to Edit Your DNS Hosts File

Read Article

Microsoft Exchange Server Security Update

Read Article

How to Monitor Your Server in WHM

Read Article

How to Monitor Your Server in WHM

Read Article