This topic has 7 replies, 2 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp
Hi
I have updated to latest woocommerce 2,5 and my variations on products did now show. After some time I found out that it will only take maximum of 30 variation. On the 31st variation, it stopped showing and says “product is not in stock” when I view the product on the front end.
I found several woocommerce templates out of date as per below. I am running xmarket 2,0 and woocommerce 2,5 (copied in private):
Thanks for suggestions/P
Hello,
To fix variations issues add this code in functions.php file:
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 1000;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 1000, 2 );
You can read about it here:
https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/
Template files will be updated in the next theme version.
Regards,
Eva Kemp.
Hi Eva,
Thanks, however I encountered problems with server error, can you help. See private!
Hello,
You added the code to incorrect file.
I’ve edited it and re-added to the correct file wp-content/themes/xmarket/functions.php.
Please check variable products now.
Regards,
Eva Kemp.
Dear Eva,
Excellent, I am very happy and thank you for your fantastic service.
5 stars/Peter
Hello,
You’re welcome.
We’d be thankful if you leave a comment on ThemeForest site:
http://themeforest.net/item/xmarket-responsive-wordpress-ecommerce-theme/3558432/comments
Thank you.
Regards,
Eva Kemp.
The issue related to '‘Problems with woocommerce variations in xmarket theme’' has been successfully resolved, and the topic is now closed for further responses