Question: List of products in a grid

List of products in a grid

Good morning, receive a cordial greeting. How could I do so that in the list of products in a grid it does not show the description, while in the list it does show the short description. K

HR

Hector Rojas

Asked
Good morning, receive a cordial greeting.

How could I do so that in the list of products in a grid it does not show the description, while in the list it does show the short description.

Kind regards.
  • MS

    Mian Saleem

    Answered
    Hello,

    You can check the `gen_html` function in the `themes/default/shop/assets/scripts/general.js`

    Thank you
  • HR

    Hector Rojas

    Answered
    Hello Miam.

    Sorry but the file that you indicate to me "themes/default/shop/ assets/scripts/general.js" does not make any changes to the products page, in fact you can rename it and nothing happens, however the file "themes/default/shop/assets/js/scripts.min.js "if you remove the detail but if you remove "+ r.details +" it removes it both in the list and in the grid, I would be very grateful if you could help me with this detail, the The idea really is to eliminate the detail in the grid since it misplaces the design of the products because there are longer descriptions than others.

    Thank you.
  • MS

    Mian Saleem

    Answered
    The script file is correct. You can minify it with `npx gulp cmJs` after installing the node dependancies `npm i`
  • HR

    Hector Rojas

    Answered
    I did not understand your answer, what I need is to remove the description from the list in the product grid and only leave it in the list

    Thank you.
  • MS

    Mian Saleem

    Answered
    We load minified file `themes/default/shop/assets/js/scripts.min.js` to shop and this minified file is generated from `themes/default/shop/assets/scripts/general.js` with command mentioned in the previous reply. You can google or youtube to learn `gulp` If you can directly modify the `themes/default/shop/assets/js/scripts.min.js` that would be fine.

    > Please be informed that we do't offer support for modification or modified versions. You are allowed to do it at your own risk.
  • Login to Reply