Commit 93c20ff9 by dhn

汇率

parent e7c17295
......@@ -132,6 +132,14 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart
{
return $this->_scopeConfigInterface->getValue('carriers/freeshipping/free_shipping_subtotal');
}
public function getNoFormatFreeShippingSubtotal()
{
$full_free = $this->_scopeConfigInterface->getValue('carriers/freeshipping/free_shipping_subtotal');
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_helper = $objectManager->get('Magento\Framework\Pricing\Helper\Data');
$price = $_helper->currency($full_free, false);
return $price;
}
public function getFlatratePrice()
{
$full_free = $this->_scopeConfigInterface->getValue('carriers/flatrate/price');
......
......@@ -24,7 +24,7 @@ if (count($_items) > 0) {
}
$subtotal = $_cart->getSubtotal();
$_shipping = $objectManager->get('\Magento\Checkout\Block\Cart\Shipping');
$free_shipping_subtotal = $_shipping->getFreeShippingSubtotal();
$free_shipping_subtotal = $_shipping->getNoFormatFreeShippingSubtotal();
$is_free_shipping = false;
$difference_price = 0;
......
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