2014-07-15 3 views
2

Magento 1.7.0.2를 사용하고 관리자 -> 영업 -> 주문에서 "내보내기 대상 : CSV"버튼이 표시되지 않습니다. 이 버튼의 위치를 ​​파악하려고합니다. 어떤 개발자가 이것을 알고 있다면"CSV"로 내보내기가 영업 -> 주문에 표시되지 않음

구성이 있습니까? 아니면 올바르게 구성되지 않은 이 있습니까?

도와주세요. 주셔서 감사합니다 여기

는 버튼을 '수출'이 app/design/adminhtml/default/default/template/widget/grid.phtml에 추가됩니다 <?php Zend_Debug::dump($this->getExportTypes()) ?>

array(2) { 
    [0] => object(Varien_Object)#480 (7) { 
    ["_data":protected] => array(2) { 
     ["url"] => string(59) "http://192.168.1.24/index.php/admins/sales_order/exportCsv/" 
     ["label"] => string(3) "CSV" 
    } 
    ["_hasDataChanges":protected] => bool(false) 
    ["_origData":protected] => NULL 
    ["_idFieldName":protected] => NULL 
    ["_isDeleted":protected] => bool(false) 
    ["_oldFieldsMap":protected] => array(0) { 
    } 
    ["_syncFieldsMap":protected] => array(0) { 
    } 
    } 
    [1] => object(Varien_Object)#584 (7) { 
    ["_data":protected] => array(2) { 
     ["url"] => string(61) "http://192.168.1.24/index.php/admins/sales_order/exportExcel/" 
     ["label"] => string(9) "Excel XML" 
    } 
    ["_hasDataChanges":protected] => bool(false) 
    ["_origData":protected] => NULL 
    ["_idFieldName":protected] => NULL 
    ["_isDeleted":protected] => bool(false) 
    ["_oldFieldsMap":protected] => array(0) { 
    } 
    ["_syncFieldsMap":protected] => array(0) { 
    } 
    } 
} 

답변

1

의 출력, 라인 98-108입니다 :

<?php if($this->getExportTypes()): ?> 
    <td class="export a-right"> 
     <img src="<?php echo $this->getSkinUrl('images/icon_export.gif') ?>" alt="" class="v-middle"/>&nbsp; <?php echo $this->__('Export to:') ?> 
     <select name="<?php echo $this->getId() ?>_export" id="<?php echo $this->getId() ?>_export" style="width:8em;"> 
     <?php foreach ($this->getExportTypes() as $_type): ?> 
      <option value="<?php echo $_type->getUrl() ?>"><?php echo $_type->getLabel() ?></option> 
     <?php endforeach; ?> 
     </select> 
     <?php echo $this->getExportButtonHtml() ?> 
    </td> 
<?php endif; ?> 

확인 당신이 코드가있을 경우 파일. 표시 할 수있는 수출 버튼 true을 반환 $this->getExportTypes() (라인 98)이 있습니다 또한

<td class="filter-actions a-right"> 
    <?php echo $this->getMainButtonsHtml() ?> 
</td> 

: 전에 배치해야합니다.

+0

도움을 주셔서 감사합니다. 지연에 대해 사과드립니다. 당신이 언급 한'grid.phtml'에' getExportTypes())?>'의 출력을 게시했습니다. 내 게시물을 참조하십시오. 괜찮아 보인다. 그래서이 grid.phtml이 다른 곳에서 오버라이드되어 있어야합니다? '_removeButton()'메서드로 제거 할 수 있습니까? –

+1

사실, 이것은 CSS 문제입니다. 하지만 위치를 지적 해 주셔서 감사합니다. –

관련 문제