how to get a full length serialized condition in 'salesrule' table in magento 2
-
11-03-2021 - |
Question
how to get a full length serialized condition in 'salesrule' table in magento 2
Table: salesrule
code
public function getRule()
{
$ruleModel = $this->_ruleFactory->create()->load(10);
$conditionSerialized =$ruleModel->getConditionsSerialized();
return $conditionSerialized;
}
output
unserialized condition also does not appear full condition
return unserialize($conditionSerialized);
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange