Home Forums WoodMart support forum PHP Notice regarding the shipping_method

PHP Notice regarding the shipping_method

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #602978

    supp0rt
    Participant

    Hello,

    A PHP notice appeared on the debug log, regarding the shipping_method,

    Here is the notice

    [06-Oct-2024 10:20:34 UTC] PHP Notice: The function shipping_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/woodmart/page.php'), woodmart_get_the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::order_pay, WC_Payment_Gateways->get_available_payment_gateways, WC_Gateway_PayInStore->is_available, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong.

    Let me know your thoughts.

    Best Regards

    #603034

    Luke Nielsen
    Member

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand if is it our theme issue or not?

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)