I have some widget in custom theme and that theme should be imported automatically. -> after click on import button all the required widget, blocks and pages will be installed in back end. I had already done with block and pages but I need to do it for widget now. Its really appreciated, If anyone can help me. Thanks.
-
Follow this link mageplaza.com/devdocs/magento-2-create-widget or this one magenticians.com/create-widget-in-magento-2Hitesh– Hitesh2018-11-26 05:54:45 +00:00Commented Nov 26, 2018 at 5:54
-
can you please provide me xml parameters, to add already created CMS static block into widget??Kruti Aparnathi– Kruti Aparnathi2018-11-26 06:47:10 +00:00Commented Nov 26, 2018 at 6:47
-
It is possible to create new widget with Setup Script (see link magento.stackexchange.com/questions/221967/…), but this solution creates only entry in widget_instance table without creating entry in widget_instance_page. You need add some changed in AdminOleksandr Dykyi– Oleksandr Dykyi2019-07-23 11:18:48 +00:00Commented Jul 23, 2019 at 11:18
Add a comment
|
1 Answer
this link help to create and get some idea about create widget and how it work. https://www.mageplaza.com/devdocs/magento-2-create-widget/