我已经在线搜索了几天,却一无所获。 我在这里看到过类似的帖子,对问题的根源有一个大致的了解,但不确定如何自己解决。
我客户的子主题WP Bakery和WooCommerce之间存在冲突。在结帐页面上的客户详细信息下,更改国家/地区后,税金应自动更新(当前,仅针对澳大利亚客户将其设置为税金)。 当我将其更改为另一个国家时,它不会自动更新,并且在检查工具中收到此错误消息。
Uncaught TypeError: Cannot read property 'defaults' of undefined
at HTMLDocument.<anonymous> (checkout.min.js?ver=4.3.1:1)
at j (jquery.js:3148)
at Object.fireWith [as resolveWith] (jquery.js:3260)
at Function.ready (jquery.js:3472)
at HTMLDocument.J (jquery.js:3503)
这是我目前使用的临时域:http://shannonp12.sg-host.com/checkout/
下面是问题在第5行的代码段(checkout.min.js?ver = 4.3.1:1)
jQuery(function(g) {
if ("undefined" == typeof wc_checkout_params)
return !1;
var v = {
updateTimer: !(g.blockUI.defaults.overlayCSS.cursor = "default"),
dirtyInput: !1,
selectedPaymentMethod: !1,
xhr: !1,
$order_review: g("#order_review"),
$checkout_form: g("form.checkout"),
init: function() {
我希望有足够的信息,如果需要提供更多信息,请告诉我。 预先感谢!
遵循Emre指令
也许是这样? updateTimer:!(g.blockUI && g.blockUI.defaults.overlayCSS.cursor ==“ default”),。它会在检查光标之前检查是否存在g.blockUI
现在得到这个
Uncaught TypeError: g(...).block is not a function
at update_checkout_action
指向此...
g(".woocommerce-checkout-payment, .woocommerce-checkout-review-order-table").block({