如何修復 Uncaught Error: Call to a member function has_weight() on

正在檢視 2 個帖子:1-2 (共 2 個帖子)
  • 作者
    帖子
  • joesma0819
    參與者
    • 文章數量: 7
    @joesma0819
    樓主

    Fatal error: Uncaught Error: Call to a member function has_weight() on bool

    爬了好多文眼睛都看花了還是找不方法

    我出問題的程式是

    $display_dimensions = apply_filters( ‘wc_product_enable_dimensions_display’, $product->has_weight() || $product->has_dimensions() );

    詩語
    管理員
    • 文章數量: 5,935
    @feibisi

    看看是啟用了什麼外掛和 WooCommerce 衝突,下面的過濾器是在顯示產品屬性之前檢查尺寸,屬性和/或重量。

    估計是和你產品設定的哪些引數相關的外掛。

正在檢視 2 個帖子:1-2 (共 2 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊