Questions tagged [widget]

Denotes questions regarding Magento Widget

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Best way to call JS widget only on specific page

I have created a Javascript widget which does some function based on product add/remove cart action. I would like to include the JS only on product pages viz: Category and Product detail page.I know a ...
0
votes
0answers
40 views

How to get widget instance id in its block

I can get widget parameters in the widget class like $this->getWidgetTitle() but here widget_title has been declared in widget parameters in widget.xml file, I want to get the widget instance-id ...
0
votes
1answer
31 views

How to get product collection by Widget's Encoded Conditions in Magento 2.3.5

I have a widget with conditions_encoded (including Multiple Category Ids, Multiple SKUs) in one section of the admin panel. The requirement is to show the product list with custom pagination, custom ...
0
votes
0answers
6 views

Removal of updated layout

Magento 2.4.3. I had updated layout of product and category pages by inserting widget (recently visited items) to pages' bottom above footer. Later on, I decided to remove that widget. What's strange ...
0
votes
1answer
99 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="...
0
votes
0answers
19 views

Add Captcha to widget with Custom Form

I have added a widget to a custom extension that includes a form. The form needs to have a Captcha on it. I cannot figure out what I am missing to get it to display on the form. The form opens in a ...
0
votes
0answers
10 views

Magento widget not pulling through

I have a Magefan blog widget that is pulling through the widget code on the frontend on the dev site but it works on my local! The module is up to date on both sites but I'm not sure why it's working ...
0
votes
0answers
15 views

Magento 2 Add CAPTCHA to login form in createblock

I am building a widget to allow the Login form to display on a CMS page. I am able to get the form to display, but when I try to login, I am redirected to the customer/account page and get the error &...
0
votes
0answers
43 views

Magento 2 widget in product page

On the product page, i need to lay out the static block through the widget. This is possible - the problem is that it is displayed before the attribute selector. How to make that from the beginning ...
0
votes
2answers
54 views

Load Products by SKU Using Dependency Injection

I am building a custom widget that I want to display specific products based on the product SKU. I have tried a few different code examples to get products using the dependency injection method, but ...
0
votes
0answers
14 views

Auto configure custom widget programmatically after enabling it in Magento 2

I'm struggling with some concept of auto-configuration custom widget provided by the module. By default, the widget should be configured by the merchant, which is obvious, but my question is - is ...
0
votes
0answers
19 views

How to change sort at catalogwidget custom grid phtml?

Without modifying the magento core code.I want to sort according to position in catalogWidget Custom Grid PHTML,What should I do?
1
vote
0answers
165 views

Magento 2 - Custom Widget Wysiwyg Editor allow html tags

I try to add a wysiwyg editor to my custom widget. I added the field to my widget.xml <parameter name="content" xsi:type="block" required="false" visible=&...
0
votes
0answers
18 views

Magento 2 - get “product media” container from product detail page in custom widget

I try to create a custom Widget in Magento 2. The Widget should display the "product media gallery" Container from the product detail page for a selected product in my widget. Is there any ...
0
votes
0answers
23 views

Datepicker in custom widget Magento 2.3.4

Is there any chance to create a field in custom widget with datepicker? I have a field that means end of sale and now I can type there text in spcific format only. I want to have there a datepicker (...
0
votes
0answers
16 views

How can I get all widget_instances of a widget type from the database?

I created a new widget type named "lorem_widget" and also a few widgets instances of them, which are persisted in widget_instances. Now I want to get all of these widgets out of the database ...
0
votes
0answers
18 views

Disable cache in widget home page Magento 1

I have a widgets that show products to sell in home page but it takes time to show product added so I want to disable cache in that widget {{widget type="cms/widget_block" template="cms/...
0
votes
0answers
9 views

Calling customer_form_login block in DropdownDialog widget?

Is it possible to call the login form (/customer/account/login/) or block block: customer_form_login in the Magento 2 DropdownDialog widget? I'm trying to build a Dropdown with login functionality.
0
votes
1answer
161 views

How to override Magento_CatalogWidget::product/widget/content/grid.phtml widget template in custom Module?

I want to override grid.phtml in custome module without using preference.I have tried this link but it does not work for me. widget.xml <?xml version="1.0" encoding="UTF-8"?&...
0
votes
0answers
12 views

Magento 2 Multiple image selector with preview in widget.xml

For a module, I would like to have an image uploader where you can upload one or more images to set into my widget. Is there a way to create an imageuploader for the widget.xml without the use of ui ...
0
votes
0answers
12 views

Magento 2 can you call a custom widget inside a custom widget?

I have two module, which both have custom widget. I want to insert the widget to my second one. Whenever I call my second widget I get the following {{widget type="Magento\Catalog\Block\Product\...
0
votes
1answer
97 views

Auto close modal widget after 5 seconds

I created a modal widget that appears after adding product to cart, it works perfectly .Now I need to close the modal after 5 seconds.please help!
1
vote
1answer
43 views

How do I load custom CSS for a widget only when the widget is used?

I have a custom widget for the product page (catalog product view). How can I load the custom CSS file into the head only when the Widget is actually placed on the page? I am looking for a best ...
0
votes
2answers
33 views

Show Widget in the Html

I have an html file for checkout where I want to show the widget which is coming from the database . Instead of displaying the widget it shows widget code. I have attached screenshot of the same. ...
0
votes
0answers
9 views

Magento2.3.3 Custom js widget gets loaded but then stops working

Hello i know this ma be hard to anwser but it tought i can all way's try. I have a custom js widget that gets loaded on the frontend, This Javascript starts running but and i does what it needs to do ...
0
votes
0answers
24 views

Add Grid in widget form magento2

Can i add grid template to custome widget magento2 ? I have an Blog menu in admin panel magento2 and i want to create an custom widget for this menu manage post here, purpose of this widget is i add ...
0
votes
0answers
23 views

Bug to configure a widget : impossible to select a block

I am currently working on an e-commerce website, running with Magento 2.4.0. I have to create a new widget, but at the end of the configuration, I have to select a block, which is impossible due to ...
0
votes
0answers
12 views

Magento 2.3.4 Can you call a widget inside a widget

Can you call a custom widget inside a custom widget?
0
votes
1answer
38 views

Add additional information to product list item in widget

I was able to add some additional information to the products in the category and the search-result page with a plugin. Unfortunately it doesn't work for the widgets (product list widgets, related ...
0
votes
0answers
35 views

Sort product list widget by position?

I added a prodct list widget that should show products from one category, sort by position. Sort products in widgets seems not to work, so I tried a suggested module from this question. It adds a ...
1
vote
0answers
22 views

How to access widget configuration options in Block class?

Although there's a similar question asked, it doesn't have an answer as the comment there refers to a question which has a comment that shows how to access the admin panel configuration parameters in ...
0
votes
0answers
19 views

How to set widget on home page full width instead of full bleed?

My page widget showing full width, if my screen size 25%, how to to make it center, so that makes my widget full width not feull bleed.
0
votes
0answers
21 views

Magento2 product widget on login page

I need to add all products widget as a table on my login page I use magento 2.4 How can I do it? Used default widgetes, didn't help me.
1
vote
0answers
137 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\...
0
votes
0answers
128 views

Wysiwyg widget escaping character

I've created a widget with a wysiwyg inside it (with the class from this module Dmatthew\WidgetParameters\Block\Adminhtml\Widget\Type\Wysiwyg) BUT When I'm adding my content, with the strong, ...
0
votes
0answers
17 views

magento 2 append widget

<reference name="content"> <block type="cms/widget_page_link" name="48fc761f38fa9838fcc3a3b498c47f72" template="cms/widget/link/link_block.phtml"&...
0
votes
1answer
72 views

Magento 2: Not able to delete second layout in widget

Magento 2.4 Admin > Content > widget After creating a new widget I have added two layouts. When I had tried to delete the second layout then the delete button is not worked. https://drive....
0
votes
2answers
151 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; ...
0
votes
1answer
98 views

How do I place a widget in a custom page layout?

I've created multiple custom pages like a contact page and FAQ page but both the pages and the containers I've labeled don't show up in the widget panel. What's the right way to add widgets to your ...
1
vote
1answer
105 views

Issue With Displaying Gallery Widget

I am trying to add images product gallery to my custom widget using Fotorama. What it should look like: So I tried to initialize the gallery widget using the js script. Based on the info I got from ...
0
votes
1answer
215 views

How to use fotorama in my custom widget?

I want to display my product image gallery in my custom widget. $images = $_item->getMediaGalleryImages(); is how I got my images for product. I want to display the image using fotorama? is this ...
0
votes
1answer
250 views

How to add View Model to a Custom Widget?

I am extending ProductList widget and I want to call a View Model from another module testing\ProductFeatures\ViewModel in my own custom template. I have tried researching on how to use the View Model ...
1
vote
0answers
27 views

Magento 2 Sort order on catalogue widget

I have a working widget that shows the products but how can I get the products to be sorted by the name. I have researched and a-lot of options show how to add a button that will sort the products but ...
0
votes
1answer
27 views

How to filter products as per custom attribute value in Magento 2

I am trying to sort products as per the custom attribute value "new_sort_by" but unfortunately I could not filter. please check my code Create a product attribute "new_sort_by" ...
0
votes
2answers
30 views

WishlistCollection keeps returning 0 products

I'm trying to make a widget using the wishlist to show whether you've added the current product to the wishlist already or not. I've seen some other threads with answers and I can safely say I tried ...
0
votes
1answer
141 views

How use preference for core widget block class?

How override core block class for core Catalog Category Link widget? I try: <preference for="Magento\Catalog\Block\Widget\Link" type="Vendor\ModuleName\Rewrites\Block\...
1
vote
0answers
50 views

Can i use UI-select component in a widget?

I'm attempting to use the UI-select component for the Category in a widget. I haven't had any luck finding a resource that shows it is possible. My question is if i can use UI-select component as ...
0
votes
1answer
197 views

Magento 2 How to extend Recently Viewed Products widget

I want to extend Recently Viewed Products widget so I can add review attribute. After creating this file: Vendor/MyModule/view/frontend/ui_component/widget_recently_viewed.xml: <listing xmlns:xsi=&...
1
vote
0answers
35 views

How can you have multiple dependences for a single parameter in a widget.xml file?

Like many things with Magento widgets, this should be simple but clearly isn't. How can I use the same depends logic but for multiple parameter values? so <depends> <parameter name="...
1
vote
1answer
170 views

How to have loader widget block only some content

The loader widget allows a developer to block page content while an AJAX request is ongoing. The devdocs describes it as: The Loader widget blocks page content (all content or a part of it). I'm ...

1
2 3 4 5 6