Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [widget]

Denotes questions regarding Magento Widget

1
vote
0answers
16 views

Use ProductList widget

I try to display list of products with the widget ProductsList, without success. I have the following code : $block = $this->_view->getLayout()->createBlock('\Magento\CatalogWidget\Block\...
3
votes
0answers
28 views

How to display products on a homepage in a list mode in Magento 2?

I tried to use Catalog Products list to display products on my homepage (not category page). By default, all products are shown in grid mode. And I see that there is only one option of grid mode in ...
0
votes
0answers
8 views

Add custom widget to created block in install magento

I wanted to add my custom widget to a block that I will be creating under install function. But I can't find any tutorial on this. Right now I have copied the code from here so it creates a block. But ...
2
votes
0answers
15 views

Customize native loader

I would like to challenge the template structure of Magento 2 loader which is declared in the lib/web/mage/loader.js but I can't find where this widget is calling by Magento to override the javascript ...
2
votes
1answer
42 views

magento 2.3.1 “Catalog Category Link” widget blank

I am trying to use the following widget: {{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="ewrrewq" title="rqewrqrq" template="category/widget/link/link_block.phtml" id_path="...
2
votes
1answer
16 views

How to get Featured Brand

I am new in Magento 2, now I am struggling about how to show featured brands lists on the main Home Page (On the top of Recently Viewed widget). I have googled to everywhere but still have no clue ...
7
votes
0answers
112 views

How to add Widget layout updates field in my custom module admin form Magento 2

I am working on a custom module where I want to add the following field in my admin form in have my admin form developed in using ui_component I want to add this field (in this picture) after a field ...
0
votes
0answers
22 views

Mixin for Magento_ConfigurableProduct/js/configurable::_reloadPrice not working

I'm trying to follow the example here Magento 2 - Why do SKU not change dynamically in configurable product view page to create a mixin for configurable products that will show dynamically a ...
0
votes
0answers
20 views

How can i only show date and month select box in calender(Magento 2)

I want my customer edit form calendar to be only date and month and no year and no week days name. This must include leap year as well if a user birthday is on 29th Feb and according to this current ...
1
vote
0answers
23 views

How to create widget which would display products with the same name as the product on page?

I am new to Magento and I need to create widget which will dynamically take name of the product on which page he would be and show all the products with the same name as this product, for example: ...
1
vote
0answers
29 views

How to add style(css,js) to custom widget

Hi i can try to add style to widget in the usual way. like here https://webkul.com/blog/magento2-how-to-add-css-and-js-file-in-module/ its not working. How can i add to css file to widget?
0
votes
0answers
33 views

How to Override Class without Parent Constructor Magento 2?

How to override a class without creating parent constructor? Actually I'm overriding Widget and it works perfectly for 2.2.X versions but for 2.1.X versions it shows me an error Interceptor::...
3
votes
0answers
33 views

How to show full product page on home (but show different custom block than product page)

I have a one product store in Magento 2, and want to make it easy to order as soon as possible. So i want to have on the homepage everything that there is on the product page, like order button, ...
0
votes
0answers
40 views

How do I create a “floating” widget/block?

I'm trying to create a floating widget/block that can sit over on the left of my website like the attached picture. I want to advertise my catalogue for download.
4
votes
1answer
54 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 <...
2
votes
0answers
51 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 ...
0
votes
1answer
195 views

Use slide animation for opening tabs or accordions

I'm trying to update the product tabs/accordions to animate when I select them. I've removed the tab styling and adjusted them so they are accordions that open up and down on the page. I'd like to ...
2
votes
1answer
48 views

Magento 2 Widget filter option to add price

When I select simple product from drop down under layout updates. I can select based on SKU, ID or Product. is there way to add Price to this Column...?
0
votes
2answers
81 views

Magento1 Feefo widget js conflict with prototype.js

I want to display feefo carousal widget on my website. For that I have generate the widget code and trying to add on my magento 1.9 website. But Feefo widget JS is conflict with the prototype.js and ...
2
votes
1answer
20 views

Magento 2 extends ProductsList Widget

I am trying to extend Magento 2's core ProductsList widget, but getting following error: Fatal error: Uncaught TypeError: Argument 1 passed to VendorName\ModuleName\Block\ProductsList\Interceptor::...
0
votes
2answers
69 views

Remove title New Products from Magento 2 Content New Products Widget

I have scoured the internet looking for a solution of removing the title word New Products that exists just above the grid from the Magento 2 new products content widget. Not sure how to accomplish ...
1
vote
0answers
25 views

Magento2 - Get Widget from CMS Page

I have a cms page in backend, with one widget inside. Can i get the widget from html content of this page ? Because I would like to get the conditions of this widget. Like exemple : $toReturn = $...
0
votes
1answer
92 views

Own recently viewed widget (magento 2)

I want to make own recently viewed widget, cause this standard loads items with javascirpt (I want to have items directly). So I made this code, based on other posts: namespace AA\WidgetRecently\...
0
votes
0answers
20 views

Is it a simple way to set conditions for widget of type CMS static block?

I want a CMS static block to appear in some product pages, but not all. The condition would be "brand is xxx", but unlike other widget types there is no condition option on Widget Settings. Is there ...
0
votes
0answers
28 views

Magento 2 reset widget option

I'm working on a custom widget that allows adding multiple CMS blocks instead of one. It's working fine, however when the blocks have been selected they cannot be removed anymore (they can only be ...
1
vote
0answers
137 views

Magento 2 : Product price should be change on custom option select in custom module

In my custom module, I display product on model popup. I set custom option in simple product. When, I select custom option then, product price should also update as like working in product page. But,...
1
vote
1answer
45 views

WhatsHelp on Magento

I need to know how to implements the WhatsHelp widget in Magento 1 This is the code: <!-- WhatsHelp.io widget --> <script type="text/javascript"> (function () { var options = {...
0
votes
1answer
105 views

Magento 2: How to add date filter to new product widget

I am using new product widget in my custom phtml template. It is showing the newly products. but i want to add the date filter to this products. How can i do it. Any help appreciated. template file ...
0
votes
0answers
21 views

How to override the Thirdparty Extension adminhtml js file

Do I have to override js file from the app/code/Vendor/Module/view/adminhtml/we/js/widget.js file in magento2? Please suggest?
0
votes
0answers
41 views

Cannot see products on homepage

I did the following: Logged into Admin Created a simple product Added a product list widget to the home page Reloaded cache ... And I cannot see my product displayed on the homepage.
0
votes
1answer
136 views

Magento1 How to set template for a widget?

I have created a widget and I don't know how to set the phtml template for the widget.
0
votes
1answer
338 views

Magento 2 Confirmation widget confirm action

I'm trying to execute a function on confirm widget confirmation, but the confirm action is firing on load page always. Here is the HTML: <a class="action accept" id="accept_user" href="#"> ...
0
votes
1answer
255 views

Magento 2 product list widget, randomize

How can I change the sort order of the product list widget to random()? I am talking about the Product list widget you can insert on CMS pages. Thank you.
0
votes
0answers
15 views

Add template below price info in product grid

I would like to add a new template file below price info in product grid. I found the widget used for product grid:vendor/magento/module-catalog-widget/etc/widget.xml:36 Is there any method to add a ...
4
votes
2answers
286 views

Widget/block code in product custom attribute not rendering at front-end magento 2.2.5

I have created custom attribute of Input Type "Text Area" with WYSIWYG option Enable. After that add widget code in that product custom attribute input at store back-end. Its showing same code ...
0
votes
0answers
17 views

Link widgets inside a Widget

I was wondering if it is possible to link existing widgets (of a certain type) inside a widget? For example I created a custom widget type "foo" with var 1 & var 2. On a certain page I want to ...
0
votes
0answers
43 views

Custom widget doesn't show when added via the widget menu

I created a custom widget and it works when I add it on a page. But I want to use it more then once and prefer adding it in de content -> widget menu. But when I do that I get the following error: 1 ...
1
vote
1answer
151 views

How to display newly added widget for a particular category

I have replicated Catalog New Products List in magento and added a category chooser field to it. How to filter new products using category id? app/code/[vendor]/Newproducts/Block/Product/Widget/...
1
vote
0answers
35 views

Pricing condition not working in widget section for Product showing from Backend

I'm trying to create widget from backend for showing the particular some product list in home page. But when i'm giving pricing condition like below, the condition is not working and the UI portion ...
0
votes
2answers
99 views

How to create custom widget via Install?

I need to create widget category link via Upgrade. How to do this?
2
votes
2answers
500 views

Magento 2 decode widget code in category description

I have added widget(call static block) in category description http://prntscr.com/ko816y.But it is not call widget in front just showing output as it look in admin WYSIWYG editor. So,I want to convert ...
0
votes
1answer
262 views

Magento 2.2.5: Error when trying to Override Widget

I'm doing override widget to my custom module. So everything was great in the backend, until i come to the frontend and see nothing at all. I mean it works perfect in backend, but not with the ...
0
votes
1answer
100 views

Magento2 How can I choose multiple products by SKU?

How can I choose multiple products by SKU in a widget?
2
votes
2answers
168 views

Magento 2 + create widget via installData Script

I need to custom requirement for creating a widget via Script. but I have facing an error when try to add a widget via below script <?php namespace Test\Xyz\Setup; use Magento\Framework\Setup; ...
1
vote
0answers
104 views

Magento2 Multiple product chooser

I need a multiple product chooser for a widget. Can anyone please help me with some directions how can I implement something like that?
2
votes
0answers
177 views

Catalog Listing Widget - We're sorry, an error has occurred while generating this content

When I want to use the Catalog Listing Widget I get the following message on the front page: "We're sorry, an error has occurred while generating this content." Can anybody help me out with this ...
1
vote
0answers
73 views

Magento 2.2.5: How to create Button in Widget

i'm looking for the way to create Button in Widget I've done this but it throw an error said "Invalid xml type". So i thing that there's no such thing called xsi:type="button" in magento 2 widget. &...
2
votes
1answer
470 views

Category and sub category image widget

I tried to create category and subcategory image widget.I got first level of categories with category images. app/code/Customcategory/CatewithimgWidget/Block/Widget CatewithimgWidget.php class ...
1
vote
0answers
477 views

Error filtering template: Invalid block type

I'm trying to create my own widget in Magento 2 however I get this error: Error filtering template: Invalid block type: Inchoo1\CatalogWidget\Block\Product\ProductsList My code is identical to ...
0
votes
0answers
44 views

Display color in the widget panel Magento 2

I need to create a custom widget, where the Content Manager will be able to select a color from a set of 6 hex colors. Because the names of the colors are in hex format, how can I display the color ...