当前位置:网站首页>Repair the error that ECSHOP background orders prompt insufficient inventory when adding goods. Please reselect

Repair the error that ECSHOP background orders prompt insufficient inventory when adding goods. Please reselect

2022-06-25 12:24:00 ECSHOP development

Repair ECSHOP When adding goods to the background order, it will prompt the wrong problem of insufficient inventory. Please reselect ,ecshop All versions contain ecshop4.1 This appears in all versions bug Not officially repaired , as a result of ecshop stay ajax When invoking a product , Default a radio attribute to a non radio attribute , That makes it impossible to read the inventory of goods , Therefore, it will always prompt that the inventory is insufficient , Please re select BUG problem . This BUG The solution to the problem is as follows :
Open the backstage templates In a folder order_step.htm file , Search and find the following code

      else
      {
        attrHtml += result.attr_list[i][0].attr_name + ': ' + result.attr_list[i][0].attr_value + '<br />';
      }

Change to the following code

      else
      {
        if (result.attr_list[i][0].attr_type == 1)
        {
          attrHtml += result.attr_list[i][0].attr_name + '<input type="radio" checked name="spec_' + specCnt + attrTypeArray + '" value="' + result.attr_list[i][0].goods_attr_id + '"'+' />' + result.attr_list[i][0].attr_value + '<br />';
          specCnt++;
        }
        else
        {
          attrHtml += result.attr_list[i][0].attr_name + ': ' + result.attr_list[i][0].attr_value + '<br />';
        }
      }

Tips “ Insufficient inventory, please re select ” The problem is fixed !

原网站

版权声明
本文为[ECSHOP development]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200533064661.html