我们需要把$product->get_type();修改为:$product->product_type;https://docs.woocommerce.com/wc-apidocs/class-WC_Product.html#_get_type极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 转载请注明原文链接:WooCommerce报错 Uncaught Error: Call to a member function get_type() on null 喜欢 (0)赏[399397742@qq.com]分享 (0)