Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/288.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/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
Php getFinalPrice:未显示正确的国际价格_Php_Magento_Internationalization_Currency - Fatal编程技术网

Php getFinalPrice:未显示正确的国际价格

Php getFinalPrice:未显示正确的国际价格,php,magento,internationalization,currency,Php,Magento,Internationalization,Currency,我需要在我的网站的目录/列表布局上显示价格,我正在使用: <?php echo number_format($_product->getFinalPrice(), 2) ?> 该网站需要显示澳大利亚和日本的不同价格。当我查看产品页面时,会显示正确的价格,但是当我转到目录/列表布局时,我正在使用(上述)PHP调用,它会显示原始价格。它需要显示日本价格,而不是原始价格 有人能帮我解决这个问题吗?我已经花了好几天的时间试图解决这个问题,但找不到解决方案。您好,您是否会从admi

我需要在我的网站的目录/列表布局上显示价格,我正在使用:

<?php echo number_format($_product->getFinalPrice(), 2) ?>

该网站需要显示澳大利亚和日本的不同价格。当我查看产品页面时,会显示正确的价格,但是当我转到目录/列表布局时,我正在使用(上述)PHP调用,它会显示原始价格。它需要显示日本价格,而不是原始价格


有人能帮我解决这个问题吗?我已经花了好几天的时间试图解决这个问题,但找不到解决方案。

您好,您是否会从admin更改默认货币选项

做一件事转到管理员端点击系统=>配置=>货币设置(在配置选项卡中)

现在根据您的要求设置默认显示货币选项。检查它是否正常工作


希望它能帮助您

为什么不使用generic
$this->getPriceHtml($\u product,true)