Questions tagged [widget]

Denotes questions regarding Magento Widget

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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=&...
0
votes
0answers
10 views

Magento 2.3.5p1 In widget.xml can I load collection? [closed]

I am trying to load a collection in widget.xml, I have been looking everywhere and I am not able to find a solution. Please can someone help me or give me a tip
0
votes
0answers
5 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="...
0
votes
1answer
17 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 ...
0
votes
0answers
7 views

Catalog product list widget reload the page when i click on the paging button

When I use a Catalog Products List widget in the Home page the button in this products list reloads the current page to show other product (I display only 5 items by pages) User experience suffers ...
2
votes
2answers
83 views

Using magento 2 accordion widget with href links

I am trying to build a category accordion in my side bar and I am using magento 2 accordion widget https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_accordion.html <?php $...
1
vote
2answers
35 views

Magento 2: Uncaught Error: Call to a member function setProduct() on boolean

I'm trying to update the product widget to show some custom product data like that <?= $block->getChildBlock('name-of-block')->setProduct($_item)->toHtml() ?> while this code works ...
0
votes
0answers
8 views

Missing atributte in conditions in widget

I use in my custom widget in /etc/widget.xml <parameter name="condition" xsi:type="conditions" visible="true" required="true" sort_order="10&...
0
votes
0answers
8 views

How to rewrite Js widget which doesn't have return $.mage.widgetName

I'm trying to rewrite JS widget using mixin but getting error Uncaught TypeError: base is not a constructor. If at the end of this widget add return $.mage.widgetName, everything works fine. Can I fix ...
0
votes
1answer
10 views

How to create table in widget.xml

I wanna add a html table in widget.xml. I mean this: instead of this: Is this possible? Thanks.
0
votes
0answers
11 views

Widget: Product Link with custom image

I am currently creating my first widget. The goal is to create an extended version of the existing Product Link Widget, which allows you to add your own image that links to the product detail view. ...
0
votes
0answers
11 views

How to get widget parameter data in code block

I want to get parameter's data from widget configuration in Block class. https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/custom-widget.html as we know from article, we can get ...
0
votes
0answers
35 views

How to remake js code on jquery ui widget

I have a simple code that animates the appearance of a mini-cart modal window. <script type="text/javascript"> require(['jquery'], function($){ $(document).ready(function(){ ...
0
votes
0answers
7 views

Magento 2.3.4: I want to add image and name of the product in my review widget

Using Below code I am able to make a widget that I had a display on a page, reviews from all products are showing, but I am unable to show the name and picture of the product please help. <?php $...
0
votes
0answers
38 views

How to dynamically add MediabrowserUtility fields to widget in Magento 2?

I am trying to make a widget that allows creating a banner with multiple images and the number of images dynamic. This ideally would be with the Media browser utility. What I have so far is a single ...
0
votes
0answers
10 views

Magento 2.3 Catalog Product List widget not pulling user defined field for Number of Products to Display

I have set the number of products to display to 5, however the Catalog Product List widget is displaying all products in the selected category. The "Number of Products to Display" is the only user ...
0
votes
1answer
24 views

Magento 2.3 folder structure of the Catalog Product List widget

I am using Magento 2.3.3 and I am looking for the folder structure of the Catalog Product List widget in order to look at the code. I have tried searching the /var/www/html/vendor/magento folders but ...
0
votes
0answers
14 views

Magento 2- Added widget in static block is not visible in front end

I have created a static block and within the block, I have added an embedded code for new_products widget. All content is visible in the front end except the widget. Embedded Code: {{widget type="...
0
votes
0answers
15 views

Error when configurable option dropdowns load before product gallery

I have configurable products with two different configurable attributes in my store. I have a customization in vendor/magento/module-configurable-product/view/frontend/web/js/configurable.js which ...
0
votes
0answers
27 views

Magento2 - Widget not showing up on frontend category page

We have a dozen or so category pages. Each category page has a subcategories widget and a bestsellers widget that shows the 4 bestselling products for that category. I created a new category, "...
0
votes
1answer
151 views

Magento 2 add ViewModel to product widget

I use ViewModel for custom data in category product listing and everything working ok but i need add ViewModel to widget with new products. Is it possible to add ViewModel to widget? Check my ...
0
votes
0answers
51 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 ...
0
votes
1answer
18 views

Widget Display Options in Magento2 - select all subcategories of category in one click

Is it possible to select all subcategories of category with one click only ? I want to display my widget on category and all subcategories of this category. At this moment I must select every ...
0
votes
0answers
12 views

VAT widget returns different store value on multi website Magento 2

I have Multi Website on my Magento 2.2.0 Configured Show VAT Number on Storefront(eav_attribute taxvat) Website level attribute_id | website_id | is_visible | is_required | default_value | ...
0
votes
0answers
12 views

Issue : When my widget load , my Jquerry no more avaible

I try to add Widget on product page that is a calendar which use jquery in an another webservice . In my phtml i use file_get_content But when i do this my widget does load corectly but all my other ...
0
votes
0answers
10 views

Position of Magento 2 custom widget

I would like to know if we can manipulate custom widget position, so to be at the top of category pages not at the bottom for example
0
votes
1answer
28 views

magento 2 How to add custom content under the buy button for a specific product

I want to add some custom content under the shopping button on the product page of the specified category. I have used the block and widget functions to create it, but the display position is not what ...
0
votes
1answer
34 views

How to get collection of all the widgets created in admin panel?

In admin panel, I create a widget by choosing it's Type, Design Theme and applying the custom widget options. I have not selected any Layout Updates for that widget. Let's say I have created ten ...
1
vote
0answers
25 views

After including a JS file in my Magento 2 custom widget, i m getting $. is undefined

I have created a custom widget that requires jQuery code. I have included the js file but when I'm trying to view the changes in the frontend, I'm getting jquery error. I tried including the file ...
0
votes
0answers
47 views

Add Custom Attributes and Custom Columns To Product Chooser Filters in Widget Setup

I'm trying to add custom columns / attributes to the product chooser filter when configuring a new widget. I've narrowed it down to magento\module-catalog\view\adminhtml\templates\catalog\product\...
0
votes
1answer
117 views

How to pass a variable to a JS widget in Magento 2

This is my script from my phtml file: <script type="text/x-magento-init"> { "*": { "Vendor_Namespace/js/custom": { "ajaxShipmentUrl": "<?php echo $...
1
vote
1answer
39 views

How to Override jquery widget method in Magento 2?

I'm trying to override Magento_Checkout/js/sidebar.js _initContent method. I need to delete two events from it and create my own events instead. Is it possible without copying the full method from the ...
0
votes
0answers
33 views

Why use blocks, widgets and LESS when building standard web pages?

why would I use blocks, widgets and LESS to build a web page when the CRM supports standard web page construction? I am trying to understand the overall logic and strategy of building themes and ...
0
votes
0answers
13 views

How To Add Layout Updates Widget Container In Admin Form In Magento 2?

I want to create a layout updates widget container in the admin form in Magento 2. If Anyone Know Plz Tell. Thanks In Advance.
0
votes
0answers
49 views

Jquery ui widget implementation instead of just jquery code

I have code that performs the function of interactivity. When you click on the checkbox, the block is cloned and added to another block. Here is an example on codepen: https://codepen.io/annbin/pen/...
0
votes
0answers
12 views

Magento2 How to refresh price from widget product's after currency switcher on Homepage

Does anyone know how we can refresh product price from widget products after switch currency on Homepage ?
1
vote
0answers
21 views

Magento2 Product Price For Widget is not refresh price with currency switcher

I have create one widget and display some products to that product, but while change currency using currency switcher , it does not change new currency
1
vote
2answers
463 views

Magento 2 Add widget using WYSIWYG field in a custom widget

I have created a custom widget and it contains a WYSIWYG field. Everything works fine except the add widget option. When I add the widget it will displayed in the editor. When I click the save ...
0
votes
0answers
15 views

Installing Magento 2 Theme - No Widgets or Blocks

I have downloaded, uploaded and activated the theme - but no widgets, blocks or anything specific to the theme are anywhere to be found. I uploaded the app and pub folders and ran the php commands, ...
2
votes
1answer
30 views

Add a block to programmatically generated widget

I need to generate a widget block with upgradeData.php and assign a block to this widget how can I do this? Folowing is my code for widget generation: Setup/UpgradeData.php public function ...
0
votes
1answer
31 views

Pagination in Magento2 widget block

Hi is there any way to do pagination in widget block . For example have a category with id 355 . I want to display that category product in a page . So I am using widget(following code) {{widget ...
0
votes
0answers
25 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 ...
0
votes
0answers
173 views

Magento 2 How add dynamic rows field to custom widget

I need add dynamic rows field to my custom widget, which should have three columns: title(text field), color(select field), url(text field). There should also be an add button, and delete buttons for ...
0
votes
2answers
45 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
13 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
16 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
67 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
106 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
20 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
14 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/...

1
2 3 4 5 6