prestashop 订单状态在哪

prestashop所有的订单状态都是后台Orders下的Invoices里;
如果需要添加订单的新状态。需要在安装模块的时候,加载代码

private function _makeOrderState()
{
if(!Configuration::get(PAID_STATE’))
{
$os = new OrderState();
$os->name = array_fill(0,10,“This is a PAID_STATE Order”); //Fill with english language translation
$os->send_mail = 0;
$os->template = “”;
$os->invoice = 0;
$os->color = “#ff9800”;
$os->unremovable = false;
$os->logable = 0;
o s > a d d ( ) ; C o n f i g u r a t i o n : : u p d a t e V a l u e ( P A I D S T A T E , os->add(); Configuration::updateValue('PAID_STATE', os->id);
}
}
public function install()
{
if (!parent::install() ) {
return false;
}
$this->_makeOrderState();
return true;
}

猜你喜欢

转载自blog.csdn.net/qq_30439399/article/details/88643620