0
손님 체크 아웃을 위해 인쇄 주문 기능을 활성화해야합니다.게스트 Magento의 인쇄 주문 기능 사용
인쇄 기능이 제대로 작동 로그인 한 사용자에 대한하지만 인쇄 버튼 내가 파일 succcess.phtml의 체크를 제거해야 인쇄 버튼을 보여 성공 페이지 에 표시하지 않았다 게스트 사용자에 대한
<?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?>
<p>
<?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
<?php echo $this->getChildHtml() ?>
</p>
<?php endif;?>
이제 인쇄 버튼은 손님하지만 때 내가 그것을 로그인을 요청 클릭 볼 수 있습니다.
로그인하지 않고도 게스트의 인쇄 명령을 표시해야합니다.
인쇄 순서 위치는
같은로컬 호스트/magento1.9/index.php에/판매/주문/인쇄/ORDER_ID/8/
내가
을 점검 /var/www/magento1.9/app/code/core/Mage/Sales/Controller/Abstract.php
다음과 같은 인쇄 작업을 찾으십시오.
public function printAction()
{
if (!$this->_loadValidOrder()) {
return;
}
$this->loadLayout('print');
$this->renderLayout();
}
하지만 로그인 기능없이 게스트에게 인쇄 기능을 제공하는 방법을 알지 못합니다. 제발 미리 감사하십시오