cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 add option to catalog product list widget

Magento2 add option to catalog product list widget

What is the best way to add additional option with targeted template to catalog product list widget ?

 

template.JPG

 

There is already template called "Products Grid Template" linked to

 

Magento_CatalogWidget::product/widget/content/grid.phtml

i want to add additional template called "List without button" and that will be linked to this template

 

Magento_CatalogWidget::product/widget/content/without_button.phtml

I can create without_button.phtml and can put it into this path

 

/app/design/frontend/vendor/theme/Magento_CatalogWidget/templates/product/widget/content/without_button.phtml

However how to override the widgets.xml file. I can make changes to vendor folder however it is not a good practice to change default value of magento, so is their any easy way to achieve it or i will have to create custom module for that ?