Jump to content

Recommended Posts

In my module Prestashop 1.7.5 I want to override the product list view in the admin panel.

I copied src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/Lists/list.html.twig to  mymodule  modules/mymodule/views/PrestaShop/Admin/Product/CatalogPage/Lists/list.html.twig

In list.html.twig is code:

{% set buttons_action = [

    { "href": product.preview_url | default ('#'),

    "target": "_blank",

    "icon": "remove_red_eye",

    "label": "Preview" | trans ({},


] %}

How to change href this code to my controller from mymodule sample:  /admin/index.php?controller=AdminMyControlerSample&token=c21c6d1372a6950e4cb9ef9e01aa7124 and action name: "hello"


it is best to generate this link dynamically, especially the token and the domain of the store was attached.



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More