Php 最低订单金额(以magento为单位)
有没有办法获取magento中的最低订单金额代码, 我想把它添加到我的主页的自定义域中,请用这个告诉我Php 最低订单金额(以magento为单位),php,magento,Php,Magento,有没有办法获取magento中的最低订单金额代码, 我想把它添加到我的主页的自定义域中,请用这个告诉我 谢谢您可以使用getStoreconfig $amount = Mage::getStoreConfig('sales/minimum_order/amount', $storeId); 如果您有多个门店,请传递$storeId 希望这一定会对您有所帮助。首先,您需要在系统>配置>销售>最小订单金额中设置最小订单金额。默认情况下,当折扣后小计小于最小金额时,消息将显示在购物车中 您可以在Ma
谢谢您可以使用getStoreconfig
$amount = Mage::getStoreConfig('sales/minimum_order/amount', $storeId);
如果您有多个门店,请传递$storeId
希望这一定会对您有所帮助。首先,您需要在系统>配置>销售>最小订单金额中设置最小订单金额。默认情况下,当折扣后小计小于最小金额时,消息将显示在购物车中 您可以在
Mage\u Checkout\u CartController
$minimumAmount = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())
->toCurrency(Mage::getStoreConfig('sales/minimum_order/amount'));
$warning = Mage::getStoreConfig('sales/minimum_order/description')
? Mage::getStoreConfig('sales/minimum_order/description')
: Mage::helper('checkout')->__('Minimum order amount is %s', $minimumAmount);
$cart->getCheckoutSession()->addNotice($warning);
在哪里需要此值?页面的标题部分使用此
Mage::getStoreConfig('sales/minimum_order/amount')代码>