如何删除prestashop 1.6

时间:2016-08-09 11:06:03

标签: pagination prestashop prestashop-1.6

我想删除分页限制或设置名为show all或显示所有记录的内容 因为当我点击导出按钮时它限制了我的记录所以,我想显示所有可用的记录,这样我只需一次点击就可以导出所有记录。怎么做?

enter image description here

1 个答案:

答案 0 :(得分:4)

下拉列表中的限制选项在classes / controller / AdminController.php中设置:

var oReq = new XMLHttpRequest();
oReq.open("GET", tgt, true);
oReq.setRequestHeader("nombre_apellidos", "Mike Poborsky");
oReq.setRequestHeader("domicilio", "St. Mary 4");
oReq.setRequestHeader("codigo_postal", "123");
oReq.setRequestHeader("localidad", "Julapa");
oReq.setRequestHeader("provincia", "Asada");
oReq.setRequestHeader("linea", "SBD0345");
oReq.setRequestHeader("operador", "Yay");
oReq.setRequestHeader("mensaje", "Recarga no funciona");
oReq.responseType = "blob";
oReq.onload = function(oEvent) {
    download(oReq.response, "explicacion_operador_ticket_666.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
};
oReq.send();

默认分页限制(首次加载时)直接在下面定义:

/** @var array Number of results in list per page (used in select field) */
protected $_pagination = array(20, 50, 100, 300, 1000);`

您可以通过覆盖AdminController来更改此变量,您可以在此处阅读有关覆盖PrestaShop中文件的更多信息: http://doc.prestashop.com/display/PS16/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingaclass