Jump to content

Edit History

Nishith Nesdiya

Nishith Nesdiya

 

if you need use variable  instead number the store the value in database like  

//save the value in Configuration table in databse
Configuration::updateValue('YOUR_NAME_ORDER', 21);

//get the value from Configuration table
Configuration::get('YOUR_NAME_ORDER');

//Then after compare value with your order status

public function hookActionOrderStatusPostUpdate($params)
{
	$newOrderStatus = $params['newOrderStatus'];
	if($newOrderStatus->id == Configuration::get('YOUR_NAME_ORDER')) {
      //your code here
    }
}

Thanks

 

Nishith Nesdiya

Nishith Nesdiya

 

if you need use variable  instead number the store the value in database like  

//save the value in Configuration table in databse
Configuration::updateValue('YOUR_NAME_ORDER', 21);

//get the value from Configuration table
Configuration::get('YOUR_NAME_ORDER');

Then after compare value with 

public function hookActionOrderStatusPostUpdate($params)
{
	$newOrderStatus = $params['newOrderStatus'];
	if($newOrderStatus->id == Configuration::get('YOUR_NAME_ORDER')) {
      //your code here
    }
}

Thanks

 

×
×
  • Create New...