Read theme file
ps_read_theme_file
Read-onlyBlock 3 · Appearance & deployments (service connector, off by default)Service connector onlyBlock off after install
Reads one file of your shop's look.
Ask Claude
„Show me where the product price is printed in product.tpl.”
Example answer
templates/catalog/product.tpl lines 60-74: {block name='product_prices'} {include file='catalog/_partials/product-prices.tpl'} {/block} ...
Technical details
Content of a theme file with line numbers (lines 1-400 by default; give a range for longer files). Path relative to the theme directory, for example templates/catalog/product.tpl; parent theme: prefix parent:. Always read the current content before ps_write_theme_file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| path | string | yes | File path in the theme (max 300 characters). |
| line_from | integer | no | First line (default 1). |
| line_to | integer | no | Last line (default line_from + 399). |
Limits
400 lines per call by default.
Related tools
- List theme files ps_list_theme_files
- Write theme file ps_write_theme_file
Last updated: 2026-10-03