由于WooCommerce发布了WooCommerce 3.0,Klarnas Pay插件不起作用。
例如,我得到此错误。
注意:国家被错误地称为。不应直接访问客户属性。shortcode_wrapper,wc_shortcode_checkout :: output,wc_shortcode_checkout :: Checkout,wc_get_template,incrage incress('/plugins/woocommerce/cookplates/checkout/form-checkout/form-checkout/form-checkout.php'卵形
和
注意:WC_CUSTOMER :: GET_COUNTRY自版本3.0以来被弃用!使用wc_customer :: get_billing_country。in/mnt/persist/www/dev10/wp-includes/functions.php in 3830
注意:WC_CUSTOMER :: GET_COUNTRY自版本3.0以来被弃用!使用wc_customer :: get_billing_country。in/mnt/persist/www/dev10/wp-includes/functions.php in 3830
注意:WC_CUSTOMER :: GET_COUNTRY自版本3.0以来被弃用!使用wc_customer :: get_billing_country。in/mnt/persist/www/dev10/wp-includes/functions.php in 3830
注意:WC_CUSTOMER :: GET_COUNTRY自版本3.0以来被弃用!使用wc_customer :: get_billing_country。in/mnt/persist/www/dev10/wp-includes/functions.php in 3830
注意:WC_CUSTOMER :: GET_COUNTRY自版本3.0以来被弃用!使用wc_customer :: get_billing_country。in/mnt/persist/www/dev10/wp-includes/functions.php在第3830行。
有没有我解决这个问题的人?
谢谢!
如我的评论中所述,您应该真正要求克拉纳修复其插件中的错误。但是,关于您的其他问题,很容易将其纠正。至少是我的。
只需在主题和插件文件中搜索get_country(
即可。用get_billing_country(
替换所有您发现的所有内容。我在主题文件中引用了此引用。更改错误后,错误就消失了。