Commit 07f0f406 by dhn

运费汇率

parent 74111299
......@@ -134,11 +134,7 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart
}
public function getFlatratePrice()
{
$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;
return $this->_scopeConfigInterface->getValue('carriers/flatrate/price');
}
public function getCountryHtmlSelect($defValue = null, $name = 'country_id', $id = 'country', $title = 'Country') {
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
......
......@@ -209,7 +209,9 @@ class LayoutProcessor implements LayoutProcessorInterface
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']
['children']['shippingAddress']['children']['after-shipping-method-form']
);
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']
['children']['shippingAddress']['children']['after-shipping-method-form']['children']
['billing-address-form']['children']['form-fields']['children']['company']['sortOrder'] = 140;
}
......@@ -217,7 +219,6 @@ class LayoutProcessor implements LayoutProcessorInterface
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['company']['sortOrder'] = 140;
file_put_contents('./yyyy.txt',json_encode($jsLayout));
return $jsLayout;
}
......
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