Skip to main content

Documentation: Price List component

Version history

Available since version 4.5.1. Price List items can keep a history of their previous versions, exactly like Joomla articles do, so you can look back at what an item said and restore an older version.

Switch it on

Go to Components > Price List > Options > Integration, section History.

Enable Versions Automatically save old versions of an item. Off by default. With it on, a version is stored every time you save an item.
Maximum Versions (only visible when Enable Versions is set to Yes) How many old versions to keep per item, 10 by default. Set it to 0 to keep every version.

Working with versions

Once history is on, open any item under Components > Price List > Items and you'll find a Versions button in the toolbar. It opens Joomla's standard version history window, where you can:

  • see every stored version with its date and the user who saved it;
  • select two versions and compare them side by side;
  • restore an older version;
  • give a version a note, or keep it forever so it is never dropped when the maximum is reached.

The button only appears on an item that has already been saved at least once, and only while Enable Versions is set to Yes.

Readable comparisons

Price List registers its own field configuration for the version history, so a comparison shows proper labels and resolved values: the category name instead of a category id, the author's name instead of a user id, and the access level instead of a number. Without that registration Joomla falls back to raw column names, which is what you would otherwise see when comparing two versions.

Switching Enable Versions back off leaves the versions that were already stored untouched; they simply are not shown or added to any more.