• 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:
    https://webbshop.skyltar.se/varukorg/
    Here is a screenshot: https://imgur.com/a/ra6cZJA

    • This topic was modified 6 years, 7 months ago by skyltar.
    • This topic was modified 6 years, 7 months ago by skyltar.
    • This topic was modified 6 years, 7 months ago by skyltar.
Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter skyltar

    (@skyltar)

    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

    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.