Error "discount_type was called incorrectly"

Hi,

I am having trouble with discount coupons by Smart Coupons / WooCommerce on the site and the error I get mentions Perth Pro theme - anything you can help me with please?

Would really appreciate it, I need to launch something soon on the online store and I’m investigating where this problem could have come from.

Here’s the error text at check-out when adding an otherwise valid coupon:

“Notice: discount_type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(’/themes/perth-pro-ii/page.php’), get_template_part, locate_template, load_template, require(’/themes/perth-pro-ii/template-parts/content-page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::cart, WC_Shortcodes::shortcode_wrapper, call_user_func, WC_Shortcode_Cart::output, wc_get_template, include(’/plugins/woocommerce/templates/cart/cart.php’), do_action(‘woocommerce_after_cart_table’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_SC_Display_Coupons->show_available_coupons_after_cart_table, WC_SC_Display_Coupons->show_available_coupons, WC_Coupon->is_valid, apply_filters(‘woocommerce_coupon_is_valid’), WP_Hook->apply_filters, call_user_func_array, WC_B in /home/content/n3pnexwpnas02_data03/87/3173687/html/wp-includes/functions.php on line 4138”

Thanks a lot in advance and looking forward to your reply!
Alex

Hello Alex,

Can you please contact that plugin support and see what they say?

Kind Regards, Roman.