판매 오더 관리 페이지에서 100 ~ 100 개의 주문
-
12-12-2019 - |
문제
누군가가 나를 도울 수 있고,
관리자 패널 / 판매 / 주문보기 페이지에서 표시되는 기본 번호 주문을 변경해야합니다.현재 Page 당 20 개부터 시작됩니다.나는 그것을 유지하기를 원하지만 여전히 기본적으로 100 개의 주문으로 페이지를로드합니다.
App / Design / AdminHTML / Default / Template / Widget / Grid.phtml 에서이보기의 코드를 발견했습니다.
<?php echo $this->__('of %s pages', $this->getCollection()->getLastPageNumber()) ?>
<span class="separator">|</span>
<?php echo $this->__('View') ?>
<select name="<?php echo $this->getVarNameLimit() ?>" onchange="<?php echo $this->getJsObjectName() ?>.loadByElement(this)">
<option value="20"<?php if($this->getCollection()->getPageSize()==20): ?> selected="selected"<?php endif; ?>>20</option>
<option value="30"<?php if($this->getCollection()->getPageSize()==30): ?> selected="selected"<?php endif; ?>>30</option>
<option value="50"<?php if($this->getCollection()->getPageSize()==50): ?> selected="selected"<?php endif; ?>>50</option>
<option value="100" selected<?php if($this->getCollection()->getPageSize()==100): ?> selected="selected"<?php endif; ?>>100</option>
<option value="200"<?php if($this->getCollection()->getPageSize()==200): ?> selected="selected"<?php endif; ?>>200</option>
</select>
<?php echo $this->__('per page') ?><span class="separator">|</span>
<?php echo $this->__('Total %d records found', $this->getCollection()->getSize()) ?>
.
코어 grid.phtml을 변경하고 싶지 않습니다.어떻게 할 수 있습니까?
감사합니다
해결책
로컬 .xml in / app / design / adminhtml / default / default / layout / (또는 사용자 정의 모듈) 및 추가
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_sales_order_index>
<reference name="sales_order.grid">
<action method="setDefaultLimit">
<limit>100</limit>
</action>
</reference>
</adminhtml_sales_order_index>
<adminhtml_sales_order_grid>
<reference name="sales_order.grid">
<action method="setDefaultLimit">
<limit>100</limit>
</action>
</reference>
</adminhtml_sales_order_grid>
</layout>
. 제휴하지 않습니다 magento.stackexchange