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

2
votes
1answer
11 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
23 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
18 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
43 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
21 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
14 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
1answer
16 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
19 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 ...
0
votes
0answers
95 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
22 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
38 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
39 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
33 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
119 views

Magento 2 - Pass data from php to javascript in widget

I have an custom widget in admin panel which has select option with all available categories in the store. How can I pass this data to my javascript file? I want to get array of all loaded categories ...
0
votes
1answer
136 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
121 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
12 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
98 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
15 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
26 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
79 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
32 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
60 views

How to create custom widget via Install?

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

Magento2 How can I choose multiple products by SKU?

How can I choose multiple products by SKU in a widget?
1
vote
2answers
104 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
74 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
89 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
32 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
187 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
300 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
35 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
27 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
60 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
217 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
139 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
11 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
105 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
58 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
54 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
152 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. ...
0
votes
1answer
143 views

Magento 2 - Is there a way to change element “data-mage-init” without overriding a template?

For example I want to change some options of minicart dialog initialization. So I need to change minicart template (override this template in custom theme/module). Is there a way to change minicart ...
0
votes
2answers
941 views

Add custom template to existing widget (product_list)

I would like to make use of a product list widget but I need to use it with my own template file. I want to create a widget via content -> widgets. This is different from utilizing a widget from a ...
0
votes
0answers
18 views

Easy Catalog Image

After adding easy catalog images the widget is showing different images than the ones connected to the category. I don't know where it is picking up these images and want it to show the one I've put ...
2
votes
0answers
274 views

Disable cache of static block Magento 1.9

How can I disable a widget or static block from being cached inside the Blocks HTML output cache? The widget loads a specific static block on all CMS pages. Inside the static block, I load a template ...
2
votes
1answer
287 views

add buy now button in homepage widget products list magento 2

How can i add buynow button on Homepage widget list products ? hello, I amm using this module magento2-buynow but this add in category page and product page. I need to add buy now button to ...
0
votes
1answer
256 views

How to pass a value to modal while opening

Is it possible to pass a value while opening a modal(js component of magento)? If the answer is yes, then how can i do it?
1
vote
1answer
123 views

(Solved) How to reach “add to cart” button and price inside Recently Viewed Products Widget in magento 2

I need to make some custom changes on add to cart button and item prices, in Recently Viewed Products widget. For add to cart button, i need some custom php statement, And for prices i need old ...