예제 #1
0
파일: Messages.php 프로젝트: ppkowalski/M2E
    public function getCurrencyConversionMessage($marketplaceCurrency = null)
    {
        $messageText = parent::getCurrencyConversionMessage($marketplaceCurrency);
        if (is_null($messageText)) {
            return NULL;
        }
        $toolTipIconSrc = $this->getSkinUrl('M2ePro/images/tool-tip-icon.png');
        $helpIconSrc = $this->getSkinUrl('M2ePro/images/help.png');
        $docUrl = 'http://www.magentocommerce.com/wiki/modules_reference/English/Mage_Adminhtml/system_currency/index';
        // M2ePro_TRANSLATIONS
        // More about Currency rate set-up can be found in the <a href="%url%" target="_blank">Magento documentation</a>
        $helpText = 'More about Currency rate set-up can be found in the ';
        $helpText .= '<a href="%url%" target="_blank">Magento documentation</a>';
        $helpText = Mage::helper('M2ePro')->__($helpText, $docUrl);
        return <<<HTML
{$messageText}
<div style="display: inline-block;">
    <img src="{$toolTipIconSrc}" class="tool-tip-image">
    <span class="tool-tip-message" style="font-size: 12px; display: none;">
        <img src="{$helpIconSrc}">
        <span>{$helpText}</span>
    </span>
</div>
HTML;
    }
예제 #2
0
 public function getCurrencyConversionMessage($marketplaceCurrency = null)
 {
     if (is_null($marketplaceCurrency)) {
         return NULL;
     }
     return parent::getCurrencyConversionMessage($marketplaceCurrency);
 }
예제 #3
0
    public function getCurrencyConversionMessage($marketplaceCurrency = null)
    {
        $messageText = parent::getCurrencyConversionMessage($marketplaceCurrency);
        if (is_null($messageText)) {
            return NULL;
        }
        $toolTipIconSrc = $this->getSkinUrl('M2ePro') . '/images/tool-tip-icon.png';
        $helpIconSrc = $this->getSkinUrl('M2ePro') . '/images/help.png';
        $docUrl = 'http://www.magentocommerce.com/wiki/modules_reference/English/Mage_Adminhtml/system_currency/index';
        $helpText = sprintf(Mage::helper('M2ePro')->__('Please find more about currency rate set up in' . ' <a href="%s" target="_blank">magento documentation</a>.'), $docUrl);
        return <<<HTML
{$messageText}
<div style="display: inline-block;">
    <img src="{$toolTipIconSrc}" class="tool-tip-image">
    <span class="tool-tip-message" style="font-size: 12px; display: none;">
        <img src="{$helpIconSrc}">
        <span>{$helpText}</span>
    </span>
</div>
HTML;
    }