cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing the insert widget type 'Catalog Products List' template

SOLVED

Customizing the insert widget type 'Catalog Products List' template

I'm adding the widget on a page by going

->Insert Widget ->Widget type-> Catalog Products List

After adding the widget, I can see the template path as 'template="product/widget/content/grid.phtml"'. I'm trying to update this template but working on a wrong file I guess. What is the full path for the template file?

2 REPLIES

Re: Customizing the insert widget type 'Catalog Products List' template

Hi @naveen786,

 

That file is defined here:

 

vendor/magento/module-catalog-widget/etc/widget.xml, line 36

(more or less)


The parameter is "template"

 

<parameter name="template" xsi:type="select" required="true" visible="true">
    <label translate="true">Template</label>
    <options>
        <option name="default" value="product/widget/content/grid.phtml" selected="true">
            <label translate="true">Products Grid Template</label>
        </option>
    </options>
</parameter>
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Customizing the insert widget type 'Catalog Products List' template

And the PHTML file is located in:

 

vendor/magento/module-catalog-widget/view/frontend/templates/product/widget/content/grid.phtml
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"