Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento-如果货币等于_Magento - Fatal编程技术网

Magento-如果货币等于

Magento-如果货币等于,magento,Magento,仅当用户选择了某种货币时,我才想在Magento中显示一些文本。如何做到这一点,即,如果货币=英镑,请尝试此方法 $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode(); if ($currentCurrencyCode == 'GBP') { echo "Got it"; }

仅当用户选择了某种货币时,我才想在Magento中显示一些文本。如何做到这一点,即,如果货币=英镑,请尝试此方法

    $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode();
    if ($currentCurrencyCode == 'GBP') {
        echo "Got it";
    }