• log error

    type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, <strong>WC_AJAX::checkout</strong>, WC_Checkout->process_checkout, WC_Checkout->update_session, WC_Cart->calculate_totals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->apply_coupon, WC_Discounts->apply_coupon_percent, apply_filters('woocommerce_coupon_get_discount_amount'), WP_Hook->apply_filters, wc_cpn_disc, WC_Legacy_Coupon->__get, wc_doing_it_wrong. This message was added in version 3.0.

    type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_update_order_review‘), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::update_order_review, WC_Cart->calculate_totals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->apply_coupon, WC_Discounts->apply_coupon_percent, apply_filters(‘woocommerce_coupon_get_discount_amount’), WP_Hook->apply_filters, wc_cpn_disc, WC_Legacy_Coupon->__get, wc_doing_it_wrong. This message was added in version 3.0.`

    type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::add_to_cart, WC_AJAX::<strong>get_refreshed_fragments</strong>, woocommerce_mini_cart, wc_get_template, include(‘/plugins/woocommerce/templates/cart/mini-cart.php’), do_action(‘woocommerce_before_mini_cart’), WP_Hook->do_action, WP_Hook->apply_filters, WWP_Wholesale_Prices->recalculate_cart_totals, WC_Cart->calculate_totals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->apply_coupon, WC_Discounts->apply_coupon_percent, apply_filters(‘woocommerce_coupon_get_discount_amount’), WP_Hook->apply_filters, wc_cpn_disc, WC_Legacy_Coupon->__get, wc_doing_it_wrong. This message was added in version 3.0.`

    type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_update_shipping_method‘), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::update_shipping_method, WC_AJAX::get_cart_totals, WC_Cart->calculate_totals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->apply_coupon, WC_Discounts->apply_coupon_percent, apply_filters(‘woocommerce_coupon_get_discount_amount’), WP_Hook->apply_filters, wc_cpn_disc, WC_Legacy_Coupon->__get, wc_doing_it_wrong. This message was added in version 3.0.`

Viewing 1 replies (of 1 total)
  • Plugin Author Soft79

    (@josk79)

    This warning is not from our plugin. It looks like your using a very outdated plugin, or maybe did you paste a php snippet that you found on an old internet page? The warning is about wrong use of getters prior to WooCommerce 3.0.

    Also, the review section is not the right place for support questions.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.