Support » Plugin: WooCommerce PPOM » Warning: Missing argument 3 for ppom_woocommerce

  • Resolved skyltar

    (@skyltar)


    Hi!
    I got this error in my cart:
    Warning: Missing argument 3 for ppom_woocommerce_control_cart_quantity() in /home2/skyltar/public_html/webbshop.se/wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php on line 593

    What can I do about it?
    Here is my webshop but you can not see anything if you are not logged in:
    http://webbshop.skyltar.se/varukorg/
    Here is a screenshot: https://imgur.com/a/ra6cZJA

    • This topic was modified 1 year, 1 month ago by  skyltar.
    • This topic was modified 1 year, 1 month ago by  skyltar.
    • This topic was modified 1 year, 1 month ago by  skyltar.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    we got the issue, it’s related to theme cart.php template, it has old function copied. You need to update your theme, here is more detail:

    the issue is related to theme that overwrite the WooCommerce template cart.php, in the file:

    wp-content/themes/YOUR_THEME_NAME/woocommerce/cart/cart.php:

    is caused by the filter “woocommerce_cart_item_quantity” that in some themes missed the third argument:

    echo apply_filters( ‘woocommerce_cart_item_quantity’, $product_quantity, $cart_item_key );

    below the right code:

    echo apply_filters( ‘woocommerce_cart_item_quantity’, $product_quantity, $cart_item_key, $cart_item );

    changing the code like above will fix the issue and the error disappear.

    Hi!
    It worked fine but now I get a new error message in Woocommerce cart / quantity:

    Warning: Missing argument 3 for ppom_woocommerce_control_cart_quantity() in /home2/skyltar/public_html/webbshop.se/wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php on line 598

    Plugin Author N-Media

    (@nmedia)

    Hi,

    we have fixed this issue on your request and plugin will be updated in couple of days.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: Missing argument 3 for ppom_woocommerce’ is closed to new replies.