Theme
Restyle the featured products block on the homepage
Your homepage product showcase looks the way you want, and add-on updates don't reset it.
ProPaid version
What it replaces: 2-4 h of a web developer's work
Override ps_featuredproducts' template: wrap the grid in a 4-column container, show the 'new' flag from product.flags, keep the miniature partial from the theme. Add CSS to custom.css.
What the chat does
- The chat reads how product cards look in your theme.
- It copies the add-on's layout into your theme and changes it.
- It adds the styling and shows each change.
- After your yes it saves with backups and checks the homepage.
The problem
The homepage featured products block shows 8 tiny cards with no badge. We want 4 bigger cards with a 'new' label.
What you get
The homepage block shows the new layout. The number of products shown is an add-on setting, which can be changed in a separate step.
You stay in control
You see every change before it is saved, nothing happens without your yes, and you can undo it later. Changes to the shop's look need the Theme switch in the module panel, which turns itself off after 24 hours. Every file is backed up before it changes.
Related use cases
For developers
- Area
- 3 · Theme
- In TellMyShop Free
- no, paid version only
- For
- Developer
- Tools
- ps_list_theme_files, ps_read_theme_file, ps_override_module_template, ps_write_theme_file, ps_clear_cache, ps_inspect_page, ps_module_file, ps_module_config
Step by step
- Reads the theme's product miniature and any existing override with ps_list_theme_files and ps_read_theme_file.
- Creates the theme override of the ps_featuredproducts template with ps_override_module_template. Parameters: action copy, module ps_featuredproducts, template from action list.
- Edits the override and adds the CSS in custom.css with ps_write_theme_file.
- Shows each file change as a diff preview; saves after your approval with backups.
- Clears the cache and checks the homepage with ps_inspect_page.
Safety
This needs the Theme switch in the module panel, which turns itself off after 24 hours. The chat changes the module's look through a template override in your theme (ps_override_module_template), so a module update leaves it alone. The override is a theme file, backed up before every write and restorable with ps_restore_file_backup. If the change could only be made inside the module itself, the chat says so: module files can be edited with the Modules switch on (ps_module_file, with a backup), but a module update erases those edits.
Last updated: 2026-10-25