Topic Resolution: Resolved
  • Creator
    Topic
  • #18685

    Patrik Löfvander
    Spectator
    Been thanked: 0 times

    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

Viewing 5 replies - 1 through 5 (of 5 total)
Replies
  • Imran
    Spectator
    Post count: 403
    Been thanked: 0 times
    #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
    Post count: 11
    Been thanked: 0 times
    #18695 |

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

    Denzel Chia
    Moderator
    Post count: 2871
    Been thanked: 94 times
    #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
    Post count: 11
    Been thanked: 0 times
    #18924 |

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

    Denzel Chia
    Moderator
    Post count: 2871
    Been thanked: 94 times
    #18928 |

    Ok, Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.