Commit 94c52000 by dhn

价格转换

parent dd54c461
...@@ -134,7 +134,11 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart ...@@ -134,7 +134,11 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart
} }
public function getFlatratePrice() public function getFlatratePrice()
{ {
return $this->_scopeConfigInterface->getValue('carriers/flatrate/price'); $full_free = $this->_scopeConfigInterface->getValue('carriers/flatrate/price');
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_helper = $objectManager->get('Magento\Framework\Pricing\Helper\Data');
$price = $_helper->currency($full_free, true, false);
return $price;
} }
public function getCountryHtmlSelect($defValue = null, $name = 'country_id', $id = 'country', $title = 'Country') { public function getCountryHtmlSelect($defValue = null, $name = 'country_id', $id = 'country', $title = 'Country') {
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment