dievacri Posted November 15, 2018 Share Posted November 15, 2018 Hi, I'm trying to modify the catalog products table of the back office and i 'm following the steps of the documentation (link) but it's only for PS 1.7.3 and i have PS 1.7.4. It is not working Please help me. Thanks Link to comment Share on other sites More sharing options...
joseantgv Posted November 16, 2018 Share Posted November 16, 2018 8 hours ago, dievacri said: Hi, I'm trying to modify the catalog products table of the back office and i 'm following the steps of the documentation (link) but it's only for PS 1.7.3 and i have PS 1.7.4. It is not working Please help me. Thanks The process should be the same. Please explain what you did and what doesn't work. Link to comment Share on other sites More sharing options...
polaram Posted November 25, 2018 Share Posted November 25, 2018 I am facing same issue. added twig file in modules/productdisplay/views/Prestashop/Admin/Product/catalog.html.twig but there is no impact. In past i did this and it worked fine. But now its is not. Link to comment Share on other sites More sharing options...
NemoPS Posted November 25, 2018 Share Posted November 25, 2018 I have the impression the symfony pages (modules and product) cannot be overridden 1 Link to comment Share on other sites More sharing options...
polaram Posted November 25, 2018 Share Posted November 25, 2018 It is working, there is a small change in folder structures. Please check structure in src/PrestashopBundle folder first. There is an extra folder "CatalogPage" Now you have to put files in modules/foo/views/PrestaShop/Admin/Product/ CatalogPage/ It will start working. Link to comment Share on other sites More sharing options...
Prabyan Posted September 4, 2019 Share Posted September 4, 2019 I am using PrestaShop version 1.7.6 and followed exactly the documentation says. But, it does not work. Any advice. Link to comment Share on other sites More sharing options...
soduno Posted February 24, 2020 Share Posted February 24, 2020 (edited) It is not working in Prestashop 1.7.3.2 either. My file-structure is: /public_html/modules/aitm_productpricing/views/PrestaShop/Admin/Product/CatalogPage/lists/list.html.twig Like other people is facing, no impact what os ever. I have strictly followed the documentation. I can edit the BO just fine if I hardcode the files in src folder, but that's not ideal 😑 Edited February 24, 2020 by soduno (see edit history) Link to comment Share on other sites More sharing options...
Prestafan33 Posted February 28, 2020 Share Posted February 28, 2020 (edited) Same problem here. Somebody knows how to override correctly twig admin templates for last Prestashop versions (1.7.6.x)? If I understand right, you have to create a module and copy twig template files at views/Prestashop/Admin/Product/Forms/form_products.html.twig, for example, and then modify file to insert custom hooks, add new contents or wathever you want. But my question is... simply coping templates files to correct path inside your module folder, and activating module is enought? You don't have to use any hook or other method to make know that you want to use modified templates instead of original ones? Edited February 28, 2020 by Prestafan33 (see edit history) Link to comment Share on other sites More sharing options...
Prestafan33 Posted February 29, 2020 Share Posted February 29, 2020 (edited) I made some more tests. It's working now. You don't need to use any hook or anything else. You only need to re-create twig template path into your module folder, and then activate it, and clean cache. Obviously, your module has to be well formed. But... this method sounds weird. How do you know if any template file is already modified by another module? You have to check all your modules looking for copies of the files? If some modules are overriding the same file... how do you know what module has preference, and how to prevent another module override your changes? If you're simply extending templates is more easy, but if you're using your own modified copies of originals.... Edited February 29, 2020 by Prestafan33 (see edit history) 1 Link to comment Share on other sites More sharing options...
Johack_ Posted September 30, 2020 Share Posted September 30, 2020 i have same issue. i have prestashop 1.7.6.8 Link to comment Share on other sites More sharing options...
airtogazta Posted October 27, 2020 Share Posted October 27, 2020 Hi! I'm on PS 1.7.6.1 and following the explanation on the documentation https://devdocs.prestashop.com/1.7/modules/concepts/templating/admin-views/ did work for me, using the following structure: modules/foo/views/PrestaShop/Admin/Product/CatalogPage/catalog.html.twig And inside the twig files I used {% extends 'PrestaShopBundle:Admin/Product/CatalogPage:catalog.html.twig' %} Hope it helps Link to comment Share on other sites More sharing options...
nikos83 Posted May 12, 2021 Share Posted May 12, 2021 Hi, I'm trying to repeat this tutorial Created folder in my Prestashop 1.7.7.2 /modules/foo/views/Prestashop/Admin/Product/CatalogPage/ Then create file inside catalog.html.twig this file includes {% extends 'PrestaShopBundle:Admin/Product/CatalogPage:catalog.html.twig' %} {% block product_catalog_filters %} Hello world! {% endblock %} Then went to products from back office catalog/products But there's no changes can't see Hello world! Do we need too include any php files in this foo module? How is it works folder foo includes only view twig file? Link to comment Share on other sites More sharing options...
polaram Posted May 12, 2021 Share Posted May 12, 2021 /modules/foo/views/Prestashop/Admin/Product/CatalogPage/ Problem is lowercase "Prestashop" need to be "PrestaShop". After lot bangging head to it i got this. thanks 1 Link to comment Share on other sites More sharing options...
nikos83 Posted May 12, 2021 Share Posted May 12, 2021 1 hour ago, polaram said: /modules/foo/views/Prestashop/Admin/Product/CatalogPage/ Problem is lowercase "Prestashop" need to be "PrestaShop". After lot bangging head to it i got this. thanks Nice catch - changed folder to PrestaShop but stay still unchanged don't know why ... Link to comment Share on other sites More sharing options...
Janett Posted May 12, 2021 Share Posted May 12, 2021 Few months ago a share a link with a demo module to do this : On 8/20/2020 at 10:43 AM, Janett said: Here a module example : https://github.com/Matt75/displayproductmanufacturer/ Link to comment Share on other sites More sharing options...
nikos83 Posted May 13, 2021 Share Posted May 13, 2021 I have managed to get this working. Thank you @Janett I have used this https://github.com/PrestaShop/PrestaShop/issues/12437 And modified little bit. Go to admin panel modules manager and install this module. After installation on back office catalogue > products you'll see Hello world! hellooo mymodule.zip Link to comment Share on other sites More sharing options...
ietax Posted June 15, 2021 Share Posted June 15, 2021 fine, but how do you add an extra column to the view? thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now