Esempio n. 1
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';
        // 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;
    }
Esempio n. 2
0
 public function getMessages()
 {
     $messages = array();
     //------------------------------
     if (!is_null($message = $this->getCurrencyConversionMessage(Ess_M2ePro_Helper_Component_Play::CURRENCY_EUR))) {
         $messages[self::TYPE_CURRENCY_CONVERSION_EUR] = $message;
     }
     //------------------------------
     //------------------------------
     if (!is_null($message = $this->getCurrencyConversionMessage(Ess_M2ePro_Helper_Component_Play::CURRENCY_GBP))) {
         $messages[self::TYPE_CURRENCY_CONVERSION_GBP] = $message;
     }
     //------------------------------
     $messages = array_merge($messages, parent::getMessages());
     return $messages;
 }
Esempio n. 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;
    }