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
15 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
26 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
28 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
49 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
38 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
72 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
27 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
0answers
43 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
19 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
53 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
23 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
31 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
18 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
24 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
132 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
34 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
74 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
19 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
40 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
58 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
243 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
193 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
183 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
36 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
111 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
34 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
73 views

How to create custom widget via Install?

I need to create widget category link via Upgrade. How to do this?
2
votes
2answers
345 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
242 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
77 views

Magento2 How can I choose multiple products by SKU?

How can I choose multiple products by SKU in a widget?
1
vote
2answers
132 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
88 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
146 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
41 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
340 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
387 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
42 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 ...
0
votes
0answers
32 views

Changing the style of xml widget in Magento 2

Is it possible to change the css style of how the parameters are displayed in the xml widget?
0
votes
0answers
70 views

Magento 2 custom parameter type in the widget

How can I create a custom parameter type, and use it in my widget? Basically, I want to create a drop-down menu with a different background color for each option. Thank you 😊
2
votes
1answer
309 views

How to use Product Chooser Widget with UI Component Form

I want to have a field in my UI Component form and a "Select Product..." Button where I can choose a product and it gets inserted into the input. Similar to the "Catalog Product Link" Widget. Started ...
0
votes
0answers
177 views

Edit widget in CMS page Magento2

I have a widget added in my CMS page like this. It is added by default from a theme I purchased. How can I edit this JSON encoded widget as Magento is not able to filter out products. {{widget ...
0
votes
0answers
12 views

How to change options in widget on click?

I have this code in my JS widget with some options $.widget('markdev.accordion', tabs, { options: { active: [0,1,2], multipleCollapsible: true, ...
0
votes
0answers
125 views

Show category image in widget

I show my category name of my frontpage thanks to widgets. I want to display images associated with the category displayed. I tried this : https://github.com/emizentech/magento2-category-list-widget ...
0
votes
0answers
70 views

Customer Registration, Dob value changes when form doesn't validate

When i fill out the customer registration form incorrect and i submit this form. The form reloads and the value of the dob date-picker changes from 04/06/1997 to 0.4/0.6/1.997. The value isn't set ...
0
votes
1answer
60 views

Add (change) a Widget's option

With a custom module, I have made some widgets that I added to my Magento 2 installation. I am using this module in several other projects. I have added an option to the widget, an enabled/disabled ...
0
votes
0answers
26 views

Adding products back into Featured, Bestseller, and Popular widgets.

I am on an instance of Magento 1.9.3.7. I am wanting to add products back into my featured, bestseller, and popular widgets. Is there an easy way to do this? Thank you. :)
1
vote
1answer
218 views

Remove selected CMS block in custom widget Magento2

I have doubts in Magento2 widget. In my custom widget I have added the CMS block through chooser then saved successfully. When I come to edit, I need to remove the selected cms block in the widget. ...