本文整理汇总了PHP中Magento\Store\Model\Website::getBaseCurrency方法的典型用法代码示例。如果您正苦于以下问题:PHP Website::getBaseCurrency方法的具体用法?PHP Website::getBaseCurrency怎么用?PHP Website::getBaseCurrency使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Store\Model\Website
的用法示例。
在下文中一共展示了Website::getBaseCurrency方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetBaseCurrency
public function testGetBaseCurrency()
{
$currency = $this->_model->getBaseCurrency();
$this->assertInstanceOf('Magento\\Directory\\Model\\Currency', $currency);
$this->assertEquals('USD', $currency->getCode());
}
示例2: getBaseCurrency
/**
* {@inheritdoc}
*/
public function getBaseCurrency()
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getBaseCurrency');
if (!$pluginInfo) {
return parent::getBaseCurrency();
} else {
return $this->___callPlugins('getBaseCurrency', func_get_args(), $pluginInfo);
}
}
示例3: getAllWebsitesValue
/**
* Get all websites value with currency code
*
* @return string
*/
public function getAllWebsitesValue()
{
return AdvancedPricing::VALUE_ALL_WEBSITES . ' [' . $this->websiteModel->getBaseCurrency()->getCurrencyCode() . ']';
}