Still getting error on variable products

This topic has 6 replies, 3 voices, and was last updated 8 years, 6 months ago ago by Robert Hall

  • Avatar: CIDesign_Media
    CIDesign_Media
    Participant
    October 2, 2015 at 23:48

    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!

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 3, 2015 at 12:08

    Hello,

    Please provide us with FTP credentials.

    Regards,
    Eva Kemp.

    Avatar: CIDesign_Media
    CIDesign_Media
    Participant
    October 5, 2015 at 16:24

    Thanks for the help.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 5, 2015 at 19:05

    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.

    Avatar: CIDesign_Media
    CIDesign_Media
    Participant
    October 5, 2015 at 20:51

    Okay thanks! When I update WordPress will the changes stay? Or do I have to redo those changes?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 5, 2015 at 21:12

    Hello,

    Yes, but we reccommend you to make backup of the site each time before updating.

    Regards,
    Robert Hall.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.