Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 如何更新prestashop管理端的图像字段_Image_Prestashop_Cart - Fatal编程技术网

Image 如何更新prestashop管理端的图像字段

Image 如何更新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 >

我已经在管理产品图片选项卡中添加了图片标题字段,在下面的位置使用了下面的代码

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>

使用从表中检索到的上述数据。现在我在更新图像标题字段方面遇到了困难。如何更新该字段

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);
 ....
}