A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [widget]

Denotes questions regarding Magento Widget

Filter by
Sorted by
Tagged with
0
votes
2answers
43 views

Help in remaking the code on the widget

The challenge is that I have checkboxes on the page. This code finds all the checkboxes on the page and if the checkbox is selected, it adds it to a separate block. I want to limit the amount that can ...
0
votes
0answers
12 views

Load widget content after header image

So, I have some issues with loading a call to action button. To make the header work, we've created a Magento Widget which includes the header image itself, but also the possibility to enable or ...
0
votes
0answers
8 views

Magento 2 - Use \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser with search by keyword

I want search by keyword field which can search in grid columns and get results based on keyword. For Ex I need exact search which is available in product admin grid in product chooser form.
1
vote
1answer
32 views

Change “Add to Cart” Button Text Of Widget Magento 2.3.3

I want to change button text "Add To Cart" To "Some Text" With Custom Condition For Widget... Using Custom Module Create widget :-
1
vote
1answer
40 views

How to get Product id from specific Product Catalog Rule?

I created a widget which is a display product section for a specific catalog price rule selected by admin. Ex: Admin select 20% off on pants from backend & '10' will be limit of displaying ...
0
votes
0answers
12 views

Unable to get only Image URl in Magento2 Custom Widget

I have requirement of Image in the widget and i have using Wyswigy editor to add image, but i Image url to be wysiwyg/pic 01.jpg but i am getting <img src="{{media url=&quot;wysiwyg/pic 01....
0
votes
1answer
9 views

Widget layout error on saving

Testing a widget I created, I get a weird error when I try to set up the layout where the widget should appear. After hitting the "save" button I get the following: File "/http/var/view_preprocessed/...
0
votes
0answers
24 views

Magento2.3.3: Custom Widget return null in Block file

I try to create a custom widget List of comma-separated product ids to be displayed on the front-end.getting id's from widget and use in block But in block it return null value. how can I get these ...
1
vote
2answers
25 views

How can I load popup widget unload or on ready?

I am trying to load popup widget , admin specifies it will be unload on ready . Where can I specify it must pop unload or on ready ? define([ 'jquery', 'Magento_Ui/js/modal/modal', 'mage/cookies' ],...
1
vote
0answers
25 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 ...
0
votes
0answers
17 views

2.3.3: I have created a widget with WYSIWYG option & depends doesn't work well with it

I have created an option on my custom widget that uses WYSIWYG. All works fine with the depends in as far as if it matches it shows and if it doesn't it hides the field. However, if it does not match ...
0
votes
0answers
13 views

Magento 2.3.3: How would I add a Color Picker to my custom widget options? [duplicate]

I need to add a color picker to my custom widget options how would I go about doing this? Thank you
0
votes
0answers
35 views

Magento 2 :How can i get rating stars and product detail in my widget?

I have made a widget to get reviews of all products on a single page. but not be able to show rating stars and products details with that. I tried many solutions but nothing works <?php $...
0
votes
0answers
24 views

Insert a widget/block reference in product/view/description.phtml

I am trying to display a widget linked to a new block reference I created. I would like to put this block reference inside my catalog/product/view/description.phtml file This is the code I am trying ...
1
vote
1answer
24 views

Add Custom JS to Modal Insert Widget Admin Form

I am wanting to do custom javascript to manipulate the Widget Options when adding a widget (using the WYSIWYG editor) in the Admin panel. I have found that the layout handle adminhtml_widget_index is ...
0
votes
0answers
50 views

Add Custom Attribute To Recently Viewed Products Widget

I have override widget_recently_viewed.xml in my theme in Magento_Catalog with <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
26 views

Moving blocks and widgets on XML at Magento 2

I'm migrating from Magento 1.9 to Magento 2. I need to move some elements on header and footer but this is being a nightmare. All the content that I found on my searches show me how to do it but just ...
0
votes
0answers
57 views

How to load content through ajax call in collapsible Widget

I want to load content dynamically through ajax call. For that, I read below documentation. https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/widgets/widget_collapsible.html#...
0
votes
0answers
155 views

Magento 2 Sort product in cms page widget block

I want to insert multiple products in a cms page using SKU . So i did using blocks . So please see my code {{widget type="Magento\CatalogWidget\Block\Product\ProductsList" show_pager="0" ...
1
vote
1answer
163 views

Magento 2 Custom Product block using SKU in cms page

I want to display custom product block in cms page . I have sku of the products . No how can i display this product in cms page . I know how to display one product using sku . But is it possible to ...
0
votes
1answer
46 views

Custom php code in magento not working / magento block path wrong

i am new to magento & using magento 2 . I have to run a php code in my cms page . When i check the website i can understand that the theme is Alothemes Bencher6 . So what i did is app/design/...
0
votes
0answers
43 views

Show product blocks based on product id

I am new to Magento. I have some product ids. I have to list this product on my custom page. These products are selected from different categories. So I cant make these products in same category and ...
0
votes
0answers
102 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 ...
0
votes
1answer
30 views

Magento 2: How to override new_grid.phtml in Custom Module?

I need to override product/widget/new/content/new_grid.phtml file in my custom module. Please tell me the possible ways to do it.
0
votes
0answers
31 views

Error while extending jQuery widget

I'm trying to extend the widget in vendor/amasty/label/view/base/web/js/label.js and override a functionality in one of its methods. The error I get is: TypeError: base is not a constructor in ...
0
votes
0answers
27 views

How to create custom Widget programmatically that will allow me to show the newest Products in Home Page?

I want to create a Custom widget through codes that will allow me to display the newest products on the home page where my widget will get inserted.
0
votes
1answer
21 views

Magento 2 Calling widget/template_filter in .phtml

Where is the equivalent way of writing the following Magento 1 code for calling a custom widget in Magento 2.3.1? Mage::getSingleton('widget/template_filter')->filter($_product->getData('...
0
votes
2answers
117 views

Magento 2: add magento widget button on product WYSIWYG editors

I am missing the "insert widget" button on all WYSIWYG editors on the product edit pages. The magento guys seem to not have thought this through properly. I found a way to add them to categories: ...
0
votes
0answers
65 views

Adding images or links to Wysiwyg inside widget returns an error in Magento 2

I am having trouble implementing a WYSIWYG editor inside a widget. Preconditions (*) 1. Magento 2.3.1 2. Add a Wysiwyg element to a widget app/code/{Vendor}/{Module}/etc/widget.xml <parameter ...
2
votes
1answer
67 views

How to show Recently Searched Products without using Widget on HomePage (Luma). Magento2

I want to show recently searched products on homepage without using Recently Viewed Products Widget I want to get this in my custom block and also want to show this in my custom .phtml file how it ...
1
vote
0answers
29 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
45 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
10 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
35 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 ...
3
votes
1answer
167 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
18 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 ...
8
votes
0answers
172 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
139 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
115 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
24 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
273 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
49 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
34 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
73 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
92 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
71 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 ...
1
vote
1answer
783 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
102 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
167 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
25 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::...