首页 文章

Klarna更新(Woocommerce 3.0)

提问于
浏览
0

自Woocommerce发布Woocommerce 3.0以来,Klarnas付费插件无效 .

例如,我得到这个错误 .

注意:国家/地区调用不正确 . 不应直接访问客户属性 . Backtrace:require('wp-blog-header.php'),require_once('wp-includes / template-loader.php'),include('/ themes / twentyseventeen / page.php'),get_template_part,locate_template,load_template, require('/ themes / twentyseventeen / template-parts / page / content-page.php'),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 :: checkout,wc_get_template,include('/ plugins / woocommerce / templates / checkout / form-checkout.php'),do_action('woocommerce_checkout_order_review'),WP_Hook-> do_action,WP_Hook-> apply_filters ,woocommerce_checkout_payment,WC_Payment_Gateways-> get_available_payment_gateways,WC_Gateway_Klarna_Part_Payment-> is_available,WC_Gateway_Klarna_Part_Payment-> check_required_fields,WC_Gateway_Klarna_Helper-> get_eid,WC_Legacy_Customer- in /mnt/persist/www/dev10/wp-includes/functions.php on 4138

注意:自3.0版以来,不推荐使用WC_Customer :: get_country!请改用WC_Customer :: get_billing_country . 在3830行的/mnt/persist/www/dev10/wp-includes/functions.php中

注意:自3.0版以来,不推荐使用WC_Customer :: get_country!请改用WC_Customer :: get_billing_country . 在3830行的/mnt/persist/www/dev10/wp-includes/functions.php中

注意:自3.0版以来,不推荐使用WC_Customer :: get_country!请改用WC_Customer :: get_billing_country . 在3830行的/mnt/persist/www/dev10/wp-includes/functions.php中

注意:自3.0版以来,不推荐使用WC_Customer :: get_country!请改用WC_Customer :: get_billing_country . 在3830行的/mnt/persist/www/dev10/wp-includes/functions.php中

注意:自3.0版以来,不推荐使用WC_Customer :: get_country!请改用WC_Customer :: get_billing_country . 在3830行的/mnt/persist/www/dev10/wp-includes/functions.php中 .

有没有人解决这个问题呢?

谢谢!

1 回答

  • 0

    正如我的评论中所述,你应该真的要求Klarna修复他们插件中的错误 . 但是关于你的其他问题,它很容易解决 . 至少,它适合我 .

    只需在您的主题和插件文件中搜索 get_country( . 用 get_billing_country( 替换你找到的所有内容 . 我在主题文件中引用了这个 . 更改后,错误就消失了 .

相关问题