Session 如何使用getsingleton在methods.phtml中编程设置magento会话中的特定付款方式?

Session 如何使用getsingleton在methods.phtml中编程设置magento会话中的特定付款方式?,session,methods,payment,overwrite,Session,Methods,Payment,Overwrite,我正在尝试在methods.phtml中以编程方式设置magento会话中的特定付款方式。我知道如何使用getsingleton从magento会话中检索当前选定的付款方式。但我无法找到如何覆盖magento会话中现有选定的付款方式。我想直接更新magento会话变量付款方式。是否有类似“Mage::getSingleton('checkout/session')->setMethod('$method')”的内容。我已经尝试了所有其他的解决方案。请帮我做这个。如果有任何类似的功能,那么请帮我

我正在尝试在methods.phtml中以编程方式设置magento会话中的特定付款方式。我知道如何使用getsingleton从magento会话中检索当前选定的付款方式。但我无法找到如何覆盖magento会话中现有选定的付款方式。我想直接更新magento会话变量付款方式。是否有类似“Mage::getSingleton('checkout/session')->setMethod('$method')”的内容。我已经尝试了所有其他的解决方案。请帮我做这个。如果有任何类似的功能,那么请帮我

我只想在magento会话中以编程方式设置付款方式..试试Mage::getSingleton('checkout/session')->setMethod($method);