Monday, March 30, 2020

How to automatically setup default products attributes

One of those little things that can make you lose a lot of sales in your WooCommerce is the default attributes. In this article, I’ll show you how to create a code snippet to set default attributes in all your products.

Product Variations

When you create variations in your products, based on your product attributes, you have to remember to set the default combination of those attributes.

If you leave the default attributes unselected, the add to cart button in your product page will be blocked until the user selects the attributes combination.

Don’t ask why, but usually receive a lot, I mean a LOT! of user complaints about this blocked button, and I spend hours explaining to clients that they should select the shoe size before buying a shoe.

So, let’s get into it!

How to automatically set up default products attributes?

WooCommerce Express

If you don’t want or don’t know how to include this code in your theme and you’re looking for plugin solution you can install the WooCommerce Express plugin.

After activating the plugin just go to the settings in your admin dashboard: WooCommerce > Settings > Express > Products and activate the option Add default attributes in variable products.

WooCommerce Express

Leave a Reply