Change any field of an element

ps_update_element_field

Write · preview + approveContent & SEO and Catalog · writes right awayTellMyShop Pro onlySaves: right awayVisible right after install

Changes one field of a product, category or CMS page that the normal tools do not cover, also a field of another module, after you approve a preview.

TellMyShop Free: No. This tool is only in TellMyShop Pro. TellMyShop Free has only ready reports that read your store.

Ask Claude

„Saving category 4 cleared its meta title (another module did it). Put back „Sofas for small flats”.”

Example preview

Field category_lang.meta_title, category 4, row id_lang=1, id_shop=1:
was „” -> will be „Sofas for small flats”
change_token valid until 15:42.

Technical details

Saves one field in one row of a table attached to a product, category or CMS page, also a table of another module (shown by ps_get_element_full). Also used to restore a single field that another module changed during a save. The row is chosen by element type and ID plus where with the other key columns; exactly one row must match. Saved directly in the database: other modules do not react and PrestaShop recalculates nothing (except the product search index). Never changes the row key. Price and stock fields need the Sales switch. Recorded and undoable like every change.

Parameters

NameTypeRequiredDescription
typestringyesElement type: product, category or cms (CMS page).
idintegeryesElement ID.
tablestringyesTable without prefix (from ps_get_element_full), e.g. product_lang.
columnstringyesColumn to change.
valuestring or nullyesNew value (text; numbers as text; null = NULL, only when the column allows it). Max 1,000,000 characters.
whereobjectnoOther key columns of the row, e.g. {"id_lang": 1, "id_shop": 1}.
confirmbooleannofalse (default) returns a preview and saves nothing. true executes, only after the user approved the preview, together with change_token.
change_tokenstringwhen: confirm=trueToken from the preview. Required with confirm=true. Valid 30 minutes, single use, bound to the previewed arguments and data state.

Limits

One field in one row per call. No customer, order, payment or tax tables; the row key is never changed.

What you see before anything is saved

Claude first calls the tool without confirming it. The module returns a preview (current and new values) and a single-use token valid for 30 minutes. Claude shows you the preview and saves the change only after your yes.

Related tools

Last updated: 2026-10-11