Commit 3af1c96d by halweg

Merge branch 'developer' of http://47.99.244.21:9999/root/joshine into developer

parents 2b6deff4 74111299
......@@ -134,7 +134,11 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart
}
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') {
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
......
......@@ -30,7 +30,7 @@ $flatraPrice = $block->getFlatratePrice();
$scriptString = <<<script
window.checkoutConfig = {$serializedCheckoutConfig};
window.checkoutConfig.flatrate_price = {$flatraPrice};
window.checkoutConfig.flatrate_price = "{$flatraPrice}";
window.customerData = window.checkoutConfig.customerData;
window.isCustomerLoggedIn = window.checkoutConfig.isCustomerLoggedIn;
require([
......
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