Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter deivnet

    (@deivnet)

    Hello, i tried but not work, page time loading take at least 20seconds for 300 variations.

    In file class-events-manager.php (includes folder) when i comment this piece of code the loading time become fast (1 second).

    Also i try to comment javascript code, but page loading fast only if i comment this piece of code in setupWooSingleProductData function.

    `// variations ids
    if ( wooProductIsType( $product, ‘variable’ ) ) {

    foreach ( $product->get_available_variations() as $variation ) {

    $variation = wc_get_product( $variation[‘variation_id’] );
    if(!$variation) continue;
    if ( isWooCommerceVersionGte( ‘2.6’ ) ) {
    $product_ids[] = $variation->get_id();
    } else {
    $product_ids[] = $variation->post->ID;
    }

    }

    }

Viewing 1 replies (of 1 total)