Change any field of an element
ps_update_element_field
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
| Name | Type | Required | Description |
|---|---|---|---|
| type | string | yes | Element type: product, category or cms (CMS page). |
| id | integer | yes | Element ID. |
| table | string | yes | Table without prefix (from ps_get_element_full), e.g. product_lang. |
| column | string | yes | Column to change. |
| value | string or null | yes | New value (text; numbers as text; null = NULL, only when the column allows it). Max 1,000,000 characters. |
| where | object | no | Other key columns of the row, e.g. {"id_lang": 1, "id_shop": 1}. |
| confirm | boolean | no | false (default) returns a preview and saves nothing. true executes, only after the user approved the preview, together with change_token. |
| change_token | string | when: confirm=true | Token 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
- Element with all fields ps_get_element_full
- Update product content ps_update_product_content
- Update category content ps_update_category_content
- Revert change ps_revert_change
Last updated: 2026-10-11