Field::getOldValue()

Version 3.8

Value before change

Return value that field had before change. If value was not changed, return current value.

Return value

mixed

Full documentation

Show product price before and after:

$txt = "Value changed from {$Product->price->getOldValue()} to {$Product->price->getValue()}";