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.

Have Some Questions?

Our Sales and Support teams are available 24 hours by phone or e-mail to assist.

1.800.580.4985
1.517.322.0434

Latest Articles

Cloudstack vs OpenStack: Which is Right For You?

Read Article

Cloning an Existing Virtual Machine with VMware

Read Article

Five Steps to Create a Robots.txt File for Your Website

Read Article

Premium Business Email Pricing FAQ

Read Article

Microsoft Exchange Server Security Update

Read Article