Topic Resolution: Resolved
  • Closed
  • July 7, 2015 at 9:59 am #18685

    Hi.

    I get this on my checkoutpage before my product.
    Notice: Undefined variable: cart_item in C:\xampp\htdocs\WP\wp-content\themes\evolve-plus\evolve-plus\library\woo-config.php on line 1173

    Anyone have a clue what to do?

    Thanks!
    Patrik

    Imran
    Spectator
    Posts: 402
    July 7, 2015 at 2:22 pm #18691

    Hi Patrik,

    Thanks for writing in,

    You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    Thanks.

    Patrik Löfvander
    Spectator
    Posts: 11
    July 7, 2015 at 8:04 pm #18695

    Have tried that now with only the woocommerce plugin Active and it still says the same.

    Denzel Chia
    Moderator
    Posts: 2656
    July 8, 2015 at 7:05 am #18699

    Hi,

    Open up that file. evolve-plus\evolve-plus\library\woo-config.php and go to line 1173, find the following codes.

    $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );

    and replace with the following codes.
    $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), @$cart_item, $cart_item_key );

    All you can turn off your PHP notice reporting on your server.

    Thanks!
    Denzel

    Patrik Löfvander
    Spectator
    Posts: 11
    July 16, 2015 at 8:45 am #18924

    Problem is only on Xampp and not on regular server so we can close this topic!
    //Thanks

    Denzel Chia
    Moderator
    Posts: 2656
    July 16, 2015 at 8:56 am #18928

    Ok, Thanks!