如何修復 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>