Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
321 views

Load widgets in specific position on category list page - Magento2.4

We would like to create widgets with layout updates and load these widgets in a specific place on the category list page. So we would like to create a widget from admin, load a CMS static block and ...
JGeer's user avatar
  • 1,422
1 vote
1 answer
28 views

Can a widget extend a class besdides Template?

All widgets I have ever created programmatically extends Template implements BlockInterface and I was curious if you can extend different classes for a widget module's block?
A. Andersen's user avatar
1 vote
2 answers
2k views

Add dynamic rows (No UI Component) block, into the custom widget

I need to add dynamic rows into the custom-made-widget, without uiComponent. I have a system.xml with the block: <section id="general" type="text"> <group id="...
AcidBurn's user avatar
2 votes
0 answers
400 views

Magento 2 How to create checkbox field in widget

I have a custom widget in which I need to create the checkbox field in one of my widget. I am using parameter type as block Below is my code 1 . widget.xml file <widget class="Sandesh\...
sandesh s's user avatar
0 votes
0 answers
32 views

magento 2 append widget

<reference name="content"> <block type="cms/widget_page_link" name="48fc761f38fa9838fcc3a3b498c47f72" template="cms/widget/link/link_block.phtml"&...
aich.khalid's user avatar
0 votes
0 answers
106 views

Magento 1.9.4.0 CMS Block Widget Issue

I'm trying to add widget to cms block or page but when i add it only display short code on page and not render, i tried different magento default widgets results is same also tried using code on ...
Suneth Kalhara's user avatar
0 votes
0 answers
154 views

How to rewrite jquery code in jquery ui widget

How to remake this code in ui jquery widget? There is such jquery code. When you select an item using the checkbox, the item is cloned and added to another block. Tell me how to rewrite it in jquery ...
ann karsksya's user avatar
1 vote
0 answers
45 views

Magento 2.3.3: Widget layout - Is it possible to add a widget to products by attribute?

I know Magento allows for widgets to be placed on specific products but I need to take it further. I need the option to allow me to filter by product attribute and apply widget to products with those ...
Kieran's user avatar
  • 98
5 votes
1 answer
970 views

Magento 2 - Using UI Component as input for widget

So far, in all the documentation and tutorials for UI Components that I've come across (Like the documentation here: https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html, or in ...
sitian Gu's user avatar
4 votes
1 answer
1k views

Creating custom widget, how to use existing block like "RECENTLY VIEWED PRODUCTS" for a custom block, so that It should support all magento themes

registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); module.xml <...
Rohit Jaiswal's user avatar
2 votes
0 answers
140 views

I am creating a custom widget "SPONSORED BEST SELLER PRODUCTS" block to show on home page. Bestseller.phtml file not rendering in the front end

This is my registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); This ...
Rohit Jaiswal's user avatar
0 votes
2 answers
51 views

Widget has too many database calls? Need a refactor suggestion

I'm using Magento 1.9.3 and I have a theme that is loading very slow. After a debug I found that on the home page for example I'm loading New Products widget, Featured Poducts Widget, Sale Products ...
Pascut's user avatar
  • 329
1 vote
1 answer
1k views

In Magento 2.1.5, is there a way to render a widget within a template by its ID?

I would like to render a widget in my template by its ID, just like I have with blocks: echo $block->getLayout()->createBlock('Magento\Cms\Block\Widget\Block')->setBlockId('widget_id')->...
greenarrow's user avatar
2 votes
3 answers
1k views

How to resize product images in recently viewed widget

How can I resize the images rendered via the recently viewed product widget? I have tried editing multiple values inside app/design/frontend/VENDOR/THEME/etc/view.xml but none updated the ...
Ben Crook's user avatar
  • 15.7k
3 votes
1 answer
819 views

Is it possible to disable widget without widget.xml changes?

I have extension with widget.xml file where there are 5 defined widgets. 1 of the widgets is available only to premium customers. I don't want this widget to show up inside Widget type selection in ...
user1324762's user avatar
3 votes
1 answer
2k views

Magento 2 showing the same Widget twice

I need to create 2 widgets on the homepage (CMS Home Page -> Main Content Area). To do that, I created 2 modules (one for each widget) and extended them from Catalog Product List to use my own ...
pinicio's user avatar
  • 766
2 votes
2 answers
3k views

Widget Frontend Display

I managed to develop a custom widget, the problem is that its not displaying in the frontend. The goal is to add the widget to a static block and then display the block in frontend. I created the ...
Miguel Pinto's user avatar
3 votes
2 answers
8k 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\...
Jey DWork's user avatar
  • 1,101
1 vote
1 answer
127 views

Can't select cms page/blog or product/category widget

I realy hope you can help me with this... I have installed a brand new Magento at GoDaddy. Everything but Widgets works fine... The button that should appear in Plugin Detail are simply missing. No ...
GustavoSartori's user avatar
5 votes
0 answers
3k views

Widgets not showing

I'm trying to create a simple widget that for example gets displayed on every site, but I can't get the widget to show. I'm also trying to add a standard Magento widget, but that doesn't work neither. ...
user1563232's user avatar
0 votes
1 answer
135 views

System xml source_model name convention

In system and widget xml file of custom module I use source_model tag. First I used this: <source_model>modulename/system_requesttype</source_model> but then there was conflict with ...
JohnyFree's user avatar
  • 1,539
5 votes
1 answer
1k views

Can we make Widget Options validaton in magento?

I have exactly same question asked over here: https://stackoverflow.com/questions/25291470/can-we-make-widget-options-validaton-in-magento I want to know is there any easy way I can validate my ...
chamich's user avatar
  • 443
1 vote
0 answers
116 views

List of categories and cms pages in single widget instance [closed]

need a bit of advice with widget instance's. I need to great a widget instance which lists both cms pages and categories which the client can change easily. here is what it needs to look like: Now ...
Tom Burman's user avatar
2 votes
1 answer
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....
Anthony's user avatar
  • 784
1 vote
2 answers
919 views

Admin add editor field and widget?

I have a custom module. Inside _prepareForm I have also field editor. $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(array('add_variables' => false, 'add_widgets' => ...
JohnyFree's user avatar
  • 1,539
6 votes
3 answers
7k views

Wysiwyg custom attribute with cms directives is not working

I have a wysiwyg custom attribute. Insert an image there: But in the html code source I see this one: <img src="{{media url="wysiwyg/article1.jpg"}}" alt="" /> Instead of <img src="...
Anthony's user avatar
  • 784
0 votes
2 answers
272 views

"What's hot" / "best selling" showing deleted products

I have a widget on the homepage of www.crystelleclothing.com which displays the best welling products... Problem is, it shows blank products where the best selling ones have been deleted... Any ...
Henry Aspden's user avatar