Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只有当用户选择了某种货币时,我才想在 Magento 中显示一些文本。如何做到这一点,即。如果货币 = GBP echo "..."
尝试这个
$currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode(); if ($currentCurrencyCode == 'GBP') { echo "Got it"; }