WordPress.org

Forums

WooCommerce Max Quantity
[resolved] undefined function wc_add_notice (3 posts)

  1. infosws
    Member
    Posted 1 year ago #

    Tried to update quantity from product page or cart page:

    Fatal error: Call to undefined function wc_add_notice() in wp-content/plugins/woocommerce-max-quantity/woocommerce-max-quantity.php on line 160

    or

    Fatal error: Call to undefined function wc_add_notice() in wp-content/plugins/woocommerce-max-quantity/woocommerce-max-quantity.php on line 193

    Using latest version of plugin and version 2.0.17 of WooCommerce.

    I know I only have 3.6.1 or WordPress but this shouldn't matter should it? It's a wc function that's missing.

    Thanks.

    https://wordpress.org/plugins/woocommerce-max-quantity/

  2. isabel104
    Member
    Plugin Author

    Posted 1 year ago #

    The wc_add_notice() function was introduced in WooCommerce 2.1.0. And it requires WordPress 3.8. Sorry for the inconvenience.

  3. infosws
    Member
    Posted 1 year ago #

    Thanks. This was it. After upgrading WordPress (and WooCommerce, just to be sure) it worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Max Quantity
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.