This topic has 6 replies, 3 voices, and was last updated 8 years, 6 months ago ago by Robert Hall
Hi,
I am still getting this error. But it is only on variable products. The variations are set up correctly, I don’t know why it’s not working. Here is the error again:
Warning: Invalid argument supplied for foreach() in /home3/waaiyk0aae7y/public_html/wp-content/themes/legenda/framework/theme-functions.php on line 3063
This product is currently out of stock and unavailable.
Here is a link to a variable product: http://pictureascripture.com/product/i-love-them-that-love-me-by-susanna-katherine/
The error is showing up right below the price.
I appreciate any help you can offer. Thanks!
Hello,
Please provide us with FTP credentials.
Regards,
Eva Kemp.
Thanks for the help.
Hello,
I’ve removed variable.php file in wp-content/themes/legenda/woocommerce/single-product/add-to-cart directory and added this code in functions.php file:
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 100;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 100, 2 );
You can read about it here:
https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/
Please clear browser cache and check product page now.
Regards,
Eva Kemp.
Okay thanks! When I update WordPress will the changes stay? Or do I have to redo those changes?
Hello,
Yes, but we reccommend you to make backup of the site each time before updating.
Regards,
Robert Hall.
You must be logged in to reply to this topic.Log in/Sign up