Home Forums Themes Support Gecko Fatal error: Uncaught Error: Call to undefined function wc_get_stock_htm

Viewing 3 reply threads
  • Author
    Posts
    • #4006

      In simple products appear the next error:

      Fatal error: Uncaught Error: Call to undefined function wc_get_stock_html() in /home/mariomon/public_html/wp-content/themes/gecko/core/libraries/vendors/woocommerce/templates/single-product/add-to-cart/simple.php:28 Stack trace: #0 /home/mariomon/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(203): include() #1 /home/mariomon/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(940): wc_get_template(‘single-product/…’) #2 /home/mariomon/public_html/wp-includes/class-wp-hook.php(298): woocommerce_simple_add_to_cart(”) #3 /home/mariomon/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #4 /home/mariomon/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/mariomon/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(929): do_action(‘woocommerce_sim…’) #6 /home/mariomon/public_html/wp-includes/class-wp-hook.php(298): woocommerce_template_single_add_to_cart(”) #7 /home/mariomon/public_html/ in /home/mariomon/public_html/wp-content/themes/gecko/core/libraries/vendors/woocommerce/templates/single-product/add-to-cart/simple.php on line 28

    • #4007

      Hi,

      Please upgrade WooCommerce to the latest version.

    • #14606

      Hi,

      I have activated “only 1 product to cart” option on product page. Whenever a user tries to add the product to cart twice, a small notification appears saying “undefined”. How do I remove this notification or change the error message to “Maximum one quantity. Product is already in cart. Kindly Checkout”

    • #14629

      Hi Mikestar,

      Could you create new topic and send us link of product you see the issue.

      We check on our local it still work well http://take.ms/gvkql

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 3 reply threads

You must be logged in to reply to this topic.