如何修復 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,925
    @feibisi

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

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

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

話題資訊

  • 當前位於:疑難雜症
  • 1 條回覆
  • 2 個參與人
  • 最後回覆:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 檢視詩語的個人資料" class="bbp-author-link"><span class="bbp-author-name"> 詩語</span></a>
  • 上次活動:<a href="https://bbs.weixiaoduo.com/topic/37400/#post-37404" title=" 回覆至:如何修復 Uncaught Error: Call to a member function has_weight() on">4 年、 4 月前</a>