Question

how to get a full length serialized condition in 'salesrule' table in magento 2

Table: salesrule

enter image description here

code

 public function getRule()
    {
        $ruleModel = $this->_ruleFactory->create()->load(10);
        $conditionSerialized =$ruleModel->getConditionsSerialized();
        return $conditionSerialized;
    }

output

enter image description here

unserialized condition also does not appear full condition

return unserialize($conditionSerialized);

enter image description here

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top