产生原因:是因为产品设置了多属性

解决办法:打开group_buy.php 第 267行找到

empty($product_info) ? $product_info = array('product_number' => 0, 'product_id' => 0) : '';

    /* 查询:判断指定规格的货品数量是否足够 */
    if ($specs && $number > $product_info['product_number'])
    {
        show_message($_LANG['gb_error_goods_lacking'], '', '', 'error');
    }

替换成

if($product_info)
{
    
    if ($specs && $number > $product_info['product_number'])
    
    if ($number > $product_info['product_number'])
    {
        show_message($_LANG['gb_error_goods_lacking'], '', '', 'error');
    }
}

 

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
  • 2021-11-10
猜你喜欢
  • 2021-07-06
  • 2022-01-02
  • 2022-12-23
  • 2021-07-18
  • 2021-06-01
  • 2021-12-13
相关资源
相似解决方案