如何访问Magento订单的“ visible_on_front”属性?
|
如何访问Magento订单的“ visible_on_front \”属性?
我已经尝试了以下位:
$order = $this->getOrder();
$order->setStatus(\'processing\');
$order->setData(\'visible_on_front\', 1);
要么
$history = $this->getOrder()->addStatusHistoryComment(\'msg\');
$history->setStatus(\'processing\');
$history->setData(\'state\', \'visible\');
要么
$history = $this->getOrder()->addStatusHistoryComment(\'msg\');
$history->setStatus(\'processing\');
$history->setData(\'visible_on_front\', 1);
提前致谢。
没有找到相关结果
已邀请:
2 个回复
稼悸
貉骂
当然,您将要使用的订单加载到$ order中。 使用这些,您将在订单详细信息下的用户帐户页面中看到注释。