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 ACCEPTED SOLUTIONS

Accepted Solutions

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>

View solution in original post

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

View solution in original post

2 REPLIES 2

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>

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