Questions tagged [widget]

Denotes questions regarding Magento Widget

Filter by
Sorted by
Tagged with
8
votes
3answers
11k views

Magento 2 - catalog product list widget product order

The homepage of my magento website is showing a product list. This product list was made with the catalog product list widget configured to show the products which are in the homepage category. ...
12
votes
3answers
18k views

Magento 2: Call a Widget in a .phtml file

I have a widget: {{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="all_products" products_count="5" template="product/widget/new/content/new_grid.phtml"}} So it works in ...
12
votes
5answers
15k views

Magento 2 - How to create FAQ page with accordion

I want to create a FAQ page with the Accordion widget (http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/widgets/widget_accordion.html). Is it possible to use it on a CMS page?
9
votes
5answers
19k views

Magento2: How to override widget template

There is widget.xml in CatalogWidget module. Inside the widget.xml there is <parameter name="template" xsi:type="select" required="true" visible="true"> <label translate="...
5
votes
1answer
5k views

How does Luma theme home page work?

I understand that the home page content is defined in block home-page-block, and I can edit that and see changes appear in the browser. However, what I don't understand is: What bit of theme/...
0
votes
1answer
554 views

Newest Product Widget Not Showing Correct Products

I have a recent problem with the new product widget not actually displaying the newest products. It is set to 'all products-recently added products' but has just been showing the same 5 products for ...
0
votes
2answers
59 views

How to override module-catalog/Block/Widget/Link.php in magento 2

I need to change functionality of getHref() method. So I Created several below files in my code folder. 1.<vendor>\Catalog\Block\Widget\Link\Link.php <?php namespace Tea\Catalog\Block\Widget; ...
2
votes
1answer
17k views

CMS Block Widgets for Individual Products

I'm working on a CMS Block to show featured products on the home page. I set up my own template file which loads $this->getProduct() for the data. The problem I'm having is that I'm using the ...
5
votes
3answers
10k views

How to call widget with products of specific category in “.phtml” file?

How can I call a widget that displays product from a specific category in a phtml file? Currently I can only display "all_products" in my phtml file like that: echo $this->getLayout()->...
3
votes
1answer
6k views

Magento 2: insert a “Bestsellers” widget via the Magento admin

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. On the home page, I want to insert a "Bestsellers" widget via the Magento admin, like the one ...
2
votes
3answers
4k views

How to add 'Insert Widget' functionality to category WYSIWYG editors in Magento 2 ?

Regarding Magento 2, I want to add 'Insert Widget' button on category WYSIWYG editor. For more information please find attached screen shots. cms_insert_widget.png -- I want functionality like this. ...
1
vote
1answer
3k views

Adding block and creating unique class ID

we add blocks to cms/blocks and pages using this convention {{block type="cms/block" block_id="my_block1"}} {{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="...
5
votes
1answer
3k views

Magento 1.8 static block in widget not showing?

I have created simple static block and trying to show it through widget inside Left Column but its not showing. In fact any static block is not working through widget. I have created magento theme in ...
2
votes
1answer
2k views

Why does the 'Container Widget Header' appear twice in my grid in my ajax grid?

I've built an admin grid following this tutorial: http://inchoo.net/magento/how-to-create-a-custom-grid-from-scratch/ My issue is that when I use any of the grid controls (pagination or filters), and ...
3
votes
2answers
6k views

How to render widgets in product and category description in Magento 2?

In Magento 2 we can add widgets to CMS pages and CMS blocks with a directive like this (assuming we created this custom widget with a module before): {{widget type="Vendor\Module\Block\Widget\...
3
votes
1answer
1k views

Magento 2: Change on widget template not applied to frontend

I'm currently working with Magento2 (I'm an absolut beginner with this) and I need to adjust the template of a widget to my requirements. So I found the appropiate .phtml file used by that widget and ...
3
votes
2answers
5k views

Widgets showing on products of a particular category

Working on a project where I need the ability to show a static block widget on all products of a particular category. So as an example the block might be instructions on how to measure yourself for a ...
2
votes
1answer
1k views

Widget dependency doesn't work for chooser fields

I have one yes/no select field in a widget.xml If "yes" was selected then category select field should be visible. But category select field always visible instead. That's wrong. Here is my widget....
0
votes
0answers
34 views

How to get widget parameter data in code block

I want to get parameter's data from widget configuration in Block class. https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/custom-widget.html as we know from article, we can get ...
0
votes
1answer
509 views

Magento 2 - How to remove “Add new MODEL” button on \Magento\Backend\Block\Widget\Grid\Container

I am extending the \Magento\Backend\Block\Widget\Grid\Container with my block, and I want to remove the button for adding new instances of this model ("MODEL"). How can I do that?
0
votes
2answers
1k views

Add category input to widget.xml

How to add this to my custom widget at backend?