【发布时间】:2017-11-27 20:55:28
【问题描述】:
Magento 中有一个名为 getMethods() 的函数。我想知道这个特定的行是什么意思?
Mage_Payment_Model_Method_Abstract::CHECK_ZERO_TOTAL
这是该行的上下文:
public function getMethods()
{
$methods = $this->getData('methods');
if ($methods === null) {
$quote = $this->getQuote();
$store = $quote ? $quote->getStoreId() : null;
$methods = array();
foreach ($this->helper('payment')->getStoreMethods($store, $quote) as $method) {
if ($this->_canUseMethod($method) && $method->isApplicableToQuote(
$quote,
Mage_Payment_Model_Method_Abstract::CHECK_ZERO_TOTAL
)) {
$this->_assignMethod($method);
$methods[] = $method;
}
}
$this->setData('methods', $methods);
}
return $methods;
}
【问题讨论】:
-
在类文件中查找
CHECK_ZERO_TOTAL方法
标签: php magento payment-processing