Image 如何更新prestashop管理端的图像字段
我已经在管理产品图片选项卡中添加了图片标题字段,在下面的位置使用了下面的代码 admin/themes/default/template/controllers/products/images.tplImage 如何更新prestashop管理端的图像字段,image,prestashop,cart,Image,Prestashop,Cart,我已经在管理产品图片选项卡中添加了图片标题字段,在下面的位置使用了下面的代码 admin/themes/default/template/controllers/products/images.tpl <td id="td_image_id" class="pointer dragHandle center positionImage"> <input type="text" name="image_caption" value=image_caption >
<td id="td_image_id" class="pointer dragHandle center positionImage">
<input type="text" name="image_caption" value=image_caption >
</td>
使用从表中检索到的上述数据。现在我在更新图像标题字段方面遇到了困难。如何更新该字段 imageLine JS函数中只有5个参数,请参见下文
function imageLine(id, path, position, cover, shops)
您需要通过以下方式编辑此函数:
function imageLine(id, path, position, cover, shops, image_caption)
{
line = $("#lineType").html();
line = line.replace(/image_id/g, id);
line = line.replace(/image_caption/g, image_caption);
....
}
我希望这会对你有所帮助
function imageLine(id, path, position, cover, shops, image_caption)
{
line = $("#lineType").html();
line = line.replace(/image_id/g, id);
line = line.replace(/image_caption/g, image_caption);
....
}