• Hi, the plugin works, but there is a error in the error log.

    Also might crash the system after a lot of activity.

    Notice obsolete/home3/amourato/public_html/lumi/wp-includes/functions.php3831
    
    Notice /home3/amourato/public_html/lumi/wp-content/plugins/automatically-add-product-to-cart-after-visit-woocommerce/autoadd2cart.php199
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gaucho code

    (@glowzar)

    I have commented line 199 of the plugin autoadd2cart.php file and it works now, without problem, in my context, not sure if it affects the cart in a wrong way for other users store setup.

    comment the part that creates problems like this:

         // if product not found, add it  
         // if ($found_quant && $woocommerce->cart) {
         //     $woocommerce->cart->add_to_cart($product_id, $quantity = $quant);
         // }

    It would be good to fix the bug on the main plugin. thanks.4

    Thread Starter gaucho code

    (@glowzar)

    Another error detected is this one:

    get_product()
    wp-content/plugins/automatically-add-product-to-cart-after-visit-woocommerce/autoadd2cart.php:176

    get_product() is not longer valid.
    replace with wc_get_product

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP obsolete’ is closed to new replies.