• Resolved Byron Hasegawa

    (@byron222)


    I get the next error in my product single page

    Uncaught Error: Call to a member function is_type() on bool in /home/test/DocumentRoot/wp-content/plugins/booster-plus-for-woocommerce/includes/class-wcj-shipping-by-products.php:101

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Byron Hasegawa

    (@byron222)

    I fix this by my self adding the next code

    $cart = WC()->cart->get_cart();
    foreach ( $cart as $_products ) {
    $_product_id = $_products["product_id"];
    $_product = wc_get_product( $_product_id );
    			
    if ( $_product->is_type( 'variable' ) ) {
    $products_variations = array_merge( $products_variations, $_product->get_children() );
    } else {
    $products_variations[] = $_product_id;
    }
    }
    Plugin Support David G

    (@gravid7)

    Hi @byron222

    Can you please let us know which plugin version you are using? So, we can check in latest plugin and fix if same issue there.

    Thread Starter Byron Hasegawa

    (@byron222)

    I think is the latest one : 5.3.8

    thank you!

    Plugin Support David G

    (@gravid7)

    Hi @byron222

    Thank you very much for your help. We will surely check and resolve it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I get an error in my single product page’ is closed to new replies.