2011-10-10 6 views
2

방금 ​​magento 1.4.0에서 1.6으로 업그레이드했습니다. 페이팔 및 신용/직불 카드 2 가지 지불 방법이 있습니다.한 페이지 체크 아웃에서 페이팔 라벨이 누락되었습니다

내 관심사는 관련 라디오 버튼 옆에 신용/직불 카드 텍스트가 표시되는 동안 페이팔 라디오 버튼 옆에 페이팔 텍스트 (라벨)가 표시되지 않습니다. 나는 페이팔 (paypal) 설정에서 제목에 대한 설명을 가지고 있지만 이것은 집어 들지 않습니다.

아무도 도와 줄 수 있습니까? 감사!

+0

소프트웨어 개발과 관련이없는 것으로 보입니다. – Rob

+0

나는 같은 문제가있다. 그것은 소프트웨어 개발과 관련이 있으며, 그 솔루션은 Magento의 코드를 기반으로 라벨을 다시 넣을 가능성이 큽니다. –

답변

0

이것은 이상적인 대답은 아니지만 다음은 내가 수동으로 라벨에 추가 한 빠른 수정 방법입니다. app/design/frontend/base/default/template/mark.phtml으로 이동하십시오.

<!-- PayPal Logo --> 
Credit Card/PayPal &nbsp;&nbsp;<img src="<?php echo $this->escapeHtml($this->getPaymentAcceptanceMarkSrc())?>" alt="<?php echo Mage::helper('paypal')->__('Acceptance Mark') ?>" class="v-middle" />&nbsp; 
<a href="<?php echo $this->getPaymentAcceptanceMarkHref()?>" onclick="javascript:window.open('<?php echo $this->getPaymentAcceptanceMarkHref()?>','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=0, top=0, width=400, height=350'); return false;"><?php echo Mage::helper('paypal')->__('What is PayPal?') ?></a> 
<!-- PayPal Logo --> 

선택적으로, app/design/frontend/default/yourtemplatedir/template/mark.phtml에 파일이 당신이 당신의 변화는 다음 업그레이드에서 재정의하지 않으려면 것을 복사 : 나는 단순히 페이팔 이미지 전에 텍스트 레이블을 추가,이 파일을 편집했다.

이상적인 솔루션은 처음에 레이블을 만드는 파일을 찾아서 변경하는 것입니다. 또한, 구성 설정에서 PayPal 제목 세트를 가져 오는 방법을 사용하십시오. 그러나 위의 내용이 작동하는 첫 번째 빠른 수정입니다.

0

mark.phtml 파일을 변경하는 대신 해당 파일을 표시하지 않도록합니다.

나는 ( app\code\local\...) 내 로컬에 블록 app\code\core\Mage\Paypal\Block\Standard\Form.php을 복사하여 내 사용자 지정 제목을 추가하고 마크 파일을 제거

... the same 
... 
    $this->setTemplate('paypal/payment/redirect.phtml') 
     ->setRedirectMessage(
      Mage::helper('paypal')->__('You will be redirected to the PayPal website when you place an order.') 
     ) 
     ->setMethodTitle('Paypal (my title)'); 
    return parent::_construct(); 
} 

protected function _construct() 
{ 
    $this->_config = Mage::getModel('paypal/config')->setMethod($this->getMethodCode()); 
    $locale = Mage::app()->getLocale(); 
    $mark = Mage::getConfig()->getBlockClassName('core/template'); 
    $mark = new $mark; 
    $mark->setTemplate('paypal/payment/mark.phtml') 
     ->setPaymentAcceptanceMarkHref($this->_config->getPaymentMarkWhatIsPaypalUrl($locale)) 
     ->setPaymentAcceptanceMarkSrc($this->_config->getPaymentMarkImageUrl($locale->getLocaleCode())) 
    ; // known issue: code above will render only static mark image 
    $this->setTemplate('paypal/payment/redirect.phtml') 
     ->setRedirectMessage(
      Mage::helper('paypal')->__('You will be redirected to the PayPal website when you place an order.') 
     ) 
     ->setMethodTitle('') // Output PayPal mark, omit title 
     ->setMethodLabelAfterHtml($mark->toHtml()) 
    ; 
    return parent::_construct(); 
} 

을 변경했습니다.

관련 문제