Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    prestashop-hyperlocal-marketplace-guide

    Adding custom action button in PrestaShop renderlist

    Adding custom action button in PrestaShop renderlist – We can easily use ‘view’, ‘edit’, ‘delete’ buttons in Prestashop render list by the help of addRowAction(‘view’) function. But what if we need to add some custom buttons in the list!! we can use PrestaShop field list ‘callback’ property for the same.

     

    Add a temp array key in you $this->fields_list array :


     

    id_temp is an alias of your list id, you can define this like :


     

    Now create a function with callback name viewMyButton


     

    This will create a button in the render list like this :

     

     

    If you want to display multiple buttons, you need to write the HTML for that only,


     

    This will look like this :

     

    Thanks.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close