The ability to optimize and flexibilityWooCommerce They made this platform more and more popular among online store developers. Having at the base WordPress, Woocommerce is an ideal module (plugin) for those who want to create an online store from scratch. It has a very good indexation rate (SEO), does not require a lot of system resources on the host servers (if they are configured for WooCommerce) and is easy to GIVEN. In addition, it offers multiple options of Stock administration, product codes, etc attribute and Variations.
Many would say that WooCommerce is not thought of for Magazine Online Gigant (most likely, not), but from the experience we tell you that it can easily support over 10,000 products, without putting an extraordinary pregnancy on the servers. Here it depends on of course how the host server is configured. We recommend Nginx + PHP-FPM on a server, and SQL on another server.
In Woocommerce, however, there is a limitation that few know. To a number of fish 30 variations, selection fields no longer take into account The combinations of attributes. It is not a panic, because if there is no combination of attributes, the product will not be ordered. But it can be a problem for customers. They will have to guess what combination of attributes exist in stock.
How do we make the WooCommerce attributes work normally and over 30 variations
In the WooCommerce SeaTile there is no option to change the admitted limit of variations, but we can do this if we edit the functions.php of the WordPress theme on which the online store works.
ADAULAND IN “/path/wp-content/themes/wootheme/functions.php” the next line.
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 200;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 100, 2 );
It is preferable to add the above line at the end of the code lines already existing in the active WooCommerce theme. After rescue, you see that the limit of 30 variations has been modified, and the combinations of Attributes go smoothly.