- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 16.04.21, 10:41
- Opened by: Gabriele Breccia
- Closed by: Fred
- Closed on: 05.05.21, 14:08
- Reason: Closed
- Comment: Glad to help!
Ticket #21311 - Customization of the product page
Hello, I have installed the theme with a child theme.
I need to customize the single product page.
For example, I have to put the stars (those of the reviews) under the product image, and not in the right column.
Which theme file should I edit, considering that I have a child theme and that the change must not be overwritten when we do the updates?
thank you for your support
Comments
Hi, Gabriele Breccia.
Here is the file of product page /themes/alysum/templates/catalog/product.tpl
To ensure that the changes are not overwritten when we make updates to the theme, does this file need to be copied to the child theme?
Thanks
just keep that file on your computer as a backup.
As for the child theme read more here https://devdocs.prestashop.com/1.7/themes/reference/template-inheritance/parent-child-feature/
If I set “product-page” as the product page template, do I always have to refer to the product.tpl file?
Attachments:
Schermata 2021-04-19 alle 17....(54.8 KiB)Product-page layout built with Page builder module. It’s files located in the /modules/pspagebuilder/views/templates/front/widgets
In your first post, you wrote that I can edit the “product.tpl” file, this works if the “product page layou” is set as default. If, on the other hand, I set product-page as “product page layou”, the changes made to the “product.tpl” file are no longer visible.
I would like to understand which file I need to edit to see the changes.
thank you
As I can see you have selected product page layout composed in the Page builder. In this case product page widget files located in the folder /modules/pspagebuilder/views/templates/front/widgets
The list of widgets is
Ok, thanks
you are welcome
Thanks for your support, you can close the ticket!