答案 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