• Resolved rwgieseler

    (@rwgieseler)


    The step control feature is not and has not worked. As I am debugging why this might not work, I found this error. Should this be fixed? Could this be the reason the step feature is not working?

    Component: woo-min-max-quantity-step-control-single
    Version: Version 1.6
    Count: 5
    Message: Undefined index: _wcmmq_s_max_quantity

    Location:
    wp-content/plugins/woo-min-max-quantity-step-control-single/wcmmq.php:169
    WC_MMQ_S::getOption()
    wp-content/plugins/woo-min-max-quantity-step-control-single/includes/set_max_min_quantity.php:142
    wcmmq_s_quantity_input_args()
    wp-includes/class-wp-hook.php:288
    apply_filters(‘woocommerce_quantity_input_args’)
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1682
    woocommerce_quantity_input()
    wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php:41
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1581
    woocommerce_simple_add_to_cart()
    wp-includes/class-wp-hook.php:288
    do_action(‘woocommerce_simple_add_to_cart’)
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1572
    woocommerce_template_single_add_to_cart()
    wp-includes/class-wp-hook.php:288
    do_action(‘woocommerce_single_product_summary’)
    wp-content/plugins/woocommerce/templates/content-single-product.php:60
    load_template(‘wp-content/plugins/woocommerce/templates/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:195
    wc_get_template_part()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:931
    woocommerce_content()
    wp-content/themes/unicon/woocommerce.php:21

Viewing 1 replies (of 1 total)
  • I had the same issue after updating WooCommerce. I previously didn’t have a maximum value set for my products, and it was fine.
    I added a max quantity to all of my products and that fixed the issue.
    If you have access to your database you run this query.
    Replace your_db with your database name, and meta_value to whatever max you want.

    update your_db.wp_postmeta
    set meta_value =2000
    where meta_key like ‘_wcmmq_s_max_quantity’

Viewing 1 replies (of 1 total)
  • The topic ‘Underfined Index Found’ is closed to new replies.